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, wait
createTable
dropTable, isDropTableSupported
insertInto
deleteFrom, isDeleteSupported
public AbstractUpdateCallback(DataContext dataContext)
public TableCreationBuilder createTable(String schemaName, String tableName) throws IllegalArgumentException, IllegalStateException
TableCreatable
createTable
in interface TableCreatable
schemaName
- 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 TableDroppable
IllegalArgumentException
IllegalStateException
UnsupportedOperationException
public final TableDropBuilder dropTable(Schema schema, String tableName) throws IllegalArgumentException, IllegalStateException, UnsupportedOperationException
dropTable
in interface TableDroppable
IllegalArgumentException
IllegalStateException
UnsupportedOperationException
public final RowInsertionBuilder insertInto(String tableName) throws IllegalArgumentException, IllegalStateException
RowInsertable
insertInto
in interface RowInsertable
tableName
- 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
RowInsertable
insertInto
in interface RowInsertable
schemaName
- 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)
RowDeletable
deleteFrom
in interface RowDeletable
public final RowDeletionBuilder deleteFrom(String schemaName, String tableName) throws IllegalArgumentException, IllegalStateException, UnsupportedOperationException
RowDeletable
deleteFrom
in interface RowDeletable
IllegalArgumentException
IllegalStateException
UnsupportedOperationException
public final TableDropBuilder dropTable(String tableName)
dropTable
in interface TableDroppable
public final RowUpdationBuilder update(String tableName)
RowUpdateable
update
in interface RowUpdateable
public DataContext getDataContext()
UpdateCallback
getDataContext
in interface UpdateCallback
public boolean isCreateTableSupported()
TableCreatable
isCreateTableSupported
in interface TableCreatable
public boolean isInsertSupported()
RowInsertable
isInsertSupported
in interface RowInsertable
public boolean isUpdateSupported()
RowUpdateable
isUpdateSupported
in interface RowUpdateable
public final RowUpdationBuilder update(String schemaName, String tableName) throws IllegalArgumentException, IllegalStateException, UnsupportedOperationException
RowUpdateable
update
in interface RowUpdateable
IllegalArgumentException
IllegalStateException
UnsupportedOperationException
public RowUpdationBuilder update(Table table) throws IllegalArgumentException, IllegalStateException, UnsupportedOperationException
RowUpdateable
update
in interface RowUpdateable
IllegalArgumentException
IllegalStateException
UnsupportedOperationException
public UpdateSummary getUpdateSummary()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.