org.synchronoss.cpo
Interface CpoTrxAdapter

Package class diagram package CpoTrxAdapter
All Superinterfaces:
CpoAdapter, java.io.Serializable
All Known Implementing Classes:
JdbcCpoTrxAdapter

public interface CpoTrxAdapter
extends CpoAdapter

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

Field Summary
 
Fields inherited from interface org.synchronoss.cpo.CpoAdapter
CREATE, DELETE, EXECUTE, EXIST, INSERT, LIST, PERSIST, RETRIEVE, UPDATE
 
Method Summary
 void close()
          Closes the current transaction behind the CpoTrxAdapter.
 void commit()
          Commits the current transaction behind the CpoTrxAdapter
 boolean isClosed()
          Returns true if the TrxAdapter has been closed, false if it is still active
 void rollback()
          Rollback the current transaction behind the CpoTrxAdapter
 
Methods inherited from interface org.synchronoss.cpo.CpoAdapter
clearMetaClass, clearMetaClass, clearMetaClass, clearMetaClass, deleteObject, deleteObject, deleteObjects, deleteObjects, executeObject, executeObject, executeObject, existsObject, existsObject, existsObject, getCpoTrxAdapter, insertObject, insertObject, insertObjects, insertObjects, newOrderBy, newOrderBy, newWhere, newWhere, newWhere, persistObject, persistObject, persistObjects, persistObjects, retrieveObject, retrieveObject, retrieveObject, retrieveObject, retrieveObjects, retrieveObjects, retrieveObjects, transactObjects, updateObject, updateObject, updateObjects, updateObjects
 

Method Detail

commit

void commit()
            throws CpoException
Commits the current transaction behind the CpoTrxAdapter

Throws:
CpoException

rollback

void rollback()
              throws CpoException
Rollback the current transaction behind the CpoTrxAdapter

Throws:
CpoException

close

void close()
           throws CpoException
Closes the current transaction behind the CpoTrxAdapter. All subsequent calls to the CpoTrxAdapter will throw an exception.

Throws:
CpoException

isClosed

boolean isClosed()
                 throws CpoException
Returns true if the TrxAdapter has been closed, false if it is still active

Throws:
CpoException


Copyright © 2009. All Rights Reserved.