@java.lang.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!
Type | Name and description |
---|---|
void |
addObserver(org.hibernate.SessionFactoryObserver observer) |
void |
afterPropertiesSet() |
void |
close() |
boolean |
containsFetchProfileDefinition(java.lang.String name) |
protected org.hibernate.context.spi.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<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.Map<java.lang.String, org.hibernate.persister.collection.CollectionPersister> |
getCollectionPersisters() |
java.util.Set<java.lang.String> |
getCollectionRolesByEntityParticipant(java.lang.String entityName) |
org.hibernate.engine.jdbc.connections.spi.ConnectionProvider |
getConnectionProvider() |
org.hibernate.Session |
getCurrentSession() |
org.hibernate.SessionFactory |
getCurrentSessionFactory() @return The current SessionFactory being proxied |
org.hibernate.engine.spi.SessionFactoryImplementor |
getCurrentSessionFactoryImplementor() @return The current SessionFactoryImplementor being proxied |
org.hibernate.context.spi.CurrentTenantIdentifierResolver |
getCurrentTenantIdentifierResolver() |
org.hibernate.CustomEntityDirtinessStrategy |
getCustomEntityDirtinessStrategy() |
java.util.Set |
getDefinedFilterNames() |
org.hibernate.dialect.Dialect |
getDialect() |
org.hibernate.proxy.EntityNotFoundDelegate |
getEntityNotFoundDelegate() |
org.hibernate.persister.entity.EntityPersister |
getEntityPersister(java.lang.String entityName) |
java.util.Map<java.lang.String, org.hibernate.persister.entity.EntityPersister> |
getEntityPersisters() |
org.hibernate.engine.profile.FetchProfile |
getFetchProfile(java.lang.String name) |
org.hibernate.engine.spi.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) |
org.hibernate.Interceptor |
getInterceptor() |
org.hibernate.engine.jdbc.spi.JdbcServices |
getJdbcServices() |
org.hibernate.engine.spi.NamedQueryDefinition |
getNamedQuery(java.lang.String queryName) |
org.hibernate.internal.NamedQueryRepository |
getNamedQueryRepository() |
org.hibernate.engine.spi.NamedSQLQueryDefinition |
getNamedSQLQuery(java.lang.String queryName) |
org.hibernate.cache.spi.Region |
getNaturalIdCacheRegion(java.lang.String regionName) |
java.util.Properties |
getProperties() |
java.lang.Object |
getProperty(java.lang.String property) |
org.hibernate.cache.spi.QueryCache |
getQueryCache() |
org.hibernate.cache.spi.QueryCache |
getQueryCache(java.lang.String regionName) |
org.hibernate.engine.query.spi.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.exception.spi.SQLExceptionConverter |
getSQLExceptionConverter() |
org.hibernate.engine.jdbc.spi.SqlExceptionHelper |
getSQLExceptionHelper() |
org.hibernate.cache.spi.Region |
getSecondLevelCacheRegion(java.lang.String regionName) |
org.hibernate.service.spi.ServiceRegistryImplementor |
getServiceRegistry() |
SessionFactoryOptions |
getSessionFactoryOptions() |
org.hibernate.cfg.Settings |
getSettings() |
org.hibernate.dialect.function.SQLFunctionRegistry |
getSqlFunctionRegistry() |
org.hibernate.stat.Statistics |
getStatistics() |
org.hibernate.stat.spi.StatisticsImplementor |
getStatisticsImplementor() |
org.hibernate.TypeHelper |
getTypeHelper() |
org.hibernate.type.TypeResolver |
getTypeResolver() |
org.hibernate.cache.spi.UpdateTimestampsCache |
getUpdateTimestampsCache() |
java.lang.Object |
getWrappedObject() |
boolean |
isClosed() |
java.lang.Iterable<org.hibernate.EntityNameResolver> |
iterateEntityNameResolvers() |
org.hibernate.Session |
openSession() |
org.hibernate.StatelessSession |
openStatelessSession() |
org.hibernate.StatelessSession |
openStatelessSession(java.sql.Connection connection) |
org.hibernate.Session |
openTemporarySession() |
void |
registerNamedQueryDefinition(java.lang.String name, org.hibernate.engine.spi.NamedQueryDefinition definition) |
void |
registerNamedSQLQueryDefinition(java.lang.String name, org.hibernate.engine.spi.NamedSQLQueryDefinition definition) |
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 |
org.hibernate.engine.spi.SessionBuilderImplementor |
withOptions() |
org.hibernate.StatelessSessionBuilder |
withStatelessOptions() |
Methods inherited from class | Name |
---|---|
class groovy.lang.GroovyObjectSupport |
groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#wait(long, int), groovy.lang.GroovyObjectSupport#wait(long), groovy.lang.GroovyObjectSupport#wait(), 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() |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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() |
The class to use for the current session context
currentSessionContextClass
- The current session context classThe target bean to proxy
targetBean
- The name of the target bean