| Package | Description |
|---|---|
| de.aristaflow.adept2.base.dbaccess | |
| de.aristaflow.adept2.core.eventmanager.common | |
| de.aristaflow.adept2.core.transactionmanager |
| Modifier and Type | Method and Description |
|---|---|
ExtendedConnection |
JDBCDataSource.getConnection(boolean readOnly)
Gets a read-only or writable connection to this data source.
|
ExtendedConnection |
JDBCDataSource.getConnection(boolean readOnly,
int isolation)
Gets a read-only or writable connection to this data source having the
designated isolation level.
|
ExtendedConnection |
JDBCDataSource.getIteratorConnection()
Similar to
JDBCDataSource.getConnection(boolean) but the returned connection is intended
to be used in a potentially long-living RemoteIterator wrapping a result set. |
| Modifier and Type | Method and Description |
|---|---|
void |
DBAccessProvider.addColumn(ExtendedConnection con,
java.lang.String tableName,
java.lang.String columnName,
java.lang.String correspondingDbType)
Adds an additional column to the designated table of the designated type.
|
java.lang.String |
DBAccessProvider.createRecursionTable(ExtendedConnection connection,
java.lang.String[] selectAttributes,
java.lang.String[] rootAttributes,
java.lang.String tableName,
java.lang.String startCondition,
ParentToChildConnection[] parentToChildConnections)
Like
DBAccessProvider.createRecursionTable(ExtendedConnection, String[], String, String, ParentToChildConnection[], int)
but without a maximum depth. |
java.lang.String |
DBAccessProvider.createRecursionTable(ExtendedConnection connection,
java.lang.String[] selectAttributes,
java.lang.String tableName,
java.lang.String startCondition,
ParentToChildConnection[] parentToChildConnections,
int maxDepth)
Creates a (temporary) table or view containing tuples that match a
recursive/hierarchical SQL-query which is based on the specified
parameters.
|
void |
DBAccessProvider.createSequence(ExtendedConnection connection,
java.lang.String sequenceName,
long start,
long increment)
Creates a new sequence in the database.
|
void |
DBAccessProvider.dropAllRecursionTables(ExtendedConnection connection)
All tables that have been created via
createRecursionTable(String[],
String, String, String[], int) are dropped. |
void |
DBAccessProvider.dropColumn(ExtendedConnection con,
java.lang.String tableName,
java.lang.String columnName)
Drops the specified column from the table which corresponds to an
ALTER TABLE DROP COLUMN statement. |
void |
DBAccessProvider.dropRecursionTable(ExtendedConnection connection,
java.lang.String tableName)
The specified table that has been created via
createRecursionTable(String[], String, String, String[], int)
is dropped. |
void |
DBAccessProvider.dropSequence(ExtendedConnection connection,
java.lang.String sequenceName)
Drop the sequence with the given name.
|
java.lang.String |
DBAccessProvider.getAddForeignKey(ExtendedConnection con,
de.aristaflow.adept2.base.dbaccess.model.ForeignKey fk,
boolean quoteIdentifiers)
Gets an SQL string for
ALTER TABLE which adds the designated
foreign key. |
java.sql.Timestamp |
DBAccessProvider.getCurrentTime(ExtendedConnection con)
Gets the current time (as timestamp) from the underlying DBMS in UTC timezone.
|
void |
DBAccessProvider.lockTable(ExtendedConnection con,
java.lang.String tableName,
long timeout)
Locks the designated table exclusively until the end of the corresponding
transaction.
|
long |
DBAccessProvider.nextID(ExtendedConnection connection,
java.lang.String sequenceName)
Returns the next ID from the sequence with the given name.
|
void |
DBAccessProvider.renameColumn(ExtendedConnection con,
java.lang.String tableName,
java.lang.String oldColumnName,
java.lang.String newColumnName)
Renames the designated column from the table which corresponds to an
ALTER TABLE RENAME COLUMN statement. |
void |
DBAccessProvider.renameTable(ExtendedConnection con,
java.lang.String oldName,
java.lang.String newName)
Renames the designated table using the designated new name.
|
boolean |
DBAccessProvider.sequenceExists(ExtendedConnection connection,
java.lang.String sequenceName)
Returns whether a sequence with the given name exists.
|
void |
DBAccessProvider.setDefaultLockTimeout(ExtendedConnection con)
Sets the default value for the lock timeout.
|
long |
DBAccessProvider.setLockTimeout(ExtendedConnection con,
long timeout)
Sets the lock timeout for the current transaction or connection in the
designated connection to the designated timeout (in milliseconds) and
returns the current lock timeout.
|
void |
DBAccessProvider.terminate(ExtendedConnection con)
Terminates this access provider allowing it to do some clean-up if
required.
|
void |
DBAccessProvider.updateColumnsNullable(ExtendedConnection con,
java.lang.String tableName,
boolean nullable,
java.lang.String... columns)
Sets the designated columns of the designated table nullable (not
nullable).
|
void |
DBAccessProvider.updateColumnType(ExtendedConnection con,
java.lang.String tableName,
java.lang.String columnName,
java.lang.String correspondingDbType)
Sets the type of the designated column of the designated table to the
provided one.
|
java.lang.String |
DBAccessProvider.useLockTimeout(ExtendedConnection con,
java.lang.String query,
long timeout)
Appends the designated lock timeout in milliseconds to the designated query
(DDL and DML are not supported!).
|
| Modifier and Type | Method and Description |
|---|---|
ExtendedConnection |
DefaultEventManager.getConnection(java.lang.String dataSource,
boolean readOnly)
Retrieves a connection to the designated data source.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ManagedExtendedConnection
A managed extended connection extends an
ExtendedConnection by
the means to handle remote iterator. |
| Modifier and Type | Method and Description |
|---|---|
ExtendedConnection |
TxManager.commitTransaction(T o)
Commits the transaction started for the designated object.
|
ExtendedConnection |
TxManager.rollbackTransaction(T o)
Rolls back the transaction started for the designated object.
|
ExtendedConnection |
TxManager.startTransaction(T o,
boolean readOnly)
Starts a read-only or writable transaction for the designated object and
returns the corresponding connection.
|
ExtendedConnection |
TxManager.startTransaction(T o,
boolean readOnly,
boolean hierarchical)
Starts a read-only or writable transaction and possibly a hierarchical
transaction for the designated object and returns the corresponding
connection.
|
ExtendedConnection |
TxManager.startTransaction(T o,
boolean readOnly,
boolean hierarchical,
int isolation)
Starts a read-only or writable transaction and possibly a hierarchical
transaction for the designated object having the designated isolation
level.
|
ExtendedConnection |
TxManager.startTransaction(T o,
boolean readOnly,
int isolation)
Starts a read-only or writable transaction for the designated object having
the designated isolation level.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TxDbUpdateManager.performUpdates(T o,
ExtendedConnection con)
Performs all available updates from the current version the
latest version. |