Package org.synchronoss.cpo.jdbc
Class JdbcCpoTrxAdapter
java.lang.Object
org.synchronoss.cpo.core.cache.CpoAdapterCache
org.synchronoss.cpo.core.CpoBaseAdapter<DataSource>
org.synchronoss.cpo.jdbc.JdbcCpoAdapter
org.synchronoss.cpo.jdbc.JdbcCpoTrxAdapter
- All Implemented Interfaces:
Serializable,AutoCloseable,CpoAdapter,CpoTrxAdapter
A transaction adapter that allows the user to control the commits and role backs
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the current transaction behind the CpoTrxAdapter.voidcommit()Commits the current transaction behind the CpoTrxAdapterbooleanisClosed()Returns true if the TrxAdapter has been closed, false if it is still activevoidrollback()Rollback the current transaction behind the CpoTrxAdapterMethods inherited from class org.synchronoss.cpo.jdbc.JdbcCpoAdapter
existsBean, getCpoAttributes, getCpoMetaDescriptor, getInstance, getInstance, newWhere, newWhere, newWhereMethods inherited from class org.synchronoss.cpo.core.CpoBaseAdapter
deleteBean, deleteBeans, executeBean, getBatchSize, getDataSourceName, getFetchSize, insertBean, insertBeans, newOrderBy, newOrderBy, newOrderBy, newOrderBy, retrieveBean, retrieveBean, retrieveBeans, setBatchSize, setFetchSize, updateBean, updateBeans, upsertBean, upsertBeansMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.synchronoss.cpo.core.CpoAdapter
deleteBean, deleteBean, deleteBean, deleteBeans, deleteBeans, deleteBeans, executeBean, executeBean, executeBean, existsBean, existsBean, existsBean, getBatchSize, getCpoAttributes, getCpoMetaDescriptor, getDataSourceName, getFetchSize, insertBean, insertBean, insertBean, insertBeans, insertBeans, insertBeans, newOrderBy, newOrderBy, newOrderBy, newOrderBy, newWhere, newWhere, newWhere, retrieveBean, retrieveBean, retrieveBean, retrieveBean, retrieveBeans, retrieveBeans, retrieveBeans, retrieveBeans, setBatchSize, setFetchSize, updateBean, updateBean, updateBean, updateBeans, updateBeans, updateBeans, upsertBean, upsertBean, upsertBean, upsertBeans, upsertBeans, upsertBeans
-
Method Details
-
commit
Description copied from interface:CpoTrxAdapterCommits the current transaction behind the CpoTrxAdapter- Specified by:
commitin interfaceCpoTrxAdapter- Throws:
CpoException- An error occurred
-
rollback
Description copied from interface:CpoTrxAdapterRollback the current transaction behind the CpoTrxAdapter- Specified by:
rollbackin interfaceCpoTrxAdapter- Throws:
CpoException- An error occurred
-
isClosed
Description copied from interface:CpoTrxAdapterReturns true if the TrxAdapter has been closed, false if it is still active- Specified by:
isClosedin interfaceCpoTrxAdapter- Returns:
- true if it is closed
- Throws:
CpoException- An error occurred
-
close
Description copied from interface:CpoTrxAdapterCloses the current transaction behind the CpoTrxAdapter. All subsequent calls to the CpoTrxAdapter will throw an exception.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCpoTrxAdapter- Throws:
CpoException
-