public class HibernateDBConnection extends Object implements DBConnection<org.hibernate.Session>
| Constructor and Description |
|---|
HibernateDBConnection() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache() |
void |
closeDBConnection() |
void |
commit() |
long |
getCacheSize() |
DatabaseConfigVO |
getDatabaseConfig() |
DataSource |
getDataSource() |
org.hibernate.Session |
getSession() |
protected org.hibernate.Transaction |
getTransaction() |
String |
getType() |
boolean |
isOptimizedForBatchProcessing() |
boolean |
isSessionAlive() |
boolean |
isTransActionAlive() |
<E extends ReloadableEntity> |
reloadEntity(E entity)
Reload a DSpace object from the database.
|
void |
rollback() |
void |
setOptimizedForBatchProcessing(boolean batchOptimized) |
void |
shutdown() |
public org.hibernate.Session getSession()
throws SQLException
getSession in interface DBConnection<org.hibernate.Session>SQLExceptionpublic boolean isTransActionAlive()
isTransActionAlive in interface DBConnection<org.hibernate.Session>protected org.hibernate.Transaction getTransaction()
public boolean isSessionAlive()
isSessionAlive in interface DBConnection<org.hibernate.Session>public void rollback()
throws SQLException
rollback in interface DBConnection<org.hibernate.Session>SQLExceptionpublic void closeDBConnection()
throws SQLException
closeDBConnection in interface DBConnection<org.hibernate.Session>SQLExceptionpublic void commit()
throws SQLException
commit in interface DBConnection<org.hibernate.Session>SQLExceptionpublic void shutdown()
shutdown in interface DBConnection<org.hibernate.Session>public String getType()
getType in interface DBConnection<org.hibernate.Session>public DataSource getDataSource()
getDataSource in interface DBConnection<org.hibernate.Session>public DatabaseConfigVO getDatabaseConfig() throws SQLException
getDatabaseConfig in interface DBConnection<org.hibernate.Session>SQLExceptionpublic void clearCache()
throws SQLException
clearCache in interface DBConnection<org.hibernate.Session>SQLExceptionpublic long getCacheSize()
throws SQLException
getCacheSize in interface DBConnection<org.hibernate.Session>SQLExceptionpublic <E extends ReloadableEntity> E reloadEntity(E entity) throws SQLException
DBConnectionreloadEntity in interface DBConnection<org.hibernate.Session>entity - The DSpace object to reloadSQLExceptionpublic void setOptimizedForBatchProcessing(boolean batchOptimized)
throws SQLException
setOptimizedForBatchProcessing in interface DBConnection<org.hibernate.Session>SQLExceptionpublic boolean isOptimizedForBatchProcessing()
isOptimizedForBatchProcessing in interface DBConnection<org.hibernate.Session>Copyright © 2016 DuraSpace. All rights reserved.