public class JdbcCpoTrxAdapter extends JdbcCpoAdapter implements CpoTrxAdapter
CpoBaseAdapter.RetrieverThread<T,C>CREATE, CREATE_GROUP, DELETE, DELETE_GROUP, EXECUTE, EXECUTE_GROUP, EXIST, EXIST_GROUP, GROUP_IDS, INSERT, LIST, LIST_GROUP, PERSIST, PERSIST_GROUP, RETRIEVE, RETRIEVE_GROUP, UPDATE, UPDATE_GROUP| Modifier | Constructor and Description |
|---|---|
protected |
JdbcCpoTrxAdapter(JdbcCpoAdapter jdbcCpoAdapter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearConnectionBusy(Connection c) |
void |
close() |
protected void |
closeLocalConnection(Connection connection)
Closes a local connection.
|
void |
commit() |
protected void |
commitLocalConnection(Connection connection)
Commits a local connection.
|
protected void |
finalize()
DOCUMENT ME!
|
protected Connection |
getReadConnection()
DOCUMENT ME!
|
protected Connection |
getStaticConnection() |
protected Connection |
getWriteConnection()
DOCUMENT ME!
|
boolean |
isBusy()
Returns true if the TrxAdapter is processing a request, false if it is not
|
boolean |
isClosed() |
protected boolean |
isConnectionBusy(Connection c) |
void |
rollback() |
protected void |
rollbackLocalConnection(Connection connection)
Rollbacks a local connection.
|
protected void |
setConnectionBusy(Connection c) |
deleteObject, deleteObject, deleteObject, deleteObjects, deleteObjects, deleteObjects, executeObject, executeObject, executeObject, existsObject, existsObject, existsObject, existsObject, getContext, getCpoAttributes, getCpoMetaDescriptor, getGroupType, getInstance, getInstance, getReadDataSource, getWriteDataSource, insertObject, insertObject, insertObject, insertObjects, insertObjects, insertObjects, isBatchUpdatesSupported, newOrderBy, newOrderBy, newOrderBy, newOrderBy, newWhere, newWhere, newWhere, persistObject, persistObject, persistObjects, persistObjects, processBatchUpdateGroup, processExecuteGroup, processExecuteGroup, processSelectGroup, processSelectGroup, processSelectGroup, processSelectGroup, processSelectGroup, processUpdateGroup, processUpdateGroup, processUpdateGroup, processUpdateGroup, retrieveBean, retrieveBean, retrieveBean, retrieveBean, retrieveBean, retrieveBeans, retrieveBeans, retrieveBeans, retrieveBeans, retrieveBeans, retrieveBeans, retrieveBeans, retrieveBeans, retrieveBeans, setContext, updateObject, updateObject, updateObject, updateObjects, updateObjects, updateObjectsgetDataSourceName, setDataSourceName, setReadDataSource, setWriteDataSourceaddCpoAdapter, findCpoAdapterclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteObject, deleteObject, deleteObject, deleteObjects, deleteObjects, deleteObjects, executeObject, executeObject, executeObject, existsObject, existsObject, existsObject, getCpoAttributes, getCpoMetaDescriptor, getDataSourceName, insertObject, insertObject, insertObject, insertObjects, insertObjects, insertObjects, newOrderBy, newOrderBy, newOrderBy, newOrderBy, newWhere, newWhere, newWhere, persistObject, persistObject, persistObjects, persistObjects, retrieveBean, retrieveBean, retrieveBean, retrieveBean, retrieveBean, retrieveBeans, retrieveBeans, retrieveBeans, retrieveBeans, retrieveBeans, retrieveBeans, retrieveBeans, retrieveBeans, retrieveBeans, updateObject, updateObject, updateObject, updateObjects, updateObjects, updateObjectsprotected JdbcCpoTrxAdapter(JdbcCpoAdapter jdbcCpoAdapter) throws CpoException
CpoExceptionpublic void commit()
throws CpoException
commit in interface CpoTrxAdapterCpoExceptionpublic void rollback()
throws CpoException
rollback in interface CpoTrxAdapterCpoExceptionpublic boolean isClosed()
throws CpoException
isClosed in interface CpoTrxAdapterCpoExceptionpublic boolean isBusy()
throws CpoException
isBusy in interface CpoTrxAdapterCpoExceptionpublic void close()
throws CpoException
close in interface AutoCloseableclose in interface CpoTrxAdapterCpoExceptionprotected boolean isConnectionBusy(Connection c)
protected void setConnectionBusy(Connection c)
protected void clearConnectionBusy(Connection c)
protected Connection getStaticConnection() throws CpoException
CpoExceptionprotected Connection getReadConnection() throws CpoException
getReadConnection in class JdbcCpoAdapterCpoException - DOCUMENT ME!protected Connection getWriteConnection() throws CpoException
getWriteConnection in class JdbcCpoAdapterCpoException - DOCUMENT ME!protected void closeLocalConnection(Connection connection)
closeLocalConnection
does nothingcloseLocalConnection in class JdbcCpoAdapterconnection - The connection to be closedprotected void commitLocalConnection(Connection connection)
commitLocalConnection
does nothingcommitLocalConnection in class JdbcCpoAdapterconnection - The connection to be committedprotected void rollbackLocalConnection(Connection connection)
rollbackLocalConnection
does nothingrollbackLocalConnection in class JdbcCpoAdapterconnection - The connection to be rolled backCopyright © 2016. All Rights Reserved.