Package org.synchronoss.cpo.core
Interface CpoTrxAdapter
- All Superinterfaces:
AutoCloseable,CpoAdapter,Serializable
CpoTrxAdapter adds commit, rollback, and close functionality to the methods already in
CpoAdapter. This allows the user to control the transaction boundries of CPO.
- Author:
- david berry
-
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 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
Commits the current transaction behind the CpoTrxAdapter- Throws:
CpoException- An error occurred
-
rollback
Rollback the current transaction behind the CpoTrxAdapter- Throws:
CpoException- An error occurred
-
close
Closes the current transaction behind the CpoTrxAdapter. All subsequent calls to the CpoTrxAdapter will throw an exception.- Specified by:
closein interfaceAutoCloseable- Throws:
CpoException
-
isClosed
Returns true if the TrxAdapter has been closed, false if it is still active- Returns:
- true if it is closed
- Throws:
CpoException- An error occurred
-