org.synchronoss.cpo.jdbc
Class JdbcCpoTrxAdapter

Package class diagram package JdbcCpoTrxAdapter
java.lang.Object
  extended by org.synchronoss.cpo.jdbc.JdbcCpoAdapter
      extended by org.synchronoss.cpo.jdbc.JdbcCpoTrxAdapter
All Implemented Interfaces:
java.io.Serializable, CpoAdapter, CpoTrxAdapter

public class JdbcCpoTrxAdapter
extends JdbcCpoAdapter
implements CpoTrxAdapter

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.synchronoss.cpo.CpoAdapter
CREATE, DELETE, EXECUTE, EXIST, INSERT, LIST, PERSIST, RETRIEVE, UPDATE
 
Constructor Summary
protected JdbcCpoTrxAdapter(javax.sql.DataSource metaSource, java.lang.String metaSourceName, java.sql.Connection c, boolean batchSupported, java.lang.String dbTablePrefix)
           
 
Method Summary
protected  void clearConnectionBusy(java.sql.Connection c)
           
 void close()
          Closes the current transaction behind the CpoTrxAdapter.
 void commit()
          Commits the current transaction behind the CpoTrxAdapter
protected  void finalize()
          DOCUMENT ME!
protected  java.sql.Connection getStaticConnection()
           
 boolean isClosed()
          Returns true if the TrxAdapter has been closed, false if it is still active
protected  boolean isConnectionBusy(java.sql.Connection c)
           
protected  boolean isStaticConnection(java.sql.Connection c)
           
 void rollback()
          Rollback the current transaction behind the CpoTrxAdapter
protected  void setConnectionBusy(java.sql.Connection c)
           
protected  void setStaticConnection(java.sql.Connection c)
           
 
Methods inherited from class org.synchronoss.cpo.jdbc.JdbcCpoAdapter
clearMetaClass, clearMetaClass, clearMetaClass, clearMetaClass, closeConnection, commitConnection, deleteObject, deleteObject, deleteObjects, deleteObjects, executeObject, executeObject, executeObject, existsObject, existsObject, existsObject, existsObject, getContext, getCpoTrxAdapter, getDataSourceMap, getDbTablePrefix, getGroupType, getMetaClass, getMetaClassMap, getMetaConnection, getMetaDataSource, getMetaDataSourceName, getReadConnection, getReadDataSource, getWriteConnection, getWriteDataSource, insertObject, insertObject, insertObjects, insertObjects, newOrderBy, newOrderBy, newWhere, newWhere, newWhere, persistObject, persistObject, persistObjects, persistObjects, processBatchUpdateGroup, processExecuteGroup, processExecuteGroup, processSelectGroup, processSelectGroup, processSelectGroup, processSelectGroup, processSelectGroup, processUpdateGroup, processUpdateGroup, processUpdateGroup, processUpdateGroup, retrieveObject, retrieveObject, retrieveObject, retrieveObject, retrieveObjects, retrieveObjects, retrieveObjects, rollbackConnection, setContext, setDataSourceMap, setDbTablePrefix, setMetaDataSource, setMetaDataSourceName, setReadDataSource, setWriteDataSource, transactObjects, transactObjects, updateObject, updateObject, updateObjects, updateObjects
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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
 

Constructor Detail

JdbcCpoTrxAdapter

protected JdbcCpoTrxAdapter(javax.sql.DataSource metaSource,
                            java.lang.String metaSourceName,
                            java.sql.Connection c,
                            boolean batchSupported,
                            java.lang.String dbTablePrefix)
                     throws CpoException
Throws:
CpoException
Method Detail

commit

public void commit()
            throws CpoException
Description copied from interface: CpoTrxAdapter
Commits the current transaction behind the CpoTrxAdapter

Specified by:
commit in interface CpoTrxAdapter
Throws:
CpoException

rollback

public void rollback()
              throws CpoException
Description copied from interface: CpoTrxAdapter
Rollback the current transaction behind the CpoTrxAdapter

Specified by:
rollback in interface CpoTrxAdapter
Throws:
CpoException

isClosed

public boolean isClosed()
                 throws CpoException
Description copied from interface: CpoTrxAdapter
Returns true if the TrxAdapter has been closed, false if it is still active

Specified by:
isClosed in interface CpoTrxAdapter
Throws:
CpoException

close

public void close()
           throws CpoException
Description copied from interface: CpoTrxAdapter
Closes the current transaction behind the CpoTrxAdapter. All subsequent calls to the CpoTrxAdapter will throw an exception.

Specified by:
close in interface CpoTrxAdapter
Throws:
CpoException

finalize

protected void finalize()
DOCUMENT ME!

Overrides:
finalize in class java.lang.Object

getStaticConnection

protected java.sql.Connection getStaticConnection()
                                           throws CpoException
Overrides:
getStaticConnection in class JdbcCpoAdapter
Throws:
CpoException

isStaticConnection

protected boolean isStaticConnection(java.sql.Connection c)
Overrides:
isStaticConnection in class JdbcCpoAdapter

setStaticConnection

protected void setStaticConnection(java.sql.Connection c)
Overrides:
setStaticConnection in class JdbcCpoAdapter

isConnectionBusy

protected boolean isConnectionBusy(java.sql.Connection c)
Overrides:
isConnectionBusy in class JdbcCpoAdapter

setConnectionBusy

protected void setConnectionBusy(java.sql.Connection c)
Overrides:
setConnectionBusy in class JdbcCpoAdapter

clearConnectionBusy

protected void clearConnectionBusy(java.sql.Connection c)
Overrides:
clearConnectionBusy in class JdbcCpoAdapter


Copyright © 2009. All Rights Reserved.