public abstract class AbstractUpdateCallback extends Object implements UpdateCallback
UpdateCallback interface. Implements
only the data store agnostic methods.| Constructor and Description |
|---|
AbstractUpdateCallback(DataContext dataContext) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
UpdateSummary |
getUpdateSummary() |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTabledropTable, isDropTableSupportedinsertIntodeleteFrom, isDeleteSupportedpublic AbstractUpdateCallback(DataContext dataContext)
public TableCreationBuilder createTable(String schemaName, String tableName) throws IllegalArgumentException, IllegalStateException
TableCreatablecreateTable in interface TableCreatableschemaName - the name of the schema to create the table intableName - the name of the new tableIllegalArgumentException - 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 final TableDropBuilder dropTable(String schemaName, String tableName) throws IllegalArgumentException, IllegalStateException, UnsupportedOperationException
dropTable in interface TableDroppableIllegalArgumentExceptionIllegalStateExceptionUnsupportedOperationExceptionpublic final TableDropBuilder dropTable(Schema schema, String tableName) throws IllegalArgumentException, IllegalStateException, UnsupportedOperationException
dropTable in interface TableDroppableIllegalArgumentExceptionIllegalStateExceptionUnsupportedOperationExceptionpublic final RowInsertionBuilder insertInto(String tableName) throws IllegalArgumentException, IllegalStateException
RowInsertableinsertInto in interface RowInsertabletableName - the name of the table to insert a row intoIllegalArgumentException - 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 final RowInsertionBuilder insertInto(String schemaName, String tableName) throws IllegalArgumentException, IllegalStateException, UnsupportedOperationException
RowInsertableinsertInto in interface RowInsertableschemaName - the name of the schematableName - the name of the table to insert a row intoIllegalArgumentException - 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)
RowDeletabledeleteFrom in interface RowDeletablepublic final RowDeletionBuilder deleteFrom(String schemaName, String tableName) throws IllegalArgumentException, IllegalStateException, UnsupportedOperationException
RowDeletabledeleteFrom in interface RowDeletableIllegalArgumentExceptionIllegalStateExceptionUnsupportedOperationExceptionpublic final TableDropBuilder dropTable(String tableName)
dropTable in interface TableDroppablepublic final RowUpdationBuilder update(String tableName)
RowUpdateableupdate in interface RowUpdateablepublic DataContext getDataContext()
UpdateCallbackgetDataContext in interface UpdateCallbackpublic boolean isCreateTableSupported()
TableCreatableisCreateTableSupported in interface TableCreatablepublic boolean isInsertSupported()
RowInsertableisInsertSupported in interface RowInsertablepublic boolean isUpdateSupported()
RowUpdateableisUpdateSupported in interface RowUpdateablepublic final RowUpdationBuilder update(String schemaName, String tableName) throws IllegalArgumentException, IllegalStateException, UnsupportedOperationException
RowUpdateableupdate in interface RowUpdateableIllegalArgumentExceptionIllegalStateExceptionUnsupportedOperationExceptionpublic RowUpdationBuilder update(Table table) throws IllegalArgumentException, IllegalStateException, UnsupportedOperationException
RowUpdateableupdate in interface RowUpdateableIllegalArgumentExceptionIllegalStateExceptionUnsupportedOperationExceptionpublic UpdateSummary getUpdateSummary()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.