org.hibernate.connection.ConnectionProvider , org.hibernate.classic.Session , org.hibernate.hql.QueryTranslator , org.hibernate.persister.entity.EntityPersister , org.hibernate.persister.collection.CollectionPersister
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final transient ConcurrentMap | |
| private final transient Cache | |
| private final transient Map | |
| private final transient Map | |
| private final transient Map | |
| private final transient Map | |
| private final transient CurrentSessionContext | |
| private final transient HashMap | |
| private final transient EntityNotFoundDelegate | |
| private final transient Map | |
| private final transient EventListeners | |
| private final transient Map | |
| private final transient Map | |
| private final transient Map | |
| private final transient Map | |
| private final transient Interceptor | |
| private transient boolean | |
| private static final Logger | |
| private final String | |
| private final transient Map | |
| private final transient Map | |
| private final transient SessionFactoryObserver | |
| private final transient Properties | |
| private final transient QueryCache | |
| private final transient Map | |
| private final transient QueryPlanCache | |
| private transient SchemaExport | |
| private final transient Settings | |
| private final transient SQLFunctionRegistry | |
| private final transient Map | |
| private final transient Statistics | |
| private final transient TransactionManager | |
| private final transient TypeHelper | |
| private final transient TypeResolver | |
| private final transient UpdateTimestampsCache | |
| private final String | |
| private static final IdentifierGenerator |
| Access | Constructor and Description |
|---|---|
| public | SessionFactoryImpl(Configuration cfg, Mapping mapping, Settings settings, EventListeners listeners, SessionFactoryObserver observer)
|
| Modifier and Type | Method and Description |
|---|---|
| private CurrentSessionContext | |
| private Map | |
| public void | close()
Implements org. |
| public boolean | containsFetchProfileDefinition(String
The name to check name)Implements org. |
| pack-priv static SessionFactoryImpl | Returns: The deserialized factoryThe stream from which to "read" the factory ois)Custom deserialization hook used during Session deserialization. |
| public void | evict(Class<T>
The entity class for which to evict data. persistentClass, Serializable The entity id id)Implements org. |
| public void | evict(Class<T>
The entity class for which to evict data. persistentClass)Implements org. |
| public void | evictCollection(String
The name of the collection role roleName, Serializable The id of the collection owner id)Implements org. |
| public void | evictCollection(String
The name of the collection role whose regions should be evicted roleName)Implements org. |
| public void | evictEntity(String
The entity name for which to evict data. entityName, Serializable The entity id id)Implements org. |
| public void | evictEntity(String
The entity name for which to evict data. entityName)Implements org. |
| public void | evictQueries()
Implements org. |
| public void | evictQueries(String
The named query cache region from which to evict. regionName)Implements org. |
| public Map | getAllClassMetadata()
Implements org. ClassMetadata for all mapped entities.
|
| public Map | getAllCollectionMetadata()
Implements org. CollectionMetadata for all mapped collections
|
| public Map | getAllSecondLevelCacheRegions()
Implements org. |
| public BatcherFactory | |
| public Cache | getCache()
Implements org. |
| public ClassMetadata | getClassMetadata(Class<T>
The entity class persistentClass)Implements org. ClassMetadata associated with the given entity class.
|
| public ClassMetadata | getClassMetadata(String
The entity class entityName)Implements org. ClassMetadata associated with the given entity class.
|
| public CollectionMetadata | getCollectionMetadata(String
The collection role (in form [owning-entity-name].[collection-property-name]). roleName)Implements org. CollectionMetadata associated with the named collection role.
|
| public CollectionPersister | getCollectionPersister(String
The role (name) of the collection for which to retrieve the
persister. role)Implements org. |
| public Set | getCollectionRolesByEntityParticipant(String
The entity name for which to get the collection roles. entityName)Implements org. |
| public ConnectionProvider | getConnectionProvider()
Implements org. |
| public Session | getCurrentSession()
Implements org. |
| public Set | getDefinedFilterNames()
Implements org. |
| public Dialect | getDialect()
Implements org. |
| public EntityNotFoundDelegate | |
| public EntityPersister | getEntityPersister(String
The name of the entity for which to retrieve the persister. entityName)Implements org. |
| public EventListeners | |
| public SessionFactoryObserver | getFactoryObserver()
Implements org. |
| public FetchProfile | getFetchProfile(String
The name of the profile to retrieve. name)Implements org. |
| public FilterDefinition | getFilterDefinition(String
The name of the filter for which to obtain the definition. filterName)Implements org. |
| public IdentifierGenerator | getIdentifierGenerator(String rootEntityName)
Implements org. |
| public IdentifierGeneratorFactory | getIdentifierGeneratorFactory()
Implements org. |
| public String | getIdentifierPropertyName(String className)
Implements org. |
| public Type | |
| public String[] | getImplementors(String className)
Implements org. |
| public String | getImportedClassName(String className)
Implements org. |
| public Interceptor | getInterceptor()
Implements org. |
| public NamedQueryDefinition | getNamedQuery(String queryName)
Implements org. |
| public NamedSQLQueryDefinition | getNamedSQLQuery(String queryName)
Implements org. |
| public Properties | getProperties()
Implements org. |
| public QueryCache | getQueryCache()
Implements org. |
| public QueryCache | getQueryCache(String
the name of the cache region, or null for the default query cache regionName)Implements org. |
| public QueryPlanCache | |
| public Reference | getReference()
Implements javax. |
| public Type | getReferencedPropertyType(String className, String propertyName)
Implements org. |
| public ResultSetMappingDefinition | getResultSetMapping(String resultSetName)
Implements org. |
| public String[] | getReturnAliases(String queryString)
Implements org. |
| public Type[] | getReturnTypes(String queryString)
Implements org. |
| public Region | getSecondLevelCacheRegion(String
The name of the region to retrieve. regionName)Implements org. |
| public Settings | |
| public SQLExceptionConverter | getSQLExceptionConverter()
Implements org. |
| public SQLFunctionRegistry | |
| public Statistics | getStatistics()
Implements org. |
| public StatisticsImplementor | getStatisticsImplementor()
Implements org. |
| public TransactionFactory | |
| public TransactionManager | getTransactionManager()
Implements org. |
| public TypeHelper | getTypeHelper()
Implements org. TypeHelper
|
| public TypeResolver | getTypeResolver()
Implements org. Type resolver associated with this factory.
|
| public UpdateTimestampsCache | getUpdateTimestampsCache()
Implements org. |
| public boolean | |
| public Iterator | |
| private SessionImpl | openSession(Connection connection, boolean autoClose, long timestamp, Interceptor sessionLocalInterceptor)
|
| public Session | openSession(Connection
a connection provided by the application. connection, Interceptor a session-scoped interceptor sessionLocalInterceptor)Implements org. Session, utilizing the specfied JDBC Connection and
specified Interceptor.
|
| public Session | openSession(Interceptor
a session-scoped interceptor sessionLocalInterceptor)Implements org. Session, utilizing the specified Interceptor.
|
| public Session | openSession(Connection
a connection provided by the application. connection)Implements org. Session, utilizing the specfied JDBC Connection.
|
| public Session | |
| public Session | openSession(final Connection
The external jdbc connection to use, if one (i.e., optional). connection, final boolean Should the session be auto-flushed
prior to transaction completion? flushBeforeCompletionEnabled, final boolean Should the session be auto-closed after
transaction completion? autoCloseSessionEnabled, final ConnectionReleaseMode The release mode for managed jdbc connections. connectionReleaseMode)Implements org. |
| public StatelessSession | openStatelessSession()
Implements org. |
| public StatelessSession | openStatelessSession(Connection
Connection provided by the application. connection)Implements org. Connection.
|
| public Session | openTemporarySession()
Implements org. |
| private void | |
| private Object | |
| public void | |
| private void | |
| private void | |
| pack-priv void | serialize(ObjectOutputStream
The stream to which to write the factory oos)Custom serialization hook used during Session serialization. |
| private void |