|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgroovy.lang.GroovyObjectSupport
org.codehaus.groovy.grails.orm.hibernate.SessionFactoryProxy
public class SessionFactoryProxy
Proxies the SessionFactory allowing for the underlying SessionFactory instance to be replaced at runtime. Used to enable rebuilding of the SessionFactory at development time
NOTE: This class is not for production use and is development time only!
| Constructor Summary | |
|---|---|
SessionFactoryProxy()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
close()
|
boolean |
containsFetchProfileDefinition(java.lang.String name)
|
protected org.hibernate.context.CurrentSessionContext |
createCurrentSessionContext()
|
void |
evict(java.lang.Class persistentClass)
Deprecated. |
void |
evict(java.lang.Class persistentClass,
java.io.Serializable id)
Deprecated. |
void |
evictCollection(java.lang.String roleName)
Deprecated. |
void |
evictCollection(java.lang.String roleName,
java.io.Serializable id)
Deprecated. |
void |
evictEntity(java.lang.String entityName)
Deprecated. |
void |
evictEntity(java.lang.String entityName,
java.io.Serializable id)
Deprecated. |
void |
evictQueries()
Deprecated. |
void |
evictQueries(java.lang.String cacheRegion)
Deprecated. |
java.util.Map<java.lang.String,org.hibernate.metadata.ClassMetadata> |
getAllClassMetadata()
|
java.util.Map |
getAllCollectionMetadata()
|
java.util.Map |
getAllSecondLevelCacheRegions()
|
org.hibernate.Cache |
getCache()
|
org.hibernate.metadata.ClassMetadata |
getClassMetadata(java.lang.Class entityClass)
|
org.hibernate.metadata.ClassMetadata |
getClassMetadata(java.lang.String entityName)
|
org.hibernate.metadata.CollectionMetadata |
getCollectionMetadata(java.lang.String roleName)
|
org.hibernate.persister.collection.CollectionPersister |
getCollectionPersister(java.lang.String role)
|
java.util.Set<java.lang.String> |
getCollectionRolesByEntityParticipant(java.lang.String entityName)
|
org.hibernate.connection.ConnectionProvider |
getConnectionProvider()
|
org.hibernate.classic.Session |
getCurrentSession()
|
org.hibernate.SessionFactory |
getCurrentSessionFactory()
|
org.hibernate.engine.SessionFactoryImplementor |
getCurrentSessionFactoryImplementor()
|
java.util.Set |
getDefinedFilterNames()
|
org.hibernate.dialect.Dialect |
getDialect()
|
org.hibernate.proxy.EntityNotFoundDelegate |
getEntityNotFoundDelegate()
|
org.hibernate.persister.entity.EntityPersister |
getEntityPersister(java.lang.String entityName)
|
org.hibernate.SessionFactoryObserver |
getFactoryObserver()
|
org.hibernate.engine.profile.FetchProfile |
getFetchProfile(java.lang.String name)
|
org.hibernate.engine.FilterDefinition |
getFilterDefinition(java.lang.String filterName)
|
org.hibernate.id.IdentifierGenerator |
getIdentifierGenerator(java.lang.String rootEntityName)
|
org.hibernate.id.factory.IdentifierGeneratorFactory |
getIdentifierGeneratorFactory()
Deprecated. |
java.lang.String |
getIdentifierPropertyName(java.lang.String className)
|
org.hibernate.type.Type |
getIdentifierType(java.lang.String className)
|
java.lang.String[] |
getImplementors(java.lang.String className)
|
java.lang.String |
getImportedClassName(java.lang.String name)
|
org.hibernate.Interceptor |
getInterceptor()
|
org.hibernate.engine.NamedQueryDefinition |
getNamedQuery(java.lang.String queryName)
|
org.hibernate.engine.NamedSQLQueryDefinition |
getNamedSQLQuery(java.lang.String queryName)
|
java.util.Properties |
getProperties()
|
java.lang.Object |
getProperty(java.lang.String property)
|
org.hibernate.cache.QueryCache |
getQueryCache()
|
org.hibernate.cache.QueryCache |
getQueryCache(java.lang.String regionName)
|
org.hibernate.engine.query.QueryPlanCache |
getQueryPlanCache()
|
javax.naming.Reference |
getReference()
|
org.hibernate.type.Type |
getReferencedPropertyType(java.lang.String className,
java.lang.String propertyName)
|
org.hibernate.engine.ResultSetMappingDefinition |
getResultSetMapping(java.lang.String name)
|
java.lang.String[] |
getReturnAliases(java.lang.String queryString)
|
org.hibernate.type.Type[] |
getReturnTypes(java.lang.String queryString)
|
org.hibernate.cache.Region |
getSecondLevelCacheRegion(java.lang.String regionName)
|
org.hibernate.cfg.Settings |
getSettings()
|
org.hibernate.exception.SQLExceptionConverter |
getSQLExceptionConverter()
|
org.hibernate.dialect.function.SQLFunctionRegistry |
getSqlFunctionRegistry()
|
org.hibernate.stat.Statistics |
getStatistics()
|
org.hibernate.stat.StatisticsImplementor |
getStatisticsImplementor()
|
javax.transaction.TransactionManager |
getTransactionManager()
|
org.hibernate.TypeHelper |
getTypeHelper()
|
org.hibernate.type.TypeResolver |
getTypeResolver()
|
org.hibernate.cache.UpdateTimestampsCache |
getUpdateTimestampsCache()
|
java.lang.Object |
getWrappedObject()
|
boolean |
isClosed()
|
org.hibernate.classic.Session |
openSession()
|
org.hibernate.classic.Session |
openSession(java.sql.Connection connection)
|
org.hibernate.classic.Session |
openSession(java.sql.Connection connection,
boolean flushBeforeCompletionEnabled,
boolean autoCloseSessionEnabled,
org.hibernate.ConnectionReleaseMode connectionReleaseMode)
|
org.hibernate.classic.Session |
openSession(java.sql.Connection connection,
org.hibernate.Interceptor interceptor)
|
org.hibernate.classic.Session |
openSession(org.hibernate.Interceptor interceptor)
|
org.hibernate.StatelessSession |
openStatelessSession()
|
org.hibernate.StatelessSession |
openStatelessSession(java.sql.Connection connection)
|
org.hibernate.classic.Session |
openTemporarySession()
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setCurrentSessionContextClass(java.lang.Class currentSessionContextClass)
The class to use for the current session context |
void |
setTargetBean(java.lang.String targetBean)
The target bean to proxy |
| Methods inherited from class groovy.lang.GroovyObjectSupport |
|---|
getMetaClass, invokeMethod, setMetaClass, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionFactoryProxy()
| Method Detail |
|---|
public void setTargetBean(java.lang.String targetBean)
targetBean - The name of the target beanpublic java.lang.Object getProperty(java.lang.String property)
getProperty in interface groovy.lang.GroovyObjectgetProperty in class groovy.lang.GroovyObjectSupportpublic void setCurrentSessionContextClass(java.lang.Class currentSessionContextClass)
currentSessionContextClass - The current session context classpublic org.hibernate.SessionFactory getCurrentSessionFactory()
public org.hibernate.engine.SessionFactoryImplementor getCurrentSessionFactoryImplementor()
public org.hibernate.classic.Session openSession()
throws org.hibernate.HibernateException
openSession in interface org.hibernate.SessionFactoryorg.hibernate.HibernateException
public org.hibernate.classic.Session openSession(org.hibernate.Interceptor interceptor)
throws org.hibernate.HibernateException
openSession in interface org.hibernate.SessionFactoryorg.hibernate.HibernateExceptionpublic org.hibernate.classic.Session openSession(java.sql.Connection connection)
openSession in interface org.hibernate.SessionFactory
public org.hibernate.classic.Session openSession(java.sql.Connection connection,
org.hibernate.Interceptor interceptor)
openSession in interface org.hibernate.SessionFactory
public org.hibernate.classic.Session getCurrentSession()
throws org.hibernate.HibernateException
getCurrentSession in interface org.hibernate.SessionFactoryorg.hibernate.HibernateExceptionpublic org.hibernate.StatelessSession openStatelessSession()
openStatelessSession in interface org.hibernate.SessionFactorypublic org.hibernate.StatelessSession openStatelessSession(java.sql.Connection connection)
openStatelessSession in interface org.hibernate.SessionFactorypublic org.hibernate.metadata.ClassMetadata getClassMetadata(java.lang.Class entityClass)
getClassMetadata in interface org.hibernate.SessionFactorypublic org.hibernate.metadata.ClassMetadata getClassMetadata(java.lang.String entityName)
getClassMetadata in interface org.hibernate.SessionFactorypublic org.hibernate.metadata.CollectionMetadata getCollectionMetadata(java.lang.String roleName)
getCollectionMetadata in interface org.hibernate.SessionFactorypublic java.util.Map<java.lang.String,org.hibernate.metadata.ClassMetadata> getAllClassMetadata()
getAllClassMetadata in interface org.hibernate.SessionFactorypublic java.util.Map getAllCollectionMetadata()
getAllCollectionMetadata in interface org.hibernate.SessionFactorypublic org.hibernate.stat.Statistics getStatistics()
getStatistics in interface org.hibernate.SessionFactory
public void close()
throws org.hibernate.HibernateException
close in interface org.hibernate.SessionFactoryorg.hibernate.HibernateExceptionpublic boolean isClosed()
isClosed in interface org.hibernate.SessionFactorypublic org.hibernate.Cache getCache()
getCache in interface org.hibernate.SessionFactory
@Deprecated
public void evict(java.lang.Class persistentClass)
throws org.hibernate.HibernateException
evict in interface org.hibernate.SessionFactoryorg.hibernate.HibernateException
@Deprecated
public void evict(java.lang.Class persistentClass,
java.io.Serializable id)
throws org.hibernate.HibernateException
evict in interface org.hibernate.SessionFactoryorg.hibernate.HibernateException
@Deprecated
public void evictEntity(java.lang.String entityName)
throws org.hibernate.HibernateException
evictEntity in interface org.hibernate.SessionFactoryorg.hibernate.HibernateException
@Deprecated
public void evictEntity(java.lang.String entityName,
java.io.Serializable id)
throws org.hibernate.HibernateException
evictEntity in interface org.hibernate.SessionFactoryorg.hibernate.HibernateException
@Deprecated
public void evictCollection(java.lang.String roleName)
throws org.hibernate.HibernateException
evictCollection in interface org.hibernate.SessionFactoryorg.hibernate.HibernateException
@Deprecated
public void evictCollection(java.lang.String roleName,
java.io.Serializable id)
throws org.hibernate.HibernateException
evictCollection in interface org.hibernate.SessionFactoryorg.hibernate.HibernateException
@Deprecated
public void evictQueries(java.lang.String cacheRegion)
throws org.hibernate.HibernateException
evictQueries in interface org.hibernate.SessionFactoryorg.hibernate.HibernateException
@Deprecated
public void evictQueries()
throws org.hibernate.HibernateException
evictQueries in interface org.hibernate.SessionFactoryorg.hibernate.HibernateExceptionpublic java.util.Set getDefinedFilterNames()
getDefinedFilterNames in interface org.hibernate.SessionFactory
public org.hibernate.engine.FilterDefinition getFilterDefinition(java.lang.String filterName)
throws org.hibernate.HibernateException
getFilterDefinition in interface org.hibernate.SessionFactoryorg.hibernate.HibernateExceptionpublic boolean containsFetchProfileDefinition(java.lang.String name)
containsFetchProfileDefinition in interface org.hibernate.SessionFactorypublic org.hibernate.TypeHelper getTypeHelper()
getTypeHelper in interface org.hibernate.SessionFactory
public javax.naming.Reference getReference()
throws javax.naming.NamingException
getReference in interface javax.naming.Referenceablejavax.naming.NamingException
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic org.hibernate.type.TypeResolver getTypeResolver()
getTypeResolver in interface org.hibernate.engine.SessionFactoryImplementorpublic java.util.Properties getProperties()
getProperties in interface org.hibernate.engine.SessionFactoryImplementor
public org.hibernate.persister.entity.EntityPersister getEntityPersister(java.lang.String entityName)
throws org.hibernate.MappingException
getEntityPersister in interface org.hibernate.engine.SessionFactoryImplementororg.hibernate.MappingException
public org.hibernate.persister.collection.CollectionPersister getCollectionPersister(java.lang.String role)
throws org.hibernate.MappingException
getCollectionPersister in interface org.hibernate.engine.SessionFactoryImplementororg.hibernate.MappingExceptionpublic org.hibernate.dialect.Dialect getDialect()
getDialect in interface org.hibernate.engine.SessionFactoryImplementorpublic org.hibernate.Interceptor getInterceptor()
getInterceptor in interface org.hibernate.engine.SessionFactoryImplementorpublic org.hibernate.engine.query.QueryPlanCache getQueryPlanCache()
getQueryPlanCache in interface org.hibernate.engine.SessionFactoryImplementor
public org.hibernate.type.Type[] getReturnTypes(java.lang.String queryString)
throws org.hibernate.HibernateException
getReturnTypes in interface org.hibernate.engine.SessionFactoryImplementororg.hibernate.HibernateException
public java.lang.String[] getReturnAliases(java.lang.String queryString)
throws org.hibernate.HibernateException
getReturnAliases in interface org.hibernate.engine.SessionFactoryImplementororg.hibernate.HibernateExceptionpublic org.hibernate.connection.ConnectionProvider getConnectionProvider()
getConnectionProvider in interface org.hibernate.engine.SessionFactoryImplementor
public java.lang.String[] getImplementors(java.lang.String className)
throws org.hibernate.MappingException
getImplementors in interface org.hibernate.engine.SessionFactoryImplementororg.hibernate.MappingExceptionpublic java.lang.String getImportedClassName(java.lang.String name)
getImportedClassName in interface org.hibernate.engine.SessionFactoryImplementorpublic javax.transaction.TransactionManager getTransactionManager()
getTransactionManager in interface org.hibernate.engine.SessionFactoryImplementorpublic org.hibernate.cache.QueryCache getQueryCache()
getQueryCache in interface org.hibernate.engine.SessionFactoryImplementor
public org.hibernate.cache.QueryCache getQueryCache(java.lang.String regionName)
throws org.hibernate.HibernateException
getQueryCache in interface org.hibernate.engine.SessionFactoryImplementororg.hibernate.HibernateExceptionpublic org.hibernate.cache.UpdateTimestampsCache getUpdateTimestampsCache()
getUpdateTimestampsCache in interface org.hibernate.engine.SessionFactoryImplementorpublic org.hibernate.stat.StatisticsImplementor getStatisticsImplementor()
getStatisticsImplementor in interface org.hibernate.engine.SessionFactoryImplementorpublic org.hibernate.engine.NamedQueryDefinition getNamedQuery(java.lang.String queryName)
getNamedQuery in interface org.hibernate.engine.SessionFactoryImplementorpublic org.hibernate.engine.NamedSQLQueryDefinition getNamedSQLQuery(java.lang.String queryName)
getNamedSQLQuery in interface org.hibernate.engine.SessionFactoryImplementorpublic org.hibernate.engine.ResultSetMappingDefinition getResultSetMapping(java.lang.String name)
getResultSetMapping in interface org.hibernate.engine.SessionFactoryImplementorpublic org.hibernate.id.IdentifierGenerator getIdentifierGenerator(java.lang.String rootEntityName)
getIdentifierGenerator in interface org.hibernate.engine.SessionFactoryImplementorpublic org.hibernate.cache.Region getSecondLevelCacheRegion(java.lang.String regionName)
getSecondLevelCacheRegion in interface org.hibernate.engine.SessionFactoryImplementorpublic java.util.Map getAllSecondLevelCacheRegions()
getAllSecondLevelCacheRegions in interface org.hibernate.engine.SessionFactoryImplementorpublic org.hibernate.exception.SQLExceptionConverter getSQLExceptionConverter()
getSQLExceptionConverter in interface org.hibernate.engine.SessionFactoryImplementorpublic org.hibernate.cfg.Settings getSettings()
getSettings in interface org.hibernate.engine.SessionFactoryImplementor
public org.hibernate.classic.Session openTemporarySession()
throws org.hibernate.HibernateException
openTemporarySession in interface org.hibernate.engine.SessionFactoryImplementororg.hibernate.HibernateException
public org.hibernate.classic.Session openSession(java.sql.Connection connection,
boolean flushBeforeCompletionEnabled,
boolean autoCloseSessionEnabled,
org.hibernate.ConnectionReleaseMode connectionReleaseMode)
throws org.hibernate.HibernateException
openSession in interface org.hibernate.engine.SessionFactoryImplementororg.hibernate.HibernateExceptionpublic java.util.Set<java.lang.String> getCollectionRolesByEntityParticipant(java.lang.String entityName)
getCollectionRolesByEntityParticipant in interface org.hibernate.engine.SessionFactoryImplementorpublic org.hibernate.proxy.EntityNotFoundDelegate getEntityNotFoundDelegate()
getEntityNotFoundDelegate in interface org.hibernate.engine.SessionFactoryImplementorpublic org.hibernate.dialect.function.SQLFunctionRegistry getSqlFunctionRegistry()
getSqlFunctionRegistry in interface org.hibernate.engine.SessionFactoryImplementorpublic org.hibernate.engine.profile.FetchProfile getFetchProfile(java.lang.String name)
getFetchProfile in interface org.hibernate.engine.SessionFactoryImplementorpublic org.hibernate.SessionFactoryObserver getFactoryObserver()
getFactoryObserver in interface org.hibernate.engine.SessionFactoryImplementor@Deprecated public org.hibernate.id.factory.IdentifierGeneratorFactory getIdentifierGeneratorFactory()
getIdentifierGeneratorFactory in interface org.hibernate.engine.Mapping
public org.hibernate.type.Type getIdentifierType(java.lang.String className)
throws org.hibernate.MappingException
getIdentifierType in interface org.hibernate.engine.Mappingorg.hibernate.MappingException
public java.lang.String getIdentifierPropertyName(java.lang.String className)
throws org.hibernate.MappingException
getIdentifierPropertyName in interface org.hibernate.engine.Mappingorg.hibernate.MappingException
public org.hibernate.type.Type getReferencedPropertyType(java.lang.String className,
java.lang.String propertyName)
throws org.hibernate.MappingException
getReferencedPropertyType in interface org.hibernate.engine.Mappingorg.hibernate.MappingExceptionpublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanprotected org.hibernate.context.CurrentSessionContext createCurrentSessionContext()
public java.lang.Object getWrappedObject()
getWrappedObject in interface org.springframework.core.InfrastructureProxy
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||