T - class typepublic interface DBConnection<T>
| Modifier and Type | Method and Description |
|---|---|
void |
closeDBConnection() |
void |
commit() |
long |
getCacheSize() |
DatabaseConfigVO |
getDatabaseConfig() |
DataSource |
getDataSource() |
T |
getSession() |
String |
getType() |
boolean |
isOptimizedForBatchProcessing() |
boolean |
isSessionAlive() |
boolean |
isTransActionAlive() |
<E extends ReloadableEntity> |
reloadEntity(E entity)
Reload a DSpace object from the database.
|
void |
rollback() |
void |
setConnectionMode(boolean batchOptimized,
boolean readOnlyOptimized) |
void |
shutdown() |
<E extends ReloadableEntity> |
uncacheEntity(E entity)
Remove a DSpace object from the cache when batch processing a large number of objects.
|
T getSession() throws SQLException
SQLExceptionboolean isTransActionAlive()
boolean isSessionAlive()
void rollback()
throws SQLException
SQLExceptionvoid closeDBConnection()
throws SQLException
SQLExceptionvoid commit()
throws SQLException
SQLExceptionvoid shutdown()
String getType()
DataSource getDataSource()
DatabaseConfigVO getDatabaseConfig() throws SQLException
SQLExceptionvoid setConnectionMode(boolean batchOptimized,
boolean readOnlyOptimized)
throws SQLException
SQLExceptionboolean isOptimizedForBatchProcessing()
long getCacheSize()
throws SQLException
SQLException<E extends ReloadableEntity> E reloadEntity(E entity) throws SQLException
entity - The DSpace object to reloadSQLException<E extends ReloadableEntity> void uncacheEntity(E entity) throws SQLException
entity - The DSpace object to reloadSQLExceptionCopyright © 2017 DuraSpace. All rights reserved.