| Package | Description |
|---|---|
| org.apache.ddlutils |
This package mainly contains the database platform abstraction,
Platform
and the factory to create instances for individual platforms,
PlatformFactory. |
| org.apache.ddlutils.alteration |
Contains the algorithm for comparing two database models and determining
what needs to be changed to migrate one to the other.
|
| org.apache.ddlutils.dynabean |
Provides the special DdlUtils implementations of
DynaClass
and DynaBean that directly map to tables in the database
model. |
| org.apache.ddlutils.io |
The
org.apache.ddlutils.io package contains a classes for input
and output of both the database schemas and data files. |
| org.apache.ddlutils.model |
This package contains the classes making up the database model.
|
| org.apache.ddlutils.platform |
This package contains the platform implementations for the individual databases.
|
| org.apache.ddlutils.platform.axion |
This package contains the platform implementation for the Axion database.
|
| org.apache.ddlutils.platform.cloudscape |
This package contains the platform implementation for the
Cloudscape database.
|
| org.apache.ddlutils.platform.db2 |
This package contains the platform implementation for the
DB2 UDB database.
|
| org.apache.ddlutils.platform.derby |
This package contains the platform implementation for the
Apache Derby database.
|
| org.apache.ddlutils.platform.firebird |
This package contains the platform implementation for the
Firebird database.
|
| org.apache.ddlutils.platform.gemfirexd |
This package contains the platform implementation for the
GemFire GemFireXD database.
|
| org.apache.ddlutils.platform.hsqldb |
This package contains the platform implementation for the
HSQLDB database.
|
| org.apache.ddlutils.platform.interbase |
This package contains the platform implementation for the
Interbase database.
|
| org.apache.ddlutils.platform.maxdb |
This package contains the platform implementation for the
MaxDB database.
|
| org.apache.ddlutils.platform.mckoi |
This package contains the platform implementation for the
Mckoi database.
|
| org.apache.ddlutils.platform.mssql |
This package contains the platform implementation for the
Sql Server database.
|
| org.apache.ddlutils.platform.mysql |
This package contains the platform implementation for the
MySQL database.
|
| org.apache.ddlutils.platform.oracle |
This package contains the platform implementation for the
Oracle database.
|
| org.apache.ddlutils.platform.postgresql |
This package contains the platform implementation for the
PostgreSQL database.
|
| org.apache.ddlutils.platform.sapdb |
This package contains the platform implementation for the
SAP DB database.
|
| org.apache.ddlutils.platform.sybase |
This package contains the platform implementation for the
Sybase ASE database.
|
| org.apache.ddlutils.task |
The
org.apache.ddlutils.task package contains the Ant
tasks provided by DdlUtils. |
| Modifier and Type | Method and Description |
|---|---|
void |
Platform.dropTable(Connection connection,
Database model,
Table table,
boolean continueOnError)
Drops the specified table and all foreign keys pointing to it.
|
void |
Platform.dropTable(Database model,
Table table,
boolean continueOnError)
Drops the specified table and all foreign keys pointing to it.
|
List |
Platform.fetch(Database model,
String sql,
Collection parameters,
Table[] queryHints)
Queries for a list of dyna beans representing rows of the given query.
|
List |
Platform.fetch(Database model,
String sql,
Collection parameters,
Table[] queryHints,
int start,
int end)
Queries for a list of dyna beans representing rows of the given query.
|
List |
Platform.fetch(Database model,
String sql,
Table[] queryHints)
Queries for a list of dyna beans representing rows of the given query.
|
List |
Platform.fetch(Database model,
String sql,
Table[] queryHints,
int start,
int end)
Queries for a list of dyna beans representing rows of the given query.
|
String |
Platform.getDropTableSql(Database model,
Table table,
boolean continueOnError)
Returns the SQL for dropping the given table and all foreign keys pointing to it.
|
Iterator |
Platform.query(Database model,
String sql,
Collection parameters,
Table[] queryHints)
Performs the given parameterized SQL query returning an iterator over the results.
|
Iterator |
Platform.query(Database model,
String sql,
Table[] queryHints)
Performs the given SQL query returning an iterator over the results.
|
| Modifier and Type | Method and Description |
|---|---|
Table |
TableChangeImplBase.findChangedTable(Database model,
boolean caseSensitive)
Finds the table object corresponding to the changed table in the given database model.
|
Table |
TableChange.findChangedTable(Database model,
boolean caseSensitive)
Finds the table object corresponding to the changed table in the given database model.
|
Table |
AddTableChange.getNewTable()
Returns the new table.
|
Table |
RecreateTableChange.getTargetTable()
Returns the target table definition.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
TableDefinitionChangesPredicate.areSupported(Table intermediateTable,
List changes)
Evaluates the given list of table changes and determines whether they are supported.
|
protected List |
ModelComparator.checkForAddedColumns(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for columns that are not present in the given source table but are in the target
table, and applies them to the given intermediate model.
|
protected List |
ModelComparator.checkForAddedIndexes(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for indexes that are not present in the given source table but are in the target
table, and applies them to the given intermediate model.
|
protected List |
ModelComparator.checkForChangedColumns(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for columns that have a different in the given source and target table, and applies them
to the given intermediate model.
|
protected List |
ModelComparator.checkForChangeOfColumnOrder(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Checks for changes in the column order between the given source and target table, creates change objects for these and
applies them to the given intermediate model.
|
protected List |
ModelComparator.checkForPrimaryKeyChanges(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for primary key differences (primary key added/removed/changed), and applies them to the given intermediate model.
|
protected List |
ModelComparator.checkForRemovedColumns(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for columns that are present in the given source table but are no longer in the target
table, and applies them to the given intermediate model.
|
protected List |
ModelComparator.checkForRemovedIndexes(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for indexes that are present in the given source table but are no longer in the target
table, and applies them to the given intermediate model.
|
protected ColumnDefinitionChange |
ModelComparator.compareColumns(Table sourceTable,
Column sourceColumn,
Table targetTable,
Column targetColumn)
Compares the two columns and returns the change necessary to create the second
column from the first one if they differe.
|
protected List |
ModelComparator.compareTables(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Compares the two tables and returns the changes necessary to create the second
table from the first one.
|
protected ForeignKey |
ModelComparator.findCorrespondingForeignKey(Table table,
ForeignKey fk)
Searches in the given table for a corresponding foreign key.
|
protected Index |
ModelComparator.findCorrespondingIndex(Table table,
Index index)
Searches in the given table for a corresponding index.
|
protected String[] |
ModelComparator.getIntermediateColumnNamesFor(Column[] columns,
Table intermediateTable)
Returns the names of the columns in the intermediate table corresponding to the given column objects.
|
| Constructor and Description |
|---|
AddTableChange(Table newTable)
Creates a new change object.
|
RecreateTableChange(String tableName,
Table targetTable,
List originalChanges)
Creates a new change object for recreating a table.
|
| Modifier and Type | Method and Description |
|---|---|
Table |
SqlDynaClass.getTable()
Returns the table for which this dyna class is defined.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.beanutils.DynaBean |
DynaClassCache.copy(Table table,
Object source)
Creates a new dyna bean instance for the given table and copies the values from the
given source object.
|
org.apache.commons.beanutils.DynaBean |
DynaClassCache.createNewInstance(Table table)
Creates a new dyna bean instance for the given table.
|
SqlDynaClass |
DynaClassCache.getDynaClass(Table table)
Returns the
SqlDynaClass for the given table. |
static SqlDynaClass |
SqlDynaClass.newInstance(Table table)
Factory method for creating and initializing a new dyna class instance
for the given table.
|
| Constructor and Description |
|---|
SqlDynaClass(Table table,
SqlDynaProperty[] properties)
Creates a new dyna class instance for the given table that has the given properties.
|
| Modifier and Type | Method and Description |
|---|---|
Table |
Identity.getTable()
Returns the table that this identity is for.
|
| Modifier and Type | Method and Description |
|---|---|
SqlTypeConverter |
ConverterConfiguration.getRegisteredConverter(Table table,
Column column)
Returns the converter registered for the specified column.
|
| Constructor and Description |
|---|
Identity(Table table)
Creates a new identity object for the given table.
|
Identity(Table table,
String fkName)
Creates a new identity object for the given table.
|
TableXmlWriter(Table table) |
| Modifier and Type | Method and Description |
|---|---|
Table |
CloneHelper.clone(Table source,
boolean cloneIndexes,
boolean cloneForeignKeys,
Database targetModel,
boolean caseSensitive)
Returns a clone of the given table.
|
Table |
Database.findTable(String name)
Finds the table with the specified name, using case insensitive matching.
|
Table |
Database.findTable(String name,
boolean caseSensitive)
Finds the table with the specified name, using case insensitive matching.
|
Table[] |
Database.findTables(String[] tableNames,
boolean caseSensitive)
Returns the indicated tables.
|
Table[] |
Database.findTables(String tableNameRegExp,
boolean caseSensitive)
Finds the tables whose names match the given regular expression.
|
Table |
ForeignKey.getForeignTable()
Returns the foreign table.
|
Table |
Database.getTable(int idx)
Returns the table at the specified position.
|
Table[] |
Database.getTables()
Returns the tables in this model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Database.addTable(int idx,
Table table)
Adds a table at the specified position.
|
void |
Database.addTable(Table table)
Adds a table.
|
void |
ModelHelper.checkForForeignKeysToAndFromTables(Database model,
Table[] tables)
Determines whether one of the tables in the list has a foreign key to a table outside of the list,
or a table outside of the list has a foreign key to one of the tables in the list.
|
ForeignKey |
CloneHelper.clone(ForeignKey source,
Table owningTable,
Database targetModel,
boolean caseSensitive)
Returns a clone of the given source foreign key.
|
IndexColumn |
CloneHelper.clone(IndexColumn source,
Table targetTable,
boolean caseSensitive)
Returns a clone of the given index column.
|
Index |
CloneHelper.clone(Index source,
Table targetTable,
boolean caseSensitive)
Returns a clone of the given source index.
|
Reference |
CloneHelper.clone(Reference source,
Table localTable,
Table foreignTable,
boolean caseSensitive)
Returns a clone of the given source reference.
|
Table |
CloneHelper.clone(Table source,
boolean cloneIndexes,
boolean cloneForeignKeys,
Database targetModel,
boolean caseSensitive)
Returns a clone of the given table.
|
org.apache.commons.beanutils.DynaBean |
Database.createDynaBeanFor(Table table)
Creates a new dyna bean for the given table.
|
void |
Database.removeAllTablesExcept(Table[] tables)
Removes all but the given tables.
|
void |
ModelHelper.removeForeignKeysToAndFromTables(Database model,
Table[] tables)
Removes all foreign keys from the tables in the list to tables outside of the list,
or from tables outside of the list to tables in the list.
|
void |
Database.removeTable(Table table)
Removes the given table.
|
void |
Database.removeTables(Table[] tables)
Removes the given tables.
|
void |
ForeignKey.setForeignTable(Table foreignTable)
Sets the foreign table.
|
| Modifier and Type | Method and Description |
|---|---|
protected Table |
PlatformImplBase.findChangedTable(Database currentModel,
TableChange change)
Finds the table changed by the change object in the given model.
|
protected Table |
PlatformImplBase.getTemporaryTableFor(Table targetTable)
Creates a temporary table object that corresponds to the given table.
|
protected Table |
JdbcModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SqlBuilder.addColumn(Database model,
Table table,
Column newColumn)
Prints the SQL for adding a column to a table.
|
void |
CreationParameters.addParameter(Table table,
String paramName,
String paramValue)
Adds a parameter.
|
protected void |
PlatformImplBase.afterInsert(Connection connection,
Table table)
Allows platforms to issue statements directly after rows have been inserted into
the specified table.
|
protected void |
PlatformImplBase.afterUpdate(Connection connection,
Table table)
Allows platforms to issue statements directly after rows have been updated in
the specified table.
|
boolean |
DefaultTableDefinitionChangesPredicate.areSupported(Table intermediateTable,
List changes)
Evaluates the given list of table changes and determines whether they are supported.
|
protected void |
PlatformImplBase.beforeInsert(Connection connection,
Table table)
Allows platforms to issue statements directly before rows are inserted into
the specified table.
|
protected void |
PlatformImplBase.beforeUpdate(Connection connection,
Table table)
Allows platforms to issue statements directly before rows are updated in
the specified table.
|
protected void |
SqlBuilder.copyData(Table sourceTable,
Table targetTable)
Writes a statement that copies the data from the source to the target table.
|
void |
SqlBuilder.createForeignKey(Database database,
Table table,
ForeignKey foreignKey)
Writes a single foreign key constraint using a alter table statement.
|
void |
SqlBuilder.createForeignKeys(Database database,
Table table)
Creates external foreignkey creation statements if necessary.
|
void |
SqlBuilder.createIndex(Table table,
Index index)
Writes the given index for the table using an external index creation statement.
|
void |
SqlBuilder.createIndexes(Table table)
Writes the indexes for the given table using external index creation statements.
|
void |
SqlBuilder.createPrimaryKey(Table table,
Column[] primaryKeyColumns)
Writes the primary key constraints of the table as alter table statements.
|
protected ModelBasedResultSetIterator |
PlatformImplBase.createResultSetIterator(Database model,
ResultSet resultSet,
Table[] queryHints)
Creates an iterator over the given result set.
|
void |
SqlBuilder.createTable(Database database,
Table table)
Outputs the DDL to create the table along with any non-external constraints as well
as with external primary keys and indices (but not foreign keys).
|
void |
SqlBuilder.createTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the table along with any non-external constraints as well
as with external primary keys and indices (but not foreign keys).
|
protected void |
SqlBuilder.createTemporaryTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the given temporary table.
|
protected void |
JdbcModelReader.determineAutoIncrementFromResultSetMetaData(Table table,
Column[] columnsToCheck)
Helper method that determines the auto increment status for the given columns via the
ResultSetMetaData.isAutoIncrement(int) method. |
String |
JdbcModelReader.determineSchemaOf(Connection connection,
String schemaPattern,
Table table)
Deprecated.
Will be removed once full schema support is in place
|
void |
SqlBuilder.dropForeignKey(Table table,
ForeignKey foreignKey)
Generates the statement to drop a foreignkey constraint from the database using an
alter table statement.
|
void |
SqlBuilder.dropForeignKeys(Table table)
Creates external foreignkey drop statements.
|
void |
SqlBuilder.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
void |
PlatformImplBase.dropTable(Connection connection,
Database model,
Table table,
boolean continueOnError)
Drops the specified table and all foreign keys pointing to it.
|
void |
SqlBuilder.dropTable(Database database,
Table table)
Outputs the DDL required to drop the given table.
|
void |
PlatformImplBase.dropTable(Database model,
Table table,
boolean continueOnError)
Drops the specified table and all foreign keys pointing to it.
|
void |
SqlBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
protected void |
SqlBuilder.dropTemporaryTable(Database database,
Table table)
Outputs the DDL to drop the given temporary table.
|
List |
PlatformImplBase.fetch(Database model,
String sql,
Collection parameters,
Table[] queryHints)
Queries for a list of dyna beans representing rows of the given query.
|
List |
PlatformImplBase.fetch(Database model,
String sql,
Collection parameters,
Table[] queryHints,
int start,
int end)
Queries for a list of dyna beans representing rows of the given query.
|
List |
PlatformImplBase.fetch(Database model,
String sql,
Table[] queryHints)
Queries for a list of dyna beans representing rows of the given query.
|
List |
PlatformImplBase.fetch(Database model,
String sql,
Table[] queryHints,
int start,
int end)
Queries for a list of dyna beans representing rows of the given query.
|
String |
SqlBuilder.getConstraintName(String prefix,
Table table,
String secondPart,
String suffix)
Returns the constraint name.
|
String |
SqlBuilder.getDeleteSql(Table table,
Map pkValues,
boolean genPlaceholders)
Creates the SQL for deleting an object from the specified table.
|
String |
PlatformImplBase.getDropTableSql(Database model,
Table table,
boolean continueOnError)
Returns the SQL for dropping the given table and all foreign keys pointing to it.
|
String |
SqlBuilder.getForeignKeyName(Table table,
ForeignKey fk)
Returns the name to be used for the given foreign key.
|
String |
SqlBuilder.getInsertSql(Table table,
Map columnValues,
boolean genPlaceholders)
Creates the SQL for inserting an object into the specified table.
|
protected Object |
PlatformImplBase.getObjectFromResultSet(ResultSet resultSet,
String columnName,
Table table)
Helper method esp.
|
Map |
CreationParameters.getParametersFor(Table table)
Returns the parameters for the given table.
|
String |
SqlBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
String |
SqlBuilder.getTableName(Table table)
Returns the table name.
|
protected Table |
PlatformImplBase.getTemporaryTableFor(Table targetTable)
Creates a temporary table object that corresponds to the given table.
|
String |
SqlBuilder.getUpdateSql(Table table,
Map columnValues,
boolean genPlaceholders)
Creates the SQL for updating an object in the specified table.
|
String |
SqlBuilder.getUpdateSql(Table table,
Map oldColumnValues,
Map newColumnValues,
boolean genPlaceholders)
Creates the SQL for updating an object in the specified table.
|
protected boolean |
JdbcModelReader.isInternalForeignKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
ForeignKey fk,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given foreign key.
|
protected boolean |
JdbcModelReader.isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary key.
|
protected boolean |
DefaultTableDefinitionChangesPredicate.isSupported(Table intermediateTable,
TableChange change)
Checks whether the given change is suppored.
|
Iterator |
PlatformImplBase.query(Database model,
String sql,
Collection parameters,
Table[] queryHints)
Performs the given parameterized SQL query returning an iterator over the results.
|
Iterator |
PlatformImplBase.query(Database model,
String sql,
Table[] queryHints)
Performs the given SQL query returning an iterator over the results.
|
protected void |
JdbcModelReader.removeInternalForeignKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
ForeignKey fk)
Tries to remove the internal index for the given foreign key.
|
protected void |
JdbcModelReader.removeInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table)
Tries to remove the internal index for the table's primary key.
|
protected void |
JdbcModelReader.removeSystemIndices(DatabaseMetaDataWrapper metaData,
Table table)
Removes system indices (generated by the database for primary and foreign keys)
from the table.
|
void |
SqlBuilder.writeAddIdentityColumnUsingAlterTable(Table table,
Column column)
Write the ALTER TABLE statement to set a given column as a generated
identity column.
|
protected void |
SqlBuilder.writeColumn(Table table,
Column column)
Outputs the DDL for the specified column.
|
protected void |
SqlBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
protected void |
SqlBuilder.writeColumnDefaultValue(Table table,
Column column)
Prints the default value of the column.
|
protected void |
SqlBuilder.writeColumnDefaultValueStmt(Table table,
Column column)
Prints the default value stmt part for the column.
|
protected void |
SqlBuilder.writeColumns(Table table)
Writes the columns of the given table.
|
protected void |
SqlBuilder.writeEmbeddedForeignKeysStmt(Database database,
Table table)
Writes the foreign key constraints inside a create table () clause.
|
protected void |
SqlBuilder.writeEmbeddedIndexCreateStmt(Table table,
Index index)
Writes the given embedded index of the table.
|
protected void |
SqlBuilder.writeEmbeddedIndicesStmt(Table table)
Writes the indexes embedded within the create table statement.
|
protected void |
SqlBuilder.writeEmbeddedPrimaryKeysStmt(Table table)
Writes the primary key constraints of the table inside its definition.
|
protected void |
SqlBuilder.writeForeignKeyOnDeleteAction(Table table,
ForeignKey foreignKey)
Writes the onDelete action for the given foreign key.
|
protected void |
SqlBuilder.writeForeignKeyOnUpdateAction(Table table,
ForeignKey foreignKey)
Writes the onDelete action for the given foreign key.
|
protected void |
SqlBuilder.writePrimaryKeyStmt(Table table,
Column[] primaryKeyColumns)
Writes a primary key statement for the given columns.
|
protected void |
SqlBuilder.writeTableAlterStmt(Table table)
Generates the first part of the ALTER TABLE statement including the
table name.
|
protected void |
SqlBuilder.writeTableComment(Table table)
Outputs a comment for the table.
|
protected void |
SqlBuilder.writeTableCreationStmt(Database database,
Table table,
Map parameters)
Writes the table creation statement without the statement end.
|
protected void |
SqlBuilder.writeTableCreationStmtEnding(Table table,
Map parameters)
Writes the end of the table creation statement.
|
| Constructor and Description |
|---|
ModelBasedResultSetIterator(PlatformImplBase platform,
Database model,
ResultSet resultSet,
Table[] queryHints,
boolean cleanUpAfterFinish)
Creates a new iterator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AxionBuilder.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
void |
AxionBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
protected void |
AxionModelReader.removeSystemIndices(DatabaseMetaDataWrapper metaData,
Table table)
Removes system indices (generated by the database for primary and foreign keys)
from the table.
|
protected void |
AxionBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
| Modifier and Type | Method and Description |
|---|---|
String |
CloudscapeBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
protected void |
CloudscapeBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
| Modifier and Type | Method and Description |
|---|---|
protected Table |
Db2ModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
Db2ModelReader.determineAutoIncrementColumns(Table table)
Helper method that determines the auto increment status using Firebird's system tables.
|
void |
Db2Builder.dropColumn(Table table,
Column column)
Generates the SQL to drop a column from a table.
|
void |
Db2v8Builder.dropColumn(Table table,
Column column)
Generates the SQL to drop a column from a table.
|
void |
Db2Builder.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
void |
Db2Builder.dropPrimaryKey(Table table)
Writes the SQL for dropping the primary key of the given table.
|
String |
Db2Builder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
protected boolean |
Db2ModelReader.isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary key.
|
protected void |
Db2Builder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DerbyBuilder.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
protected boolean |
DerbyModelReader.isInternalForeignKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
ForeignKey fk,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given foreign key.
|
protected boolean |
DerbyModelReader.isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary key.
|
protected void |
DerbyBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
| Modifier and Type | Method and Description |
|---|---|
protected Table |
FirebirdModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FirebirdBuilder.addColumn(Database model,
Table table,
Column newColumn)
Prints the SQL for adding a column to a table.
|
void |
FirebirdBuilder.createTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the table along with any non-external constraints as well
as with external primary keys and indices (but not foreign keys).
|
protected void |
FirebirdModelReader.determineAutoIncrementColumns(Table table)
Helper method that determines the auto increment status using Firebird's system tables.
|
String |
FirebirdModelReader.determineSchemaOf(Connection connection,
String schemaPattern,
Table table)
Tries to find the schema to which the given table belongs.
|
void |
FirebirdBuilder.dropColumn(Table table,
Column column)
Writes the SQL to drop a column.
|
void |
FirebirdBuilder.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
void |
FirebirdBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
protected String |
FirebirdBuilder.getGeneratorName(Table table,
Column column)
Determines the name of the generator for an auto-increment column.
|
String |
FirebirdBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
void |
FirebirdBuilder.insertColumn(Database model,
Table table,
Column newColumn,
Column prevColumn)
Writes the SQL to add/insert a column.
|
protected boolean |
FirebirdModelReader.isInternalForeignKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
ForeignKey fk,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given foreign key.
|
protected boolean |
FirebirdModelReader.isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary key.
|
protected void |
FirebirdBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
| Modifier and Type | Method and Description |
|---|---|
void |
GemFireXDBuilder.createIndex(Table table,
Index index)
Writes the given index for the table using an external index creation
statement.
|
void |
GemFireXDBuilder.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
void |
GemFireXDBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
protected String |
GemFireXDBuilder.getIndexName(Table table,
Index index) |
protected boolean |
GemFireXDModelReader.isInternalForeignKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
ForeignKey fk,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given foreign key.
|
protected boolean |
GemFireXDModelReader.isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary key.
|
void |
GemFireXDBuilder.writeAddIdentityColumnUsingAlterTable(Table table,
Column column) |
protected void |
GemFireXDBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
protected void |
GemFireXDBuilder.writeEmbeddedIndexCreateStmt(Table table,
Index index)
Writes the given embedded index of the table.
|
| Modifier and Type | Method and Description |
|---|---|
protected Table |
HsqlDbModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
HsqlDbBuilder.dropColumn(Table table,
Column column)
Writes the SQL to drop a column.
|
void |
HsqlDbBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
String |
HsqlDbBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
void |
HsqlDbBuilder.insertColumn(Table table,
Column newColumn,
Column nextColumn)
Writes the SQL to add/insert a column.
|
protected boolean |
HsqlDbModelReader.isInternalForeignKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
ForeignKey fk,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given foreign key.
|
protected boolean |
HsqlDbModelReader.isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary key.
|
protected void |
HsqlDbBuilder.writeColumn(Table table,
Column column)
Outputs the DDL for the specified column.
|
protected void |
HsqlDbBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
| Modifier and Type | Method and Description |
|---|---|
protected Table |
InterbaseModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
InterbaseModelReader.adjustColumns(Table table)
Adjusts the columns in the table by fixing types and default values.
|
void |
InterbaseBuilder.createTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the table along with any non-external constraints as well
as with external primary keys and indices (but not foreign keys).
|
protected void |
InterbaseModelReader.determineAutoIncrementColumns(Table table)
Helper method that determines the auto increment status using Interbase's system tables.
|
protected void |
InterbaseModelReader.determineExtraColumnInfo(Table table)
Helper method that determines extra column info from the system tables: default value, precision, scale.
|
String |
InterbaseModelReader.determineSchemaOf(Connection connection,
String schemaPattern,
Table table)
Tries to find the schema to which the given table belongs.
|
void |
InterbaseBuilder.dropColumn(Table table,
Column column)
Writes the SQL to drop a column.
|
void |
InterbaseBuilder.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
void |
InterbaseBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
protected String |
InterbaseBuilder.getGeneratorName(Table table,
Column column)
Determines the name of the generator for an auto-increment column.
|
String |
InterbaseBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
protected String |
InterbaseBuilder.getTriggerName(Table table,
Column column)
Determines the name of the trigger for an auto-increment column.
|
void |
InterbaseBuilder.insertColumn(Database model,
Table table,
Column newColumn,
Column prevColumn)
Writes the SQL to add/insert a column.
|
protected boolean |
InterbaseModelReader.isInternalForeignKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
ForeignKey fk,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given foreign key.
|
protected boolean |
InterbaseModelReader.isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary key.
|
protected void |
InterbaseBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MaxDbBuilder.createPrimaryKey(Table table,
Column[] primaryKeyColumns)
Writes the primary key constraints of the table as alter table statements.
|
void |
MaxDbBuilder.dropForeignKey(Table table,
ForeignKey foreignKey)
Generates the statement to drop a foreignkey constraint from the database using an
alter table statement.
|
| Modifier and Type | Method and Description |
|---|---|
protected Table |
MckoiModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
MckoiBuilder.createAutoIncrementSequence(Table table,
Column column)
Creates the sequence necessary for the auto-increment of the given column.
|
void |
MckoiBuilder.createTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the table along with any non-external constraints as well
as with external primary keys and indices (but not foreign keys).
|
protected void |
MckoiBuilder.dropAutoIncrementSequence(Table table,
Column column)
Drops the sequence used for the auto-increment of the given column.
|
void |
MckoiBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
String |
MckoiBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
protected void |
MckoiBuilder.writeColumnDefaultValue(Table table,
Column column)
Prints the default value of the column.
|
protected void |
MckoiBuilder.writeRecreateTableStmt(Database model,
Table table,
Map parameters)
Writes the SQL to recreate a table.
|
| Modifier and Type | Method and Description |
|---|---|
protected Table |
MSSqlModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MSSqlBuilder.addColumn(Database model,
Table table,
Column newColumn)
Prints the SQL for adding a column to a table.
|
protected void |
MSSqlPlatform.afterInsert(Connection connection,
Table table)
Allows platforms to issue statements directly after rows have been inserted into
the specified table.
|
protected void |
MSSqlPlatform.afterUpdate(Connection connection,
Table table)
Allows platforms to issue statements directly after rows have been updated in
the specified table.
|
protected void |
MSSqlPlatform.beforeInsert(Connection connection,
Table table)
Allows platforms to issue statements directly before rows are inserted into
the specified table.
|
protected void |
MSSqlPlatform.beforeUpdate(Connection connection,
Table table)
Allows platforms to issue statements directly before rows are updated in
the specified table.
|
protected List |
MSSqlModelComparator.checkForAddedIndexes(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for indexes that are not present in the given source table but are in the target
table, and applies them to the given intermediate model.
|
protected List |
MSSqlModelComparator.checkForPrimaryKeyChanges(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for primary key differences (primary key added/removed/changed), and applies them to the given intermediate model.
|
protected List |
MSSqlModelComparator.checkForRemovedIndexes(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for indexes that are present in the given source table but are no longer in the target
table, and applies them to the given intermediate model.
|
protected void |
MSSqlBuilder.copyData(Table sourceTable,
Table targetTable)
Writes a statement that copies the data from the source to the target table.
|
void |
MSSqlBuilder.createTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the table along with any non-external constraints as well
as with external primary keys and indices (but not foreign keys).
|
void |
MSSqlBuilder.dropColumn(Table table,
Column column)
Generates the SQL to drop a column from a table.
|
void |
MSSqlBuilder.dropForeignKey(Table table,
ForeignKey foreignKey)
Generates the statement to drop a foreignkey constraint from the database using an
alter table statement.
|
void |
MSSqlBuilder.dropForeignKeys(Table table)
Creates external foreignkey drop statements.
|
void |
MSSqlBuilder.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
void |
MSSqlBuilder.dropPrimaryKey(Table table)
Writes the SQL for dropping the primary key of the given table.
|
void |
MSSqlBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
String |
MSSqlBuilder.getDeleteSql(Table table,
Map pkValues,
boolean genPlaceholders)
Creates the SQL for deleting an object from the specified table.
|
protected String |
MSSqlBuilder.getDisableIdentityOverrideSql(Table table)
Returns the SQL to disable identity override mode.
|
protected String |
MSSqlBuilder.getEnableIdentityOverrideSql(Table table)
Returns the SQL to enable identity override mode.
|
String |
MSSqlBuilder.getInsertSql(Table table,
Map columnValues,
boolean genPlaceholders)
Creates the SQL for inserting an object into the specified table.
|
String |
MSSqlBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
String |
MSSqlBuilder.getUpdateSql(Table table,
Map columnValues,
boolean genPlaceholders)
Creates the SQL for updating an object in the specified table.
|
protected boolean |
MSSqlModelReader.isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary key.
|
void |
MSSqlBuilder.recreateColumn(Table table,
Column curColumn,
Column newColumn)
Writes the SQL to recreate a column, e.g.
|
protected void |
MSSqlBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
protected void |
MSSqlBuilder.writeDropConstraintStatement(Table table,
Column column,
String typeIdentifier)
Writes the SQL to drop a constraint, e.g.
|
| Modifier and Type | Method and Description |
|---|---|
protected Table |
MySqlModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| Modifier and Type | Method and Description |
|---|---|
protected List |
MySqlModelComparator.checkForRemovedIndexes(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Creates change objects for indexes that are present in the given source table but are no longer in the target
table, and applies them to the given intermediate model.
|
protected List |
MySqlModelComparator.compareTables(Database sourceModel,
Table sourceTable,
Database intermediateModel,
Table intermediateTable,
Database targetModel,
Table targetTable)
Compares the two tables and returns the changes necessary to create the second
table from the first one.
|
protected void |
MySql50Builder.copyData(Table sourceTable,
Table targetTable)
Writes a statement that copies the data from the source to the target table.
|
void |
MySqlBuilder.dropColumn(Table table,
Column column)
Writes the SQL to drop a column.
|
void |
MySqlBuilder.dropForeignKey(Table table,
ForeignKey foreignKey)
Generates the statement to drop a foreignkey constraint from the database using an
alter table statement.
|
void |
MySqlBuilder.dropPrimaryKey(Table table)
Writes the SQL to drop the primary key of the given table.
|
void |
MySqlBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
String |
MySqlBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
void |
MySqlBuilder.insertColumn(Table table,
Column newColumn,
Column prevColumn)
Writes the SQL to add/insert a column.
|
protected boolean |
MySqlModelReader.isInternalForeignKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
ForeignKey fk,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given foreign key.
|
protected boolean |
MySqlModelReader.isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary key.
|
void |
MySqlBuilder.recreateColumn(Table table,
Column column)
Writes the SQL to recreate a column, e.g.
|
protected void |
MySqlBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
protected void |
MySqlBuilder.writeTableCreationStmtEnding(Table table,
Map parameters)
Writes the end of the table creation statement.
|
| Modifier and Type | Method and Description |
|---|---|
protected Table |
Oracle10ModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
protected Table |
Oracle8ModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Oracle8Builder.addColumn(Database model,
Table table,
Column newColumn)
Prints the SQL for adding a column to a table.
|
protected void |
Oracle8Builder.createAutoIncrementSequence(Table table,
Column column)
Creates the sequence necessary for the auto-increment of the given column.
|
protected void |
Oracle8Builder.createAutoIncrementTrigger(Table table,
Column column)
Creates the trigger necessary for the auto-increment of the given column.
|
void |
Oracle8Builder.createTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the table along with any non-external constraints as well
as with external primary keys and indices (but not foreign keys).
|
protected void |
Oracle8Builder.createTemporaryTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the given temporary table.
|
protected void |
Oracle8ModelReader.determineAutoIncrementColumns(Table table)
Helper method that determines the auto increment status using Firebird's system tables.
|
protected void |
Oracle8Builder.dropAutoIncrementSequence(Table table,
Column column)
Drops the sequence used for the auto-increment of the given column.
|
protected void |
Oracle8Builder.dropAutoIncrementTrigger(Table table,
Column column)
Drops the trigger used for the auto-increment of the given column.
|
void |
Oracle8Builder.dropColumn(Table table,
Column column)
Writes the SQL to drop a column.
|
void |
Oracle8Builder.dropForeignKeys(Table table)
Creates external foreignkey drop statements.
|
void |
Oracle8Builder.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
void |
Oracle8Builder.dropPrimaryKey(Table table)
Writes the SQL to drop the primary key of the given table.
|
void |
Oracle10Builder.dropTable(Table table)
Outputs the DDL to drop the table.
|
void |
Oracle8Builder.dropTable(Table table)
Outputs the DDL to drop the table.
|
protected void |
Oracle8Builder.dropTemporaryTable(Database database,
Table table)
Outputs the DDL to drop the given temporary table.
|
String |
Oracle8Builder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
protected boolean |
Oracle8ModelReader.isAutoIncrement(Table table,
Column column)
Tries to determine whether the given column is an identity column.
|
protected void |
Oracle8Builder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
| Modifier and Type | Method and Description |
|---|---|
protected Table |
PostgreSqlModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PostgreSqlBuilder.addColumn(Database model,
Table table,
Column newColumn)
Prints the SQL for adding a column to a table.
|
void |
PostgreSqlBuilder.createTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the table along with any non-external constraints as well
as with external primary keys and indices (but not foreign keys).
|
void |
PostgreSqlBuilder.dropColumn(Table table,
Column column)
Writes the SQL to drop a column.
|
void |
PostgreSqlBuilder.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
void |
PostgreSqlBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
String |
PostgreSqlBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
protected boolean |
PostgreSqlModelReader.isInternalForeignKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
ForeignKey fk,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given foreign key.
|
protected boolean |
PostgreSqlModelReader.isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary key.
|
protected void |
PostgreSqlBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SapDbBuilder.addColumn(Database model,
Table table,
Column newColumn)
Prints the SQL for adding a column to a table.
|
void |
SapDbBuilder.changeColumnDefaultValue(Table table,
Column column,
String newDefaultValue)
Writes the SQL to set the default value of the given column.
|
void |
SapDbBuilder.changeColumnRequiredStatus(Table table,
Column column,
boolean isRequired)
Writes the SQL to set the required status of the given column.
|
void |
SapDbBuilder.createPrimaryKey(Table table,
Column[] primaryKeyColumns)
Writes the primary key constraints of the table as alter table statements.
|
void |
SapDbBuilder.dropColumn(Table table,
Column column)
Writes the SQL to drop a column.
|
void |
SapDbBuilder.dropForeignKey(Table table,
ForeignKey foreignKey)
Generates the statement to drop a foreignkey constraint from the database using an
alter table statement.
|
void |
SapDbBuilder.dropPrimaryKey(Table table)
Writes the SQL to drop the primary key of the given table.
|
void |
SapDbBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
String |
SapDbBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
protected void |
SapDbBuilder.writeColumnAutoIncrementStmt(Table table,
Column column)
Prints that the column is an auto increment column.
|
protected void |
SapDbBuilder.writeForeignKeyOnDeleteAction(Table table,
ForeignKey foreignKey)
Writes the onDelete action for the given foreign key.
|
| Modifier and Type | Method and Description |
|---|---|
protected Table |
SybaseModelReader.readTable(DatabaseMetaDataWrapper metaData,
Map values)
Reads the next table from the meta data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SybaseBuilder.addColumn(Database model,
Table table,
Column newColumn)
Prints the SQL for adding a column to a table.
|
protected void |
SybasePlatform.afterInsert(Connection connection,
Table table)
Allows platforms to issue statements directly after rows have been inserted into
the specified table.
|
protected void |
SybasePlatform.afterUpdate(Connection connection,
Table table)
Allows platforms to issue statements directly after rows have been updated in
the specified table.
|
protected void |
SybasePlatform.beforeInsert(Connection connection,
Table table)
Allows platforms to issue statements directly before rows are inserted into
the specified table.
|
protected void |
SybasePlatform.beforeUpdate(Connection connection,
Table table)
Allows platforms to issue statements directly before rows are updated in
the specified table.
|
void |
SybaseBuilder.changeColumn(Table table,
Column column,
Column newColumn)
Writes the SQL to change the given column.
|
void |
SybaseBuilder.changeColumnDefaultValue(Table table,
Column column,
String newDefaultValue)
Writes the SQL to set the default value of the given column.
|
protected void |
SybaseBuilder.copyData(Table sourceTable,
Table targetTable)
Writes a statement that copies the data from the source to the target table.
|
void |
SybaseBuilder.createTable(Database database,
Table table,
Map parameters)
Outputs the DDL to create the table along with any non-external constraints as well
as with external primary keys and indices (but not foreign keys).
|
void |
SybaseBuilder.dropColumn(Table table,
Column column)
Writes the SQL to drop a column.
|
void |
SybaseBuilder.dropForeignKey(Table table,
ForeignKey foreignKey)
Generates the statement to drop a foreignkey constraint from the database using an
alter table statement.
|
void |
SybaseBuilder.dropForeignKeys(Table table)
Creates external foreignkey drop statements.
|
void |
SybaseBuilder.dropIndex(Table table,
Index index)
Generates the statement to drop a non-embedded index from the database.
|
void |
SybaseBuilder.dropPrimaryKey(Table table)
Writes the SQL to drop the primary key of the given table.
|
void |
SybaseBuilder.dropTable(Table table)
Outputs the DDL to drop the table.
|
List |
SybasePlatform.fetch(Database model,
String sql,
Collection parameters,
Table[] queryHints,
int start,
int end)
Queries for a list of dyna beans representing rows of the given query.
|
List |
SybasePlatform.fetch(Database model,
String sql,
Table[] queryHints,
int start,
int end)
Queries for a list of dyna beans representing rows of the given query.
|
protected String |
SybaseBuilder.getDisableIdentityOverrideSql(Table table)
Returns the SQL to disable identity override mode.
|
protected String |
SybaseBuilder.getEnableIdentityOverrideSql(Table table)
Returns the SQL to enable identity override mode.
|
String |
SybaseBuilder.getSelectLastIdentityValues(Table table)
Generates the SQL for querying the id that was created in the last insertion
operation.
|
protected boolean |
SybaseModelReader.isInternalPrimaryKeyIndex(DatabaseMetaDataWrapper metaData,
Table table,
Index index)
Tries to determine whether the index is the internal database-generated index
for the given table's primary key.
|
Iterator |
SybasePlatform.query(Database model,
String sql,
Collection parameters,
Table[] queryHints)
Performs the given parameterized SQL query returning an iterator over the results.
|
Iterator |
SybasePlatform.query(Database model,
String sql,
Table[] queryHints)
Performs the given SQL query returning an iterator over the results.
|
void |
SybaseBuilder.turnOffIdentityOverride(Table table)
Writes the statement that turns off identity override mode.
|
void |
SybaseBuilder.turnOnIdentityOverride(Table table)
Writes the statement that turns on identity override mode.
|
protected void |
SybaseBuilder.writeColumn(Table table,
Column column)
Outputs the DDL for the specified column.
|
protected void |
SybaseBuilder.writeTableCreationStmtEnding(Table table,
Map parameters)
Writes the end of the table creation statement.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
TableSpecificParameter.isForTable(Table table,
boolean caseSensitive)
Determines whether this parameter is applicable to the given table.
|
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.