Package | Description |
---|---|
net.java.ao | |
net.java.ao.db | |
net.java.ao.schema.ddl |
Modifier and Type | Method and Description |
---|---|
protected SQLAction |
DatabaseProvider._renderDropFunctionForField(NameConverters nameConverters,
DDLTable table,
DDLField field)
Renders SQL statement(s) to drop the function which corresponds to the
specified field, if applicable, or
null otherwise. |
protected SQLAction |
DatabaseProvider._renderDropSequenceForField(NameConverters nameConverters,
DDLTable table,
DDLField field)
Renders SQL statement(s) to drop the sequence which corresponds to the
specified field, or
null if none. |
protected SQLAction |
DatabaseProvider._renderDropTriggerForField(NameConverters nameConverters,
DDLTable table,
DDLField field)
Renders SQL statement(s) to drop the trigger which corresponds to the
specified field, or
null if none. |
protected SQLAction |
DatabaseProvider._renderFunctionForField(NameConverters nameConverters,
DDLTable table,
DDLField field)
Renders the function which corresponds to the specified field, or
null if none. |
protected SQLAction |
DatabaseProvider._renderSequenceForField(NameConverters nameConverters,
DDLTable table,
DDLField field)
Renders the SQL for creating a sequence for the specified field, or
null if none. |
protected SQLAction |
DatabaseProvider._renderTriggerForField(NameConverters nameConverters,
DDLTable table,
DDLField field)
Renders the trigger which corresponds to the specified field, or
null if none. |
protected SQLAction |
DatabaseProvider.renderAlterTableAddColumnStatement(NameConverters nameConverters,
DDLTable table,
DDLField field)
Generates the database-specific DDL statement for adding a column,
but not including any corresponding sequences, triggers, etc.
|
protected SQLAction |
DatabaseProvider.renderAlterTableAddKey(DDLForeignKey key)
Generates the database-specific DDL statement required to add a
foreign key to a table.
|
protected SQLAction |
DatabaseProvider.renderAlterTableChangeColumnStatement(NameConverters nameConverters,
DDLTable table,
DDLField oldField,
DDLField field,
DatabaseProvider.RenderFieldOptions options)
Generates the database-specific DDL statement only for altering a table and
changing a column.
|
protected SQLAction |
DatabaseProvider.renderAlterTableDropColumnStatement(DDLTable table,
DDLField field) |
protected SQLAction |
DatabaseProvider.renderAlterTableDropKey(DDLForeignKey key)
Generates the database-specific DDL statement required to remove a
foreign key from a table.
|
SQLAction |
DatabaseProvider.renderCreateCompositeIndex(String tableName,
String indexName,
List<String> fields)
Deprecated.
Use
DatabaseProvider.renderCreateIndex(IndexNameConverter, DDLIndex) for creating indexes. |
protected SQLAction |
DatabaseProvider.renderCreateIndex(IndexNameConverter indexNameConverter,
DDLIndex index)
Generates the database-specific DDL statement required to create
a new index.
|
protected SQLAction |
DatabaseProvider.renderDropIndex(IndexNameConverter indexNameConverter,
DDLIndex index)
Generates the database-specific DDL statement required to drop
an index.
|
protected SQLAction |
DatabaseProvider.renderDropTableStatement(DDLTable table)
Generates the appropriate database-specific DDL statement to
drop the specified table representation.
|
protected SQLAction |
DatabaseProvider.renderInsert(DDLTable ddlTable,
DDLValue[] ddlValues) |
protected SQLAction |
DatabaseProvider.renderTable(NameConverters nameConverters,
DDLTable table)
Renders the specified table representation into the corresponding
database-specific DDL statement.
|
Modifier and Type | Method and Description |
---|---|
protected Iterable<SQLAction> |
DatabaseProvider.renderAccessories(NameConverters nameConverters,
DDLTable table)
Generates the database-specific DDL statements required to create
all of the functions, sequences, and triggers necessary for the given table,
by calling
DatabaseProvider.renderAccessoriesForField(NameConverters, DDLTable, DDLField)
for each of the table's fields. |
protected Iterable<SQLAction> |
DatabaseProvider.renderAccessoriesForField(NameConverters nameConverters,
DDLTable table,
DDLField field)
Generates database-specific DDL statements required to create any functions,
sequences, or triggers required for the given field.
|
Iterable<SQLAction> |
DatabaseProvider.renderAction(NameConverters nameConverters,
DDLAction action)
Top level delegating method for the process of rendering a database-agnostic
DDLAction into the database-specific SQL actions. |
protected Iterable<SQLAction> |
DatabaseProvider.renderAlterTableAddColumn(NameConverters nameConverters,
DDLTable table,
DDLField field)
Generates the database-specific DDL statements required to add
a column to an existing table.
|
protected Iterable<SQLAction> |
DatabaseProvider.renderAlterTableChangeColumn(NameConverters nameConverters,
DDLTable table,
DDLField oldField,
DDLField field)
Generates the database-specific DDL statements required to change
the given column from its old specification to the given DDL value.
|
protected Iterable<SQLAction> |
DatabaseProvider.renderAlterTableDropColumn(NameConverters nameConverters,
DDLTable table,
DDLField field)
Generates the database-specific DDL statements required to remove
the specified column from the given table.
|
protected Iterable<SQLAction> |
DatabaseProvider.renderDropAccessories(NameConverters nameConverters,
DDLTable table)
Generates the database-specific DDL statements required to drop
all of the functions, sequences, and triggers associated with the given table,
by calling
DatabaseProvider.renderDropAccessoriesForField(NameConverters, DDLTable, DDLField)
for each of the table's fields. |
protected Iterable<SQLAction> |
DatabaseProvider.renderDropAccessoriesForField(NameConverters nameConverters,
DDLTable table,
DDLField field)
Generates database-specific DDL statements required to drop any functions,
sequences, or triggers associated with the given field.
|
protected Iterable<SQLAction> |
DatabaseProvider.renderDropColumnActions(NameConverters nameConverters,
DDLTable table,
DDLField field) |
protected Iterable<SQLAction> |
DatabaseProvider.renderFields(DDLTable table,
com.google.common.base.Predicate<DDLField> filter,
com.google.common.base.Function<DDLField,Iterable<SQLAction>> render) |
Modifier and Type | Method and Description |
---|---|
Iterable<String> |
DatabaseProvider.executeUpdateForAction(Statement stmt,
SQLAction action,
Set<String> completedStatements) |
Modifier and Type | Method and Description |
---|---|
Iterable<String> |
DatabaseProvider.executeUpdatesForActions(Statement stmt,
Iterable<SQLAction> actions,
Set<String> completedStatements)
Attempt to execute a list of actions that make up a logical unit (e.g.
|
protected Iterable<SQLAction> |
DatabaseProvider.renderFields(DDLTable table,
com.google.common.base.Predicate<DDLField> filter,
com.google.common.base.Function<DDLField,Iterable<SQLAction>> render) |
Modifier and Type | Method and Description |
---|---|
protected SQLAction |
SQLServerDatabaseProvider.renderAlterTableAddColumnStatement(NameConverters nameConverters,
DDLTable table,
DDLField field) |
protected SQLAction |
OracleDatabaseProvider.renderAlterTableAddColumnStatement(NameConverters nameConverters,
DDLTable table,
DDLField field) |
protected SQLAction |
SQLServerDatabaseProvider.renderAlterTableChangeColumnStatement(NameConverters nameConverters,
DDLTable table,
DDLField oldField,
DDLField field,
DatabaseProvider.RenderFieldOptions options) |
protected SQLAction |
HSQLDatabaseProvider.renderAlterTableChangeColumnStatement(NameConverters nameConverters,
DDLTable table,
DDLField oldField,
DDLField field,
DatabaseProvider.RenderFieldOptions options) |
protected SQLAction |
H2DatabaseProvider.renderAlterTableChangeColumnStatement(NameConverters nameConverters,
DDLTable table,
DDLField oldField,
DDLField field,
DatabaseProvider.RenderFieldOptions options) |
protected SQLAction |
SQLServerDatabaseProvider.renderAlterTableDropKey(DDLForeignKey key) |
protected SQLAction |
PostgreSQLDatabaseProvider.renderAlterTableDropKey(DDLForeignKey key) |
protected SQLAction |
OracleDatabaseProvider.renderAlterTableDropKey(DDLForeignKey key) |
protected SQLAction |
NuoDBDatabaseProvider.renderAlterTableDropKey(DDLForeignKey key) |
protected SQLAction |
HSQLDatabaseProvider.renderAlterTableDropKey(DDLForeignKey key) |
protected SQLAction |
H2DatabaseProvider.renderAlterTableDropKey(DDLForeignKey key) |
SQLAction |
MySQLDatabaseProvider.renderCreateCompositeIndex(String tableName,
String indexName,
List<String> fields) |
protected SQLAction |
SQLServerDatabaseProvider.renderCreateIndex(IndexNameConverter indexNameConverter,
DDLIndex index) |
protected SQLAction |
PostgreSQLDatabaseProvider.renderCreateIndex(IndexNameConverter indexNameConverter,
DDLIndex index) |
protected SQLAction |
NuoDBDatabaseProvider.renderCreateIndex(IndexNameConverter indexNameConverter,
DDLIndex index) |
protected SQLAction |
MySQLDatabaseProvider.renderCreateIndex(IndexNameConverter indexNameConverter,
DDLIndex index) |
protected SQLAction |
SQLServerDatabaseProvider.renderDropIndex(IndexNameConverter indexNameConverter,
DDLIndex index) |
protected SQLAction |
PostgreSQLDatabaseProvider.renderDropIndex(IndexNameConverter indexNameConverter,
DDLIndex index) |
protected SQLAction |
OracleDatabaseProvider.renderDropIndex(IndexNameConverter indexNameConverter,
DDLIndex index) |
protected SQLAction |
NuoDBDatabaseProvider.renderDropIndex(IndexNameConverter indexNameConverter,
DDLIndex index) |
protected SQLAction |
HSQLDatabaseProvider.renderDropIndex(IndexNameConverter indexNameConverter,
DDLIndex index) |
protected SQLAction |
H2DatabaseProvider.renderDropIndex(IndexNameConverter indexNameConverter,
DDLIndex index) |
protected SQLAction |
OracleDatabaseProvider.renderDropTableStatement(DDLTable table) |
Modifier and Type | Method and Description |
---|---|
protected Iterable<SQLAction> |
OracleDatabaseProvider.renderAccessoriesForField(NameConverters nameConverters,
DDLTable table,
DDLField field) |
protected Iterable<SQLAction> |
NuoDBDatabaseProvider.renderAccessoriesForField(NameConverters nameConverters,
DDLTable table,
DDLField field)
Create indices on field being altered.
|
protected Iterable<SQLAction> |
MySQLDatabaseProvider.renderAlterTableAddColumn(NameConverters nameConverters,
DDLTable table,
DDLField field) |
protected Iterable<SQLAction> |
HSQLDatabaseProvider.renderAlterTableAddColumn(NameConverters nameConverters,
DDLTable table,
DDLField field) |
protected Iterable<SQLAction> |
H2DatabaseProvider.renderAlterTableAddColumn(NameConverters nameConverters,
DDLTable table,
DDLField field) |
protected Iterable<SQLAction> |
SQLServerDatabaseProvider.renderAlterTableChangeColumn(NameConverters nameConverters,
DDLTable table,
DDLField oldField,
DDLField field) |
protected Iterable<SQLAction> |
PostgreSQLDatabaseProvider.renderAlterTableChangeColumn(NameConverters nameConverters,
DDLTable table,
DDLField oldField,
DDLField field) |
protected Iterable<SQLAction> |
OracleDatabaseProvider.renderAlterTableChangeColumn(NameConverters nameConverters,
DDLTable table,
DDLField oldField,
DDLField field) |
protected Iterable<SQLAction> |
NuoDBDatabaseProvider.renderAlterTableChangeColumn(NameConverters nameConverters,
DDLTable table,
DDLField oldField,
DDLField field) |
protected Iterable<SQLAction> |
MySQLDatabaseProvider.renderAlterTableChangeColumn(NameConverters nameConverters,
DDLTable table,
DDLField oldField,
DDLField field) |
protected Iterable<SQLAction> |
HSQLDatabaseProvider.renderAlterTableChangeColumn(NameConverters nameConverters,
DDLTable table,
DDLField oldField,
DDLField field) |
protected Iterable<SQLAction> |
H2DatabaseProvider.renderAlterTableChangeColumn(NameConverters nameConverters,
DDLTable table,
DDLField oldField,
DDLField field) |
protected Iterable<SQLAction> |
OracleDatabaseProvider.renderDropAccessoriesForField(NameConverters nameConverters,
DDLTable table,
DDLField field) |
protected Iterable<SQLAction> |
NuoDBDatabaseProvider.renderDropAccessoriesForField(NameConverters nameConverters,
DDLTable table,
DDLField field)
Drop indices on field being altered.
|
Modifier and Type | Method and Description |
---|---|
SQLAction |
SQLAction.getUndoAction() |
static SQLAction |
SQLAction.of(CharSequence statement) |
SQLAction |
SQLAction.withUndoAction(SQLAction undoAction) |
Modifier and Type | Method and Description |
---|---|
SQLAction |
SQLAction.withUndoAction(SQLAction undoAction) |
Copyright © 2007-2017. All Rights Reserved.