|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.ephman.abra.database.JDBCDatabaseSession
JDBC based database connection.
| Constructor Summary | |
JDBCDatabaseSession(java.sql.Connection conn)
Create a databasesession from a JDBC connection |
|
| Method Summary | |
void |
commitTransaction()
Commint current transaction |
void |
disconnect()
Disconnect the session from the database |
void |
endLockingMode()
|
Identified |
getItem(GenericFactoryBase fact,
int oid)
try to get an object by oid from a cache for it's factory.. |
java.sql.Connection |
getJdbcConnection()
|
boolean |
inTransaction()
True if we are in a transaction |
boolean |
isLockingMode()
Returns true if we are locking objects to perform an update.. |
void |
putItem(GenericFactoryBase fact,
Identified item)
put an object by oid into a cache for it's factory.. |
void |
rollbackTransaction()
Rollback current transaction |
void |
setLockingMode()
|
void |
startTransaction()
start a new transaction. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JDBCDatabaseSession(java.sql.Connection conn)
throws java.sql.SQLException
| Method Detail |
public boolean inTransaction()
inTransaction in interface DatabaseSession
public void commitTransaction()
throws java.sql.SQLException
commitTransaction in interface DatabaseSessionjava.sql.SQLException
public void rollbackTransaction()
throws java.sql.SQLException
rollbackTransaction in interface DatabaseSessionjava.sql.SQLException
public void startTransaction()
throws java.sql.SQLException
startTransaction in interface DatabaseSessionjava.sql.SQLExceptionpublic void setLockingMode()
public void endLockingMode()
public boolean isLockingMode()
DatabaseSession
isLockingMode in interface DatabaseSession
public Identified getItem(GenericFactoryBase fact,
int oid)
getItem in interface DatabaseSession
public void putItem(GenericFactoryBase fact,
Identified item)
putItem in interface DatabaseSession
public void disconnect()
throws java.sql.SQLException
disconnect in interface DatabaseSessionjava.sql.SQLExceptionpublic java.sql.Connection getJdbcConnection()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||