|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The aim of a ConnectionHolder is to provide a way to find a connection to the data support. For example a previous used connection can be encapsulted in a ConnectionHolder in order to reuse it.
Method Summary | |
---|---|
void |
begin()
Demarcates the begin of the transaction. |
void |
bindWorkingSet(WorkingSet ws)
|
void |
closeCHConnection()
|
void |
commitCH()
Committes the transaction |
java.lang.Object |
getCHConnectionForRead()
Retrieves a connection to access data on the support for a read action. |
java.lang.Object |
getCHConnectionForWrite()
Retrieves a connection to access data on the support for a write action. |
WorkingSet |
getWorkingSet()
|
void |
releaseCHConnection()
|
void |
rollbackCH()
|
Method Detail |
public java.lang.Object getCHConnectionForRead() throws PersistenceException
PersistenceException
- if it is not possible to find a connectionpublic java.lang.Object getCHConnectionForWrite() throws PersistenceException
PersistenceException
- if it is not possible to find a connectionpublic void begin() throws PersistenceException
PersistenceException
- if it is not possible to begin a transactionpublic void commitCH() throws PersistenceException
PersistenceException
public void rollbackCH() throws PersistenceException
PersistenceException
public void releaseCHConnection() throws PersistenceException
PersistenceException
public void closeCHConnection() throws PersistenceException
PersistenceException
public void bindWorkingSet(WorkingSet ws)
public WorkingSet getWorkingSet()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |