| |
|
| java.lang.Object org.objectweb.speedo.mapper.rdb.JDBCConnectionHolder
JDBCConnectionHolder | public class JDBCConnectionHolder implements ConnectionHolder(Code) | | Is an holder of JDBC connection. It can works in managed or non-managed
transactional environnement.
author: S.Chassande-Barrioz |
Field Summary | |
protected Connection | connection The SQL connection held. | protected Logger | logger | protected PMapper | mapper | protected boolean | transactional Indicates the access through the connection must be done inside a
transaction. | protected boolean | txManagedExternaly Indicates if the transaction demarcations must tbe done by the
ConnectionHolder or there are already done by an environment
(an Application Server for example). | protected TransactionItf | workingSet |
connection | protected Connection connection(Code) | | The SQL connection held. Can be null if no connectioin has been used
|
logger | protected Logger logger(Code) | | |
mapper | protected PMapper mapper(Code) | | the mapper allocating JDBC connections
|
transactional | protected boolean transactional(Code) | | Indicates the access through the connection must be done inside a
transaction.
|
txManagedExternaly | protected boolean txManagedExternaly(Code) | | Indicates if the transaction demarcations must tbe done by the
ConnectionHolder or there are already done by an environment
(an Application Server for example).
|
workingSet | protected TransactionItf workingSet(Code) | | The workingSet attached to this connection holder
|
JDBCConnectionHolder | public JDBCConnectionHolder(PMapper mapper, Logger logger)(Code) | | |
begin | public void begin() throws PersistenceException(Code) | | If there is no connection already allocated, the transaction being will
be during the next connection request (getConnectionFor...(...)
throws: org.objectweb.perseus.persistence.api.PersistenceException - |
beginLocalTransaction | protected void beginLocalTransaction() throws PersistenceException(Code) | | Primitive method demarcating the begining of a local transaction on the
current connection.
|
bindWorkingSet | public void bindWorkingSet(WorkingSet ws)(Code) | | |
closeCHConnection | public void closeCHConnection() throws PersistenceException(Code) | | |
commitCH | public void commitCH() throws PersistenceException(Code) | | |
commitLocalTransaction | protected void commitLocalTransaction() throws PersistenceException(Code) | | primitive method demarcating the end of a local transaction by a commit
|
getCHConnectionForRead | public Object getCHConnectionForRead() throws PersistenceException(Code) | | |
getCHConnectionForWrite | public Object getCHConnectionForWrite() throws PersistenceException(Code) | | |
getWorkingSet | public WorkingSet getWorkingSet()(Code) | | |
releaseCHConnection | public void releaseCHConnection() throws PersistenceException(Code) | | |
rollbackCH | public void rollbackCH() throws PersistenceException(Code) | | |
rollbackLocalTransaction | protected void rollbackLocalTransaction() throws PersistenceException(Code) | | primitive method demarcating the end of a local transaction by a rollback
|
|
|
|