public interface DBBackend extends Shutdownable
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection()
Returns a native JDBC
Connection. |
int |
getRetriesOnError()
Gets the current number of retries.
|
void |
setRetriesOnError(int noOfRetries)
Sets the number of retries the backend shall perform in case of an error during execution.
|
ResultSet |
submitInternalQuery(String descriptor,
Object... parameters)
This operation shall be used to execute queries that related to the tables of the underlying cids system (cs_*).
|
int |
submitInternalUpdate(String descriptor,
Object... parameters)
This operation shall be used to execute updates that related to the tables of the underlying cids system (cs_*).
|
ResultSet |
submitQuery(int sqlID,
Object... parameters)
DOCUMENT ME!
This operation shall throw a SQLException if the Shutdownable.shutdown() has already been
called. |
ResultSet |
submitQuery(String descriptor,
Object... parameters)
DOCUMENT ME!
This operation shall throw a SQLException if the Shutdownable.shutdown() has already been
called. |
int |
submitUpdate(int sqlID,
Object... parameters)
DOCUMENT ME!
This operation shall throw a SQLException if the Shutdownable.shutdown() has already been
called. |
int |
submitUpdate(String descriptor,
Object... parameters)
DOCUMENT ME!
This operation shall throw a SQLException if the Shutdownable.shutdown() has already been
called. |
isDown, shutdownvoid setRetriesOnError(int noOfRetries)
0. The retry shall only take place if the underlying error indicates that
the retry could be senseful (e.g. connection drop, db restart ...).noOfRetries - the number of retries that shall be performed in case of an error during executiongetRetriesOnError()int getRetriesOnError()
0 or a negative int means that the operation will
be performed exactly once, 1 means that the operation will be executed up to two times,
2 up to three times and so on. The retry shall only take place if the underlying error indicates that
the retry could be senseful (e.g. connection drop, db restart ...).Connection getConnection() throws SQLException
Connection.ConnectionSQLException - if any error occurs while acquiring the ConnectionResultSet submitInternalQuery(String descriptor, Object... parameters) throws SQLException
SQLException.SQLException is thrown.SQLException if the Shutdownable.shutdown() has already been
called.descriptor - one of the descriptors defined in this interfaceparameters - the parameters the underlying query will takeResultSet of the executed querySQLException - int submitInternalUpdate(String descriptor, Object... parameters) throws SQLException
SQLException.SQLException is thrown.SQLException if the Shutdownable.shutdown() has already been
called.descriptor - one of the descriptors defined in this interfaceparameters - the parameters the underlying query will takeSQLException - ResultSet submitQuery(String descriptor, Object... parameters) throws SQLException
SQLException if the Shutdownable.shutdown() has already been
called.descriptor - DOCUMENT ME!parameters - DOCUMENT ME!SQLException - DOCUMENT ME!ResultSet submitQuery(int sqlID, Object... parameters) throws SQLException
SQLException if the Shutdownable.shutdown() has already been
called.sqlID - DOCUMENT ME!parameters - DOCUMENT ME!SQLException - DOCUMENT ME!int submitUpdate(String descriptor, Object... parameters) throws SQLException
SQLException if the Shutdownable.shutdown() has already been
called.descriptor - DOCUMENT ME!parameters - DOCUMENT ME!SQLException - DOCUMENT ME!int submitUpdate(int sqlID,
Object... parameters)
throws SQLException
SQLException if the Shutdownable.shutdown() has already been
called.sqlID - DOCUMENT ME!parameters - DOCUMENT ME!SQLException - DOCUMENT ME!Copyright © 2012–2026 cismet GmbH. All rights reserved.