Package | Description |
---|---|
er.extensions.migration |
Migrations
|
Modifier and Type | Method and Description |
---|---|
ERXMigrationColumn |
ERXMigrationTable._newColumn(String name,
int jdbcType,
int width,
int precision,
int scale,
boolean allowsNull,
String overrideValueType,
Object defaultValue,
boolean autocreate)
Returns a new ERXMigrationColumn with the given attributes.
|
ERXMigrationColumn[] |
ERXMigrationForeignKey.destinationColumns() |
ERXMigrationColumn |
ERXMigrationTable.existingColumnNamed(String name)
Returns the ERMigrationColumn for the column with the given name.
|
ERXMigrationColumn |
ERXMigrationDatabase.existingColumnNamed(String tableName,
String columnName)
Shortcut to ERXMigrationTable.existingColumnNamed(String).
|
ERXMigrationColumn |
ERXMigrationTable.newBigDecimalColumn(String name,
int precision,
int scale,
boolean allowsNull)
Returns a new BigDecimal column.
|
ERXMigrationColumn |
ERXMigrationTable.newBigDecimalColumn(String name,
int precision,
int scale,
boolean allowsNull,
BigDecimal defaultValue)
Returns a new BigDecimal column.
|
ERXMigrationColumn |
ERXMigrationTable.newBigIntegerColumn(String name,
boolean allowsNull)
Returns a new long column.
|
ERXMigrationColumn |
ERXMigrationTable.newBigIntegerColumn(String name,
boolean allowsNull,
Long defaultValue)
Returns a new long column.
|
ERXMigrationColumn |
ERXMigrationTable.newBlobColumn(String name,
boolean allowsNull)
Returns a new Blob column.
|
ERXMigrationColumn |
ERXMigrationTable.newBlobColumn(String name,
int width,
boolean allowsNull)
Returns a new Blob column.
|
ERXMigrationColumn |
ERXMigrationTable.newBlobColumn(String name,
int width,
boolean allowsNull,
NSData defaultValue)
Returns a new Blob column.
|
ERXMigrationColumn |
ERXMigrationTable.newBooleanColumn(String name,
boolean allowsNull)
Returns a new varchar(5) boolean column.
|
ERXMigrationColumn |
ERXMigrationTable.newBooleanColumn(String name,
boolean allowsNull,
Boolean defaultValue)
Returns a new varchar(5) boolean column.
|
ERXMigrationColumn |
ERXMigrationTable.newClobColumn(String name,
boolean allowsNull)
Returns a new string blob column.
|
ERXMigrationColumn |
ERXMigrationTable.newColumn(String name,
int jdbcType,
int width,
int precision,
int scale,
boolean allowsNull,
String overrideValueType)
Returns a new ERXMigrationColumn with the given attributes.
|
ERXMigrationColumn |
ERXMigrationTable.newColumn(String name,
int jdbcType,
int width,
int precision,
int scale,
boolean allowsNull,
String overrideValueType,
Object defaultValue)
Returns a new ERXMigrationColumn with the given attributes.
|
ERXMigrationColumn |
ERXMigrationTable.newDateColumn(String name,
boolean allowsNull)
Returns a new date column.
|
ERXMigrationColumn |
ERXMigrationTable.newDateColumn(String name,
boolean allowsNull,
NSTimestamp defaultValue)
Returns a new date column.
|
ERXMigrationColumn |
ERXMigrationTable.newDoubleColumn(String name,
int precision,
int scale,
boolean allowsNull)
Returns a new double column.
|
ERXMigrationColumn |
ERXMigrationTable.newDoubleColumn(String name,
int precision,
int scale,
boolean allowsNull,
Double defaultValue)
Returns a new double column.
|
ERXMigrationColumn |
ERXMigrationTable.newFlagBooleanColumn(String name,
boolean allowsNull)
Returns a new flag boolean column.
|
ERXMigrationColumn |
ERXMigrationTable.newFlagBooleanColumn(String name,
boolean allowsNull,
Boolean defaultValue)
Returns a new flag boolean column.
|
ERXMigrationColumn |
ERXMigrationTable.newFloatColumn(String name,
int precision,
int scale,
boolean allowsNull)
Returns a new float column.
|
ERXMigrationColumn |
ERXMigrationTable.newFloatColumn(String name,
int precision,
int scale,
boolean allowsNull,
Float defaultValue)
Returns a new float column.
|
ERXMigrationColumn |
ERXMigrationTable.newIntBooleanColumn(String name,
boolean allowsNull)
Returns a new integer boolean column.
|
ERXMigrationColumn |
ERXMigrationTable.newIntBooleanColumn(String name,
boolean allowsNull,
Boolean defaultValue)
Returns a new integer boolean column.
|
ERXMigrationColumn |
ERXMigrationTable.newIntegerColumn(String name,
boolean allowsNull)
Returns a new integer column.
|
ERXMigrationColumn |
ERXMigrationTable.newIntegerColumn(String name,
boolean allowsNull,
Integer defaultValue)
Returns a new integer column.
|
ERXMigrationColumn |
ERXMigrationTable.newIntegerColumn(String name,
int scale,
boolean allowsNull)
Returns a new integer column.
|
ERXMigrationColumn |
ERXMigrationTable.newIntegerColumn(String name,
int scale,
boolean allowsNull,
Integer defaultValue)
Returns a new integer column.
|
ERXMigrationColumn |
ERXMigrationTable.newIntegerColumn(String name,
int scale,
int precision,
boolean allowsNull)
Returns a new integer column.
|
ERXMigrationColumn |
ERXMigrationTable.newIntegerColumn(String name,
int scale,
int precision,
boolean allowsNull,
Object defaultValue)
Returns a new integer column.
|
ERXMigrationColumn |
ERXMigrationTable.newIpAddressColumn(String name,
boolean allowsNull)
Returns a new ipaddress column.
|
ERXMigrationColumn |
ERXMigrationTable.newIpAddressColumn(String name,
boolean allowsNull,
String defaultValue)
Returns a new ipaddress column.
|
ERXMigrationColumn |
ERXMigrationTable.newLargeStringColumn(String name,
boolean allowsNull)
Returns a new String column (VARCHAR) that corresponds to the varcharLarge prototype.
|
ERXMigrationColumn |
ERXMigrationTable.newSmallIntegerColumn(String name,
boolean allowsNull)
Returns a new small integer column.
|
ERXMigrationColumn |
ERXMigrationTable.newSmallIntegerColumn(String name,
boolean allowsNull,
Short defaultValue)
Returns a new small integer column.
|
ERXMigrationColumn |
ERXMigrationTable.newStringColumn(String name,
boolean allowsNull)
Returns a new String column (VARCHAR) with an unbounded length.
|
ERXMigrationColumn |
ERXMigrationTable.newStringColumn(String name,
boolean allowsNull,
String defaultValue)
Returns a new String column (VARCHAR) that corresponds to the varcharLarge prototype.
|
ERXMigrationColumn |
ERXMigrationTable.newStringColumn(String name,
int width,
boolean allowsNull)
Returns a new String column (VARCHAR).
|
ERXMigrationColumn |
ERXMigrationTable.newStringColumn(String name,
int width,
boolean allowsNull,
String defaultValue)
Returns a new String column (VARCHAR).
|
ERXMigrationColumn |
ERXMigrationTable.newTimeColumn(String name,
boolean allowsNull)
Returns a new time column.
|
ERXMigrationColumn |
ERXMigrationTable.newTimestampColumn(String name,
boolean allowsNull)
Returns a new timestamp column.
|
ERXMigrationColumn |
ERXMigrationTable.newTimestampColumn(String name,
boolean allowsNull,
NSTimestamp defaultValue)
Returns a new timestamp column.
|
ERXMigrationColumn |
ERXMigrationTable.newUuidColumn(String name,
boolean allowsNull)
Returns a new UUID column.
|
ERXMigrationColumn[] |
ERXMigrationForeignKey.sourceColumns() |
Modifier and Type | Method and Description |
---|---|
NSArray<ERXMigrationColumn> |
ERXMigrationTable.newLocalizedClobColumns(String name,
boolean allowsNull)
Returns a new localized string blob column.
|
NSArray<ERXMigrationColumn> |
ERXMigrationTable.newLocalizedClobColumns(String name,
boolean allowsNull,
NSArray<String> languages)
Returns a new localized string blob column.
|
NSArray<ERXMigrationColumn> |
ERXMigrationTable.newLocalizedStringColumns(String name,
int width,
boolean allowsNull)
Returns a new localized String column (VARCHAR).
|
NSArray<ERXMigrationColumn> |
ERXMigrationTable.newLocalizedStringColumns(String name,
int width,
boolean allowsNull,
NSArray<String> languages)
Returns a new localized String column (VARCHAR).
|
NSArray<ERXMigrationColumn> |
ERXMigrationTable.newLocalizedStringColumns(String name,
int width,
boolean allowsNull,
String defaultValue)
Returns a new localized String column (VARCHAR).
|
NSArray<ERXMigrationColumn> |
ERXMigrationTable.newLocalizedStringColumns(String name,
int width,
boolean allowsNull,
String defaultValue,
NSArray<String> languages)
Returns a new localized String column (VARCHAR).
|
Modifier and Type | Method and Description |
---|---|
NSArray<EOSQLExpression> |
ERXMigrationTable._addForeignKeyExpressions(ERXMigrationColumn[] sourceColumns,
ERXMigrationColumn[] destinationColumns)
Returns an array of EOSQLExpressions for adding a foreign key constraint to this table.
|
NSArray<EOSQLExpression> |
ERXMigrationTable._addForeignKeyExpressions(ERXMigrationColumn[] sourceColumns,
ERXMigrationColumn[] destinationColumns)
Returns an array of EOSQLExpressions for adding a foreign key constraint to this table.
|
NSArray<EOSQLExpression> |
ERXMigrationTable._addForeignKeyExpressions(ERXMigrationColumn sourceColumn,
ERXMigrationColumn destinationColumn)
Returns an array of EOSQLExpressions for adding a foreign key constraint to this table.
|
void |
ERXMigrationTable._columnDeleted(ERXMigrationColumn column)
Callback method for ERXMigrationColumn to notify the table that
it has been deleted.
|
NSArray<EOSQLExpression> |
ERXMigrationTable._dropPrimaryKeyExpressions(ERXMigrationColumn... columns)
Returns an array of EOSQLExpressions for removing the primary key constraint of this table (only supports single attribute PK's right now).
|
EORelationship |
ERXMigrationTable._newRelationship(ERXMigrationColumn[] sourceColumns,
ERXMigrationColumn[] destinationColumns)
Returns a simple single-attribute-mapping EORelationship between two columns.
|
EORelationship |
ERXMigrationTable._newRelationship(ERXMigrationColumn[] sourceColumns,
ERXMigrationColumn[] destinationColumns)
Returns a simple single-attribute-mapping EORelationship between two columns.
|
NSArray<EOSQLExpression> |
ERXMigrationTable._setPrimaryKeyExpressions(ERXMigrationColumn... columns)
Returns an array of EOSQLExpressions for setting the primary key constraint of this table.
|
void |
ERXMigrationTable.addForeignKey(boolean create,
ERXMigrationColumn[] sourceColumns,
ERXMigrationColumn[] destinationColumns)
Executes the SQL operations to add this foreign key constraint.
|
void |
ERXMigrationTable.addForeignKey(boolean create,
ERXMigrationColumn[] sourceColumns,
ERXMigrationColumn[] destinationColumns)
Executes the SQL operations to add this foreign key constraint.
|
void |
ERXMigrationTable.addForeignKey(boolean create,
ERXMigrationColumn sourceColumn,
ERXMigrationColumn destinationColumn)
Executes the SQL operations to add this foreign key constraint.
|
void |
ERXMigrationTable.addForeignKey(ERXMigrationColumn[] sourceColumns,
ERXMigrationColumn[] destinationColumns)
Executes the SQL operations to add this foreign key constraint.
|
void |
ERXMigrationTable.addForeignKey(ERXMigrationColumn[] sourceColumns,
ERXMigrationColumn[] destinationColumns)
Executes the SQL operations to add this foreign key constraint.
|
void |
ERXMigrationTable.addForeignKey(ERXMigrationColumn sourceColumn,
ERXMigrationColumn destinationColumn)
Executes the SQL operations to add this foreign key constraint.
|
void |
ERXMigrationTable.addForeignKey(String sourceColumnName,
ERXMigrationColumn destinationColumn)
Executes the SQL operations to add this foreign key constraint.
|
void |
ERXMigrationTable.addIndex(String indexName,
ERXMigrationColumn... columns)
Executes the SQL operations to add an index.
|
void |
ERXMigrationTable.addUniqueIndex(String indexName,
ERXMigrationColumn... columns)
Executes the SQL operations to add a unique index.
|
void |
ERXMigrationTable.dropPrimaryKey(ERXMigrationColumn... columns)
Executes the SQL operations to drop this primary key constraint (only supports single attribute PK's right now).
|
void |
ERXMigrationTable.setPrimaryKey(boolean create,
ERXMigrationColumn... columns)
Executes the SQL operations to add this primary key constraint.
|
void |
ERXMigrationTable.setPrimaryKey(ERXMigrationColumn... columns)
Executes the SQL operations to add this primary key constraint.
|
Constructor and Description |
---|
ERXMigrationForeignKey(ERXMigrationColumn[] sourceColumns,
ERXMigrationColumn[] destinationColumns) |
ERXMigrationForeignKey(ERXMigrationColumn[] sourceColumns,
ERXMigrationColumn[] destinationColumns) |
Copyright © 2002 – 2024 Project Wonder.