public interface DatabaseLocal extends DatabaseEngine
Provides a set of functions to interact with the database.
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection()
Checks if the connection is available and returns it.
|
ResultIterator |
getPSIterator(String name)
Creates an iterator for the
PreparedStatement bound to the given name. |
ResultIterator |
iterator(Expression query)
Creates an iterator for the given SQL expression.
|
ResultIterator |
iterator(String query)
Creates an iterator for the given SQL sentence.
|
addBatch, addEntity, beginTransaction, checkConnection, checkConnection, clearParameters, close, commentCharacter, commit, containsEntity, createBatch, createPreparedStatement, createPreparedStatement, createPreparedStatement, createPreparedStatement, dropEntity, duplicate, escapeCharacter, executePS, executePSUpdate, executeUpdate, executeUpdate, flush, getDialect, getEntities, getMetadata, getProperties, getPSResultSet, getQueryMetadata, getQueryMetadata, isTransactionActive, persist, persist, preparedStatementExists, query, query, removeEntity, removePreparedStatement, rollback, setParameter, setParameters, translate, updateEntityConnection getConnection() throws RetryLimitExceededException, InterruptedException, RecoveryException
RetryLimitExceededException - If the retry limit is exceeded.InterruptedException - If the thread is interrupted during reconnection.RecoveryExceptionResultIterator iterator(String query) throws DatabaseEngineException
query - The query.DatabaseEngineException - If a database access error occurs.ResultIterator iterator(Expression query) throws DatabaseEngineException
query - The expression that represents the query.DatabaseEngineException - If a database access error occurs.ResultIterator getPSIterator(String name) throws DatabaseEngineException
PreparedStatement bound to the given name.name - The name of the prepared statement.DatabaseEngineExceptionCopyright © 2013. All Rights Reserved.