Purpose: Allow a generic way of creating tables on the different platforms.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| protected String | |
| protected String | |
| protected List | |
| protected Map | |
| protected boolean | |
| protected List | |
| protected DatabaseTable | |
| private String | |
| protected List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | addFieldOnDatabase(final AbstractSession session, FieldDefinition field)
INTERNAL: Execute the SQL alter table to add the field to the table. |
| public void | addForeignKeyConstraint(String name, String sourceField, String targetField, String targetTable)
PUBLIC: Add a foreign key constraint to the table. |
| public void | addForeignKeyConstraint(ForeignKeyConstraint foreignKey)
PUBLIC: Add a foreign key constraint to the table. |
| public void | addIdentityField(String fieldName, Class<?>
is the Java class type corresponding to the database type. type)PUBLIC: Add the field to the table, default sizes are used. |
| public void | addIdentityField(String fieldName, Class<?>
is the Java class type corresponding to the database type. type, int fieldSize)PUBLIC: Add the field to the table, default sizes are used. |
| public void | |
| public void | addPrimaryKeyField(String fieldName, Class<?>
is the Java class type corresponding to the database type. type)PUBLIC: Add the field to the table, default sizes are used. |
| public void | addPrimaryKeyField(String fieldName, Class<?>
is the Java class type corresponding to the database type. type, int fieldSize)PUBLIC: Add the field to the table, default sizes are used. |
| public void | addUniqueKeyConstraint(String name, String sourceField)
PUBLIC: Add a unique key constraint to the table. |
| public void | addUniqueKeyConstraint(String name, String[] sourceFields)
PUBLIC: Add a unique key constraint to the table. |
| public void | addUniqueKeyConstraint(UniqueKeyConstraint uniqueKey)
PUBLIC: Add a unique key constraint to the table. |
| public Writer | buildAddFieldWriter(AbstractSession session, FieldDefinition field, Writer writer)
INTERNAL: Return the alter table statement to add a field to the table. |
| public Writer | buildConstraintCreationWriter(AbstractSession session, ForeignKeyConstraint foreignKey, Writer writer)
INTERNAL: Return the alter table statement to add the constraints. |
| public Writer | buildConstraintDeletionWriter(AbstractSession session, ForeignKeyConstraint foreignKey, Writer writer)
INTERNAL: Return the alter table statement to drop the constraints. |
| public Writer | buildCreationWriter(AbstractSession session, Writer writer)
Implements abstract org. |
| protected Writer | buildDatabaseSchemaCreationWriter(AbstractSession session, Writer writer, Set<String> createdDatabaseSchemas)
INTERNAL: Build the create schema DDL. |
| protected Writer | buildDatabaseSchemaDeletionWriter(AbstractSession session, Writer writer)
INTERNAL: Build the drop schema DDL. |
| public Writer | buildDeletionWriter(AbstractSession session, Writer writer)
Implements abstract org. |
| protected void | |
| protected ForeignKeyConstraint | buildForeignKeyConstraint(FieldDefinition field, DatabasePlatform platform)
Build a foreign key constraint using FieldDefinition.getForeignKeyFieldName(). |
| protected ForeignKeyConstraint | buildForeignKeyConstraint(List<String> fkFieldNames, List<String> pkFieldNames, TableDefinition targetTable, DatabasePlatform platform)
Build a foreign key constraint. |
| protected String | buildForeignKeyConstraintName(String tableName, String fieldName, int maximumNameLength, DatabasePlatform platform)
Return foreign key constraint name built from the table and field name with the specified maximum length. |
| public IndexDefinition | buildIndex(AbstractSession session, String key, List<String> columnNames, boolean isUniqueSetOnField)
INTERNAL: Return the index creation statement. |
| public Writer | buildIndexDeletionWriter(AbstractSession session, String key, Writer writer, boolean isUniqueSetOnField)
INTERNAL: Return the index drop statement. |
| protected String | buildIndexName(String tableName, String key, String indexPrefix, int maximumNameLength, DatabasePlatform platform)
Return key constraint name built from the table and key name with the specified maximum length and index prefix. |
| public Writer | buildUniqueConstraintCreationWriter(AbstractSession session, UniqueKeyConstraint uniqueKey, Writer writer)
INTERNAL: Return the alter table statement to add the constraints. |
| public Writer | buildUniqueConstraintDeletionWriter(AbstractSession session, UniqueKeyConstraint uniqueKey, Writer writer)
INTERNAL: Return the alter table statement to drop the constraints. |
| protected UniqueKeyConstraint | buildUniqueKeyConstraint(String name, List<String> fieldNames, int serialNumber, DatabasePlatform platform)
|
| protected String | buildUniqueKeyConstraintName(String tableName, int serialNumber, int maximumNameLength)
Return unique key constraint name built from the table name and sequence number with the specified maximum length. |
| public Writer | buildVPDCreationFunctionWriter(AbstractSession session, Writer writer)
INTERNAL:
|
| public Writer | buildVPDCreationPolicyWriter(AbstractSession session, Writer writer)
Overrides org. |
| public Writer | buildVPDDeletionWriter(AbstractSession session, Writer writer)
Overrides org. |
| public Object | clone()
Overrides org. |
| public void | createConstraints(AbstractSession session, Writer schemaWriter)
INTERNAL: Execute the SQL alter table constraint creation string. |
| public void | createConstraintsOnDatabase(AbstractSession session)
INTERNAL: Execute the SQL alter table constraint creation string. |
| public void | createDatabaseSchema(AbstractSession session, Writer writer, Set<String> createdDatabaseSchemas)
Overrides org. |
| public void | createDatabaseSchemaOnDatabase(AbstractSession session, Set<String> createdDatabaseSchemas)
INTERNAL:
Execute the DDL to create the database schema for this object.
|
| pack-priv void | |
| pack-priv void | |
| public void | createIndexes(AbstractSession session, Writer writer)
INTERNAL: Write the SQL create index string to create index if passed a writer, else delegate to a method that executes the string on the database. |
| pack-priv void | |
| pack-priv void | |
| public String | |
| public void | dropConstraints(AbstractSession session, Writer schemaWriter)
INTERNAL: Execute the SQL alter table constraint creation string. |
| public void | dropConstraintsOnDatabase(AbstractSession session)
INTERNAL: Execute the SQL alter table constraint creation string. |
| public void | dropDatabaseSchema(AbstractSession session, Writer writer)
Overrides org. |
| public void | dropDatabaseSchemaOnDatabase(AbstractSession session)
Overrides org. |
| private void | |
| public void | dropIndexes(AbstractSession session, Writer writer)
INTERNAL: Write the SQL drop index string to drop indexes if passed a writer, else delegate to a method that executes the string on the database. |
| private void | |
| public String | getCreationPrefix()
INTERNAL: Return the beginning of the sql create statement - the part before the name. |
| public String | getCreationSuffix()
INTERNAL: Return the end of the sql create statement - the part after the field list. |
| public String | getDatabaseSchema()
Overrides org. |
| public FieldDefinition | |
| public List | |
| public Map | |
| public Collection | |
| public List | |
| public List | |
| public DatabaseTable | |
| public List | |
| public void | postCreateObject(AbstractSession session, Writer createSchemaWriter, boolean createSQLFiles)
Overrides org. |
| public void | preDropObject(AbstractSession session, Writer dropSchemaWriter, boolean createSQLFiles)
Overrides org. |
| public void | |
| public void | |
| public void | setCreationPrefix(String creationPrefix)
INTERNAL: Set the beginning of the sql create statement - the part before the name. |
| public void | setCreationSuffix(String creationSuffix)
INTERNAL: Set the end of the sql create statement - the part after the field list. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setUserDefinedForeignKeyConstraints(Map<String, ForeignKeyConstraint> foreignKeyConstraints)
PUBLIC: Set the foreign key constraints for this table. |
| public boolean | shouldCreateDatabaseSchema(Set<String> createdDatabaseSchemas)
Overrides org. |
| public boolean | shouldCreateVPDCalls(AbstractSession session)
Overrides org. |
| public void |