|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
DatabaseSession represents a connection to a database. One of these objects is needed for a thread that needs to talk to a database.
Method Summary | |
void |
commitTransaction()
Commit the current transaction. |
void |
disconnect()
Disconnect the session from the database |
Identified |
getItem(GenericFactoryBase fac,
int oid)
retrieves object from transacted cache |
boolean |
inTransaction()
Returns true if we are in a transaction. |
boolean |
isLockingMode()
Returns true if we are locking objects to perform an update.. |
void |
putItem(GenericFactoryBase fac,
Identified item)
Stores object in transacted cache |
void |
rollbackTransaction()
Rollsback the current transaction. |
void |
startTransaction()
Starts a transaction. |
Method Detail |
public void startTransaction() throws java.sql.SQLException
java.sql.SQLException
public void commitTransaction() throws java.sql.SQLException
java.sql.SQLException
public void rollbackTransaction() throws java.sql.SQLException
java.sql.SQLException
public boolean inTransaction()
public boolean isLockingMode()
public void putItem(GenericFactoryBase fac, Identified item)
public Identified getItem(GenericFactoryBase fac, int oid)
public void disconnect() throws java.sql.SQLException
java.sql.SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |