|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.jmx.StatisticsService
org.icenigrid.gridsam.core.plugin.persistence.hibernate.HibernatePersistenceStore
public abstract class HibernatePersistenceStore
PersistenceStore implementation that uses Hibernate to persist java objects
Field Summary | |
---|---|
java.lang.ThreadLocal |
oHibernateSession
the hibernate session thread-local |
Constructor Summary | |
---|---|
HibernatePersistenceStore(org.hibernate.cfg.Configuration pHibernateConf)
create a new HibernatePersistenceStore |
|
HibernatePersistenceStore(java.util.List pProps)
create a HibernatePersistenceStore with a list of InlineProperties that is aggregated to become a single Properties. |
|
HibernatePersistenceStore(java.util.Properties pHibernateProps)
create a new HibernatePersistenceStore |
|
HibernatePersistenceStore(java.lang.String pName)
create a new HibernatePersistenceStore with a transient database |
Method Summary | |
---|---|
Transaction |
begin()
begin a persistence store transaction |
void |
close()
close the persistence store connection |
protected void |
closeSession()
close the current hibernate session |
void |
flush()
flush all updates to persistent storage |
protected org.hibernate.Session |
getSession()
retrieve a hibernate session for the current thread |
org.hibernate.jmx.StatisticsService |
getStatistics()
get statistics |
void |
registryDidShutdown()
the registry is closing down the store |
protected abstract void |
revise(org.hibernate.cfg.Configuration pHibernateConf)
revise the configuration before the hibernate session builder is created |
Methods inherited from class org.hibernate.jmx.StatisticsService |
---|
clear, getCloseStatementCount, getCollectionFetchCount, getCollectionLoadCount, getCollectionRecreateCount, getCollectionRemoveCount, getCollectionRoleNames, getCollectionStatistics, getCollectionUpdateCount, getConnectCount, getEntityDeleteCount, getEntityFetchCount, getEntityInsertCount, getEntityLoadCount, getEntityNames, getEntityStatistics, getEntityUpdateCount, getFlushCount, getOptimisticFailureCount, getPrepareStatementCount, getQueries, getQueryCacheHitCount, getQueryCacheMissCount, getQueryCachePutCount, getQueryExecutionCount, getQueryExecutionMaxTime, getQueryExecutionMaxTimeQueryString, getQueryStatistics, getSecondLevelCacheHitCount, getSecondLevelCacheMissCount, getSecondLevelCachePutCount, getSecondLevelCacheRegionNames, getSecondLevelCacheStatistics, getSessionCloseCount, getSessionOpenCount, getStartTime, getSuccessfulTransactionCount, getTransactionCount, isStatisticsEnabled, logSummary, setSessionFactory, setSessionFactoryJNDIName, setStatisticsEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.lang.ThreadLocal oHibernateSession
Constructor Detail |
---|
public HibernatePersistenceStore(java.lang.String pName) throws PersistenceException
pName
- the name to identify this transient storage in the lifetime of
this VM
PersistenceException
- if the hibernate mechanics cannot be createdpublic HibernatePersistenceStore(java.util.List pProps) throws PersistenceException
pProps
- List of InlineProperties
PersistenceException
public HibernatePersistenceStore(java.util.Properties pHibernateProps) throws PersistenceException
pHibernateProps
- the hibernate properties
PersistenceException
- if the hibernate mechanics cannot be createdpublic HibernatePersistenceStore(org.hibernate.cfg.Configuration pHibernateConf) throws PersistenceException
pHibernateConf
- the hibernate configuration
PersistenceException
- if the hibernate mechanics cannot be createdMethod Detail |
---|
protected abstract void revise(org.hibernate.cfg.Configuration pHibernateConf) throws PersistenceException
pHibernateConf
- the configuration
PersistenceException
- if the configuration is invalidprotected org.hibernate.Session getSession() throws org.hibernate.HibernateException
org.hibernate.HibernateException
- if the session cannot be createdprotected void closeSession() throws org.hibernate.HibernateException
org.hibernate.HibernateException
public Transaction begin() throws PersistenceException
begin
in interface PersistenceStore
PersistenceException
- if the transaction cannot be startedpublic org.hibernate.jmx.StatisticsService getStatistics()
public void flush() throws PersistenceException, java.util.ConcurrentModificationException
flush
in interface PersistenceStore
PersistenceException
- if data fails to be flushed
java.util.ConcurrentModificationException
public void close()
close
in interface PersistenceStore
public void registryDidShutdown()
registryDidShutdown
in interface org.apache.hivemind.events.RegistryShutdownListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |