|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.lang.GroovyObjectSupport org.codehaus.groovy.grails.orm.hibernate.SessionFactoryProxy
@SuppressWarnings("rawtypes") public class SessionFactoryProxy extends groovy.lang.GroovyObjectSupport
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!
Method Summary | |
---|---|
void
|
afterPropertiesSet()
|
void
|
close()
|
boolean
|
containsFetchProfileDefinition(java.lang.String name)
|
protected org.hibernate.context.CurrentSessionContext
|
createCurrentSessionContext()
|
void
|
evict(java.lang.Class persistentClass)
|
void
|
evict(java.lang.Class persistentClass, java.io.Serializable id)
|
void
|
evictCollection(java.lang.String roleName)
|
void
|
evictCollection(java.lang.String roleName, java.io.Serializable id)
|
void
|
evictEntity(java.lang.String entityName)
|
void
|
evictEntity(java.lang.String entityName, java.io.Serializable id)
|
void
|
evictQueries(java.lang.String cacheRegion)
|
void
|
evictQueries()
|
java.util.Map
|
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
|
getCollectionRolesByEntityParticipant(java.lang.String entityName)
|
org.hibernate.connection.ConnectionProvider
|
getConnectionProvider()
|
org.hibernate.Session
|
getCurrentSession()
|
org.hibernate.SessionFactory
|
getCurrentSessionFactory()
@return The current SessionFactory being proxied |
org.hibernate.engine.SessionFactoryImplementor
|
getCurrentSessionFactoryImplementor()
@return The current SessionFactoryImplementor being proxied |
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()
|
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)
|
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()
|
groovy.lang.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.exception.SQLExceptionConverter
|
getSQLExceptionConverter()
|
org.hibernate.cache.Region
|
getSecondLevelCacheRegion(java.lang.String regionName)
|
org.hibernate.cfg.Settings
|
getSettings()
|
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.Session
|
openSession()
|
org.hibernate.Session
|
openSession(Interceptor interceptor)
|
org.hibernate.Session
|
openSession(java.sql.Connection connection)
|
org.hibernate.Session
|
openSession(java.sql.Connection connection, Interceptor interceptor)
|
org.hibernate.Session
|
openSession(java.sql.Connection connection, boolean flushBeforeCompletionEnabled, boolean autoCloseSessionEnabled, org.hibernate.ConnectionReleaseMode connectionReleaseMode)
|
org.hibernate.StatelessSession
|
openStatelessSession()
|
org.hibernate.StatelessSession
|
openStatelessSession(java.sql.Connection connection)
|
org.hibernate.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 | |
---|---|
groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#wait(), groovy.lang.GroovyObjectSupport#wait(long), groovy.lang.GroovyObjectSupport#wait(long, int), groovy.lang.GroovyObjectSupport#equals(java.lang.Object), groovy.lang.GroovyObjectSupport#toString(), groovy.lang.GroovyObjectSupport#hashCode(), groovy.lang.GroovyObjectSupport#getClass(), groovy.lang.GroovyObjectSupport#notify(), groovy.lang.GroovyObjectSupport#notifyAll() |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Method Detail |
---|
public void afterPropertiesSet()
public void close()
public boolean containsFetchProfileDefinition(java.lang.String name)
@SuppressWarnings("unchecked") protected org.hibernate.context.CurrentSessionContext createCurrentSessionContext()
@Deprecated public void evict(java.lang.Class persistentClass)
@Deprecated public void evict(java.lang.Class persistentClass, java.io.Serializable id)
@Deprecated public void evictCollection(java.lang.String roleName)
@Deprecated public void evictCollection(java.lang.String roleName, java.io.Serializable id)
@Deprecated public void evictEntity(java.lang.String entityName)
@Deprecated public void evictEntity(java.lang.String entityName, java.io.Serializable id)
@Deprecated public void evictQueries(java.lang.String cacheRegion)
@Deprecated public void evictQueries()
public java.util.Map getAllClassMetadata()
public java.util.Map getAllCollectionMetadata()
public java.util.Map getAllSecondLevelCacheRegions()
public org.hibernate.Cache getCache()
public org.hibernate.metadata.ClassMetadata getClassMetadata(java.lang.Class entityClass)
public org.hibernate.metadata.ClassMetadata getClassMetadata(java.lang.String entityName)
public org.hibernate.metadata.CollectionMetadata getCollectionMetadata(java.lang.String roleName)
public org.hibernate.persister.collection.CollectionPersister getCollectionPersister(java.lang.String role)
public java.util.Set getCollectionRolesByEntityParticipant(java.lang.String entityName)
public org.hibernate.connection.ConnectionProvider getConnectionProvider()
public org.hibernate.Session getCurrentSession()
public org.hibernate.SessionFactory getCurrentSessionFactory()
public org.hibernate.engine.SessionFactoryImplementor getCurrentSessionFactoryImplementor()
public java.util.Set getDefinedFilterNames()
public org.hibernate.dialect.Dialect getDialect()
public org.hibernate.proxy.EntityNotFoundDelegate getEntityNotFoundDelegate()
public org.hibernate.persister.entity.EntityPersister getEntityPersister(java.lang.String entityName)
public org.hibernate.SessionFactoryObserver getFactoryObserver()
public org.hibernate.engine.profile.FetchProfile getFetchProfile(java.lang.String name)
public org.hibernate.engine.FilterDefinition getFilterDefinition(java.lang.String filterName)
public org.hibernate.id.IdentifierGenerator getIdentifierGenerator(java.lang.String rootEntityName)
@Deprecated public org.hibernate.id.factory.IdentifierGeneratorFactory getIdentifierGeneratorFactory()
public java.lang.String getIdentifierPropertyName(java.lang.String className)
public org.hibernate.type.Type getIdentifierType(java.lang.String className)
public java.lang.String[] getImplementors(java.lang.String className)
public java.lang.String getImportedClassName(java.lang.String name)
public Interceptor getInterceptor()
public org.hibernate.engine.NamedQueryDefinition getNamedQuery(java.lang.String queryName)
public org.hibernate.engine.NamedSQLQueryDefinition getNamedSQLQuery(java.lang.String queryName)
public java.util.Properties getProperties()
@Override public java.lang.Object getProperty(java.lang.String property)
public org.hibernate.cache.QueryCache getQueryCache()
public org.hibernate.cache.QueryCache getQueryCache(java.lang.String regionName)
public org.hibernate.engine.query.QueryPlanCache getQueryPlanCache()
public groovy.lang.Reference getReference()
public org.hibernate.type.Type getReferencedPropertyType(java.lang.String className, java.lang.String propertyName)
public org.hibernate.engine.ResultSetMappingDefinition getResultSetMapping(java.lang.String name)
public java.lang.String[] getReturnAliases(java.lang.String queryString)
public org.hibernate.type.Type[] getReturnTypes(java.lang.String queryString)
public org.hibernate.exception.SQLExceptionConverter getSQLExceptionConverter()
public org.hibernate.cache.Region getSecondLevelCacheRegion(java.lang.String regionName)
public org.hibernate.cfg.Settings getSettings()
public org.hibernate.dialect.function.SQLFunctionRegistry getSqlFunctionRegistry()
public org.hibernate.stat.Statistics getStatistics()
public org.hibernate.stat.StatisticsImplementor getStatisticsImplementor()
public javax.transaction.TransactionManager getTransactionManager()
public org.hibernate.TypeHelper getTypeHelper()
public org.hibernate.type.TypeResolver getTypeResolver()
public org.hibernate.cache.UpdateTimestampsCache getUpdateTimestampsCache()
public java.lang.Object getWrappedObject()
public boolean isClosed()
public org.hibernate.Session openSession()
public org.hibernate.Session openSession(Interceptor interceptor)
public org.hibernate.Session openSession(java.sql.Connection connection)
public org.hibernate.Session openSession(java.sql.Connection connection, Interceptor interceptor)
public org.hibernate.Session openSession(java.sql.Connection connection, boolean flushBeforeCompletionEnabled, boolean autoCloseSessionEnabled, org.hibernate.ConnectionReleaseMode connectionReleaseMode)
public org.hibernate.StatelessSession openStatelessSession()
public org.hibernate.StatelessSession openStatelessSession(java.sql.Connection connection)
public org.hibernate.Session openTemporarySession()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
public void setCurrentSessionContextClass(java.lang.Class currentSessionContextClass)
currentSessionContextClass
- The current session context class
public void setTargetBean(java.lang.String targetBean)
targetBean
- The name of the target bean
Groovy Documentation