org.synchronoss.cpo.jdbc
Class JdbcCpoTrxAdapter

java.lang.Object
  extended by org.synchronoss.cpo.cache.CpoAdapterCache
      extended by org.synchronoss.cpo.CpoBaseAdapter<DataSource>
          extended by org.synchronoss.cpo.jdbc.JdbcCpoAdapter
              extended by org.synchronoss.cpo.jdbc.JdbcCpoTrxAdapter
All Implemented Interfaces:
Serializable, CpoAdapter, CpoTrxAdapter

public class JdbcCpoTrxAdapter
extends JdbcCpoAdapter
implements CpoTrxAdapter

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.synchronoss.cpo.CpoBaseAdapter
CpoBaseAdapter.RetrieverThread<T,C>
 
Field Summary
 
Fields inherited from interface org.synchronoss.cpo.CpoAdapter
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
 
Constructor Summary
protected JdbcCpoTrxAdapter(JdbcCpoMetaDescriptor metaDescriptor, Connection c, boolean batchSupported, String dataSourceName)
           
 
Method Summary
protected  void clearConnectionBusy(Connection c)
           
 void close()
           
 void commit()
           
protected  void finalize()
          DOCUMENT ME!
protected  Connection getStaticConnection()
           
 boolean isClosed()
           
protected  boolean isConnectionBusy(Connection c)
           
protected  boolean isStaticConnection(Connection c)
           
 void rollback()
           
protected  void setConnectionBusy(Connection c)
           
protected  void setStaticConnection(Connection c)
           
 
Methods inherited from class org.synchronoss.cpo.jdbc.JdbcCpoAdapter
closeConnection, commitConnection, deleteObject, deleteObject, deleteObject, deleteObjects, deleteObjects, deleteObjects, executeObject, executeObject, executeObject, existsObject, existsObject, existsObject, existsObject, getContext, getCpoAttributes, getCpoMetaDescriptor, getCpoTrxAdapter, getGroupType, getInstance, getInstance, getReadConnection, getWriteConnection, insertObject, insertObject, insertObject, insertObjects, insertObjects, insertObjects, 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, rollbackConnection, setContext, updateObject, updateObject, updateObject, updateObjects, updateObjects, updateObjects
 
Methods inherited from class org.synchronoss.cpo.CpoBaseAdapter
getDataSourceName, getReadDataSource, getWriteDataSource, setDataSourceName, setReadDataSource, setWriteDataSource
 
Methods inherited from class org.synchronoss.cpo.cache.CpoAdapterCache
addCpoAdapter, findCpoAdapter
 
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
deleteObject, deleteObject, deleteObject, deleteObjects, deleteObjects, deleteObjects, executeObject, executeObject, executeObject, existsObject, existsObject, existsObject, getCpoAttributes, getCpoMetaDescriptor, getCpoTrxAdapter, 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, updateObjects
 

Constructor Detail

JdbcCpoTrxAdapter

protected JdbcCpoTrxAdapter(JdbcCpoMetaDescriptor metaDescriptor,
                            Connection c,
                            boolean batchSupported,
                            String dataSourceName)
                     throws CpoException
Throws:
CpoException
Method Detail

commit

public void commit()
            throws CpoException
Specified by:
commit in interface CpoTrxAdapter
Throws:
CpoException

rollback

public void rollback()
              throws CpoException
Specified by:
rollback in interface CpoTrxAdapter
Throws:
CpoException

isClosed

public boolean isClosed()
                 throws CpoException
Specified by:
isClosed in interface CpoTrxAdapter
Throws:
CpoException

close

public void close()
           throws CpoException
Specified by:
close in interface CpoTrxAdapter
Throws:
CpoException

finalize

protected void finalize()
DOCUMENT ME!

Overrides:
finalize in class Object

getStaticConnection

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

isStaticConnection

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

setStaticConnection

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

isConnectionBusy

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

setConnectionBusy

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

clearConnectionBusy

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


Copyright © 2014. All Rights Reserved.