public abstract class JDBCPoolManager extends JDBCEntityManager
Modifier and Type | Field and Description |
---|---|
protected JDBCConnectionPool |
connectionPool
Connection pool JDBC
|
ddbsEntityManager, jdbcConditionConverter, jdbcConnector, jdbcPreparedStatementManager
Constructor and Description |
---|
JDBCPoolManager(JDBCConnectionPool connectionPool) |
Modifier and Type | Method and Description |
---|---|
void |
commit(DDBSTransaction transaction)
Commit a transaction
|
boolean |
createEntity(JDBCPreparedStatementManager jdbcPreparedStatementManager,
JDBCConnector connection,
IEntity objectToCreate) |
boolean |
delete(JDBCPreparedStatementManager jdbcPreparedStatementManager,
JDBCConnector connection,
IEntity objectToDelete) |
DDBSTransaction |
executeTransaction(DDBSTransaction transaction)
Execute a list of actions
|
boolean |
isOpen()
Check if the connection is open
|
void |
open()
Open the data source connection
|
void |
rollback(DDBSTransaction transaction)
Rollback the transaction
|
add, close, conversionResultSet, createEntity, delete, getDeleteSQLString, getInsertSQLString, getUpdateSQLString, listAll, listAllWithQueryString, loadArray, read, readLastElement, setAutoCommit, update
protected JDBCConnectionPool connectionPool
public JDBCPoolManager(JDBCConnectionPool connectionPool)
public boolean isOpen() throws DDBSToolkitException
DistributableEntityManager
isOpen
in interface DistributableEntityManager
isOpen
in class JDBCEntityManager
DDBSToolkitException
- Error to check the state of the connectionpublic void open() throws DDBSToolkitException
DistributableEntityManager
open
in interface DistributableEntityManager
open
in class JDBCEntityManager
DDBSToolkitException
- : Error to open the connectionpublic DDBSTransaction executeTransaction(DDBSTransaction transaction) throws DDBSToolkitException
DistributableEntityManager
executeTransaction
in interface DistributableEntityManager
executeTransaction
in class JDBCEntityManager
transaction
- List of commandsDDBSToolkitException
- : Error to execute the transactionpublic boolean delete(JDBCPreparedStatementManager jdbcPreparedStatementManager, JDBCConnector connection, IEntity objectToDelete) throws DDBSToolkitException
DDBSToolkitException
public boolean createEntity(JDBCPreparedStatementManager jdbcPreparedStatementManager, JDBCConnector connection, IEntity objectToCreate) throws DDBSToolkitException
DDBSToolkitException
public void commit(DDBSTransaction transaction) throws DDBSToolkitException
DistributableEntityManager
commit
in interface DistributableEntityManager
commit
in class JDBCEntityManager
transaction
- TransactionDDBSToolkitException
- : Error to commit the transactionpublic void rollback(DDBSTransaction transaction) throws DDBSToolkitException
DistributableEntityManager
rollback
in interface DistributableEntityManager
rollback
in class JDBCEntityManager
transaction
- TransactionDDBSToolkitException
- : Error to rollback the connection