|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eobjects.metamodel.AbstractUpdateCallback
public abstract class AbstractUpdateCallback
Abstract implementation of the UpdateCallback interface. Implements
only the data store agnostic methods.
| Constructor Summary | |
|---|---|
AbstractUpdateCallback(DataContext dataContext)
|
|
| Method Summary | |
|---|---|
TableCreationBuilder |
createTable(String schemaName,
String tableName)
Initiates the building of a table creation operation. |
RowDeletionBuilder |
deleteFrom(String tableName)
Initiates a row deletion builder. |
RowDeletionBuilder |
deleteFrom(String schemaName,
String tableName)
Initiates a row deletion builder. |
TableDropBuilder |
dropTable(Schema schema,
String tableName)
|
TableDropBuilder |
dropTable(String tableName)
|
TableDropBuilder |
dropTable(String schemaName,
String tableName)
|
DataContext |
getDataContext()
Gets the DataContext on which the update script is being executed. |
RowInsertionBuilder |
insertInto(String tableName)
Initiates the building of a row insertion operation. |
RowInsertionBuilder |
insertInto(String schemaName,
String tableName)
Initiates the building of a row insertion operation. |
boolean |
isCreateTableSupported()
Determines whether table creation is supported |
boolean |
isInsertSupported()
Determines whether row insertion is supported |
boolean |
isUpdateSupported()
Determines whether row update is supported |
RowUpdationBuilder |
update(String tableName)
Initiates a row updation builder. |
RowUpdationBuilder |
update(String schemaName,
String tableName)
Initiates a row updation builder. |
RowUpdationBuilder |
update(Table table)
Initiates a row updation builder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eobjects.metamodel.create.TableCreatable |
|---|
createTable |
| Methods inherited from interface org.eobjects.metamodel.drop.TableDroppable |
|---|
dropTable, isDropTableSupported |
| Methods inherited from interface org.eobjects.metamodel.insert.RowInsertable |
|---|
insertInto |
| Methods inherited from interface org.eobjects.metamodel.delete.RowDeletable |
|---|
deleteFrom, isDeleteSupported |
| Constructor Detail |
|---|
public AbstractUpdateCallback(DataContext dataContext)
| Method Detail |
|---|
public TableCreationBuilder createTable(String schemaName,
String tableName)
throws IllegalArgumentException,
IllegalStateException
TableCreatable
createTable in interface TableCreatableschemaName - the name of the schema to create the table intableName - the name of the new table
IllegalArgumentException - if the table argument is null or invalid.
IllegalStateException - if the connection to the DataContext is read-only or another
access restriction is preventing the operation.
public TableDropBuilder dropTable(String schemaName,
String tableName)
throws IllegalArgumentException,
IllegalStateException,
UnsupportedOperationException
dropTable in interface TableDroppableIllegalArgumentException
IllegalStateException
UnsupportedOperationException
public TableDropBuilder dropTable(Schema schema,
String tableName)
throws IllegalArgumentException,
IllegalStateException,
UnsupportedOperationException
dropTable in interface TableDroppableIllegalArgumentException
IllegalStateException
UnsupportedOperationException
public final RowInsertionBuilder insertInto(String tableName)
throws IllegalArgumentException,
IllegalStateException
RowInsertable
insertInto in interface RowInsertabletableName - the name of the table to insert a row into
IllegalArgumentException - if the tableName argument is null or invalid.
IllegalStateException - if the connection to the DataContext is read-only or another
access restriction is preventing the operation.
public RowInsertionBuilder insertInto(String schemaName,
String tableName)
throws IllegalArgumentException,
IllegalStateException,
UnsupportedOperationException
RowInsertable
insertInto in interface RowInsertableschemaName - the name of the schematableName - the name of the table to insert a row into
IllegalArgumentException - if the tableName argument is null or invalid.
IllegalStateException - if the connection to the DataContext is read-only or another
access restriction is preventing the operation.
UnsupportedOperationException - in case RowInsertable.isInsertSupported() is falsepublic final RowDeletionBuilder deleteFrom(String tableName)
RowDeletable
deleteFrom in interface RowDeletable
public RowDeletionBuilder deleteFrom(String schemaName,
String tableName)
throws IllegalArgumentException,
IllegalStateException,
UnsupportedOperationException
RowDeletable
deleteFrom in interface RowDeletableIllegalArgumentException
IllegalStateException
UnsupportedOperationExceptionpublic final TableDropBuilder dropTable(String tableName)
dropTable in interface TableDroppablepublic final RowUpdationBuilder update(String tableName)
RowUpdateable
update in interface RowUpdateablepublic DataContext getDataContext()
UpdateCallback
getDataContext in interface UpdateCallbackpublic boolean isCreateTableSupported()
TableCreatable
isCreateTableSupported in interface TableCreatablepublic boolean isInsertSupported()
RowInsertable
isInsertSupported in interface RowInsertablepublic boolean isUpdateSupported()
RowUpdateable
isUpdateSupported in interface RowUpdateable
public RowUpdationBuilder update(String schemaName,
String tableName)
throws IllegalArgumentException,
IllegalStateException,
UnsupportedOperationException
RowUpdateable
update in interface RowUpdateableIllegalArgumentException
IllegalStateException
UnsupportedOperationException
public RowUpdationBuilder update(Table table)
throws IllegalArgumentException,
IllegalStateException,
UnsupportedOperationException
RowUpdateable
update in interface RowUpdateableIllegalArgumentException
IllegalStateException
UnsupportedOperationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||