类 SessionFactoryImpl

  • 所有已实现的接口:
    Closeable, Serializable, AutoCloseable, Referenceable, javax.persistence.EntityManagerFactory, Mapping, SessionFactoryImplementor, HibernateEntityManagerFactory, QueryParameterBindingTypeResolver, SessionFactory

    public class SessionFactoryImpl
    extends Object
    implements SessionFactoryImplementor
    Concrete implementation of the SessionFactory interface. Has the following responsibilities
    • caches configuration settings (immutably)
    • caches "compiled" mappings ie. EntityPersisters and CollectionPersisters (immutable)
    • caches "compiled" queries (memory sensitive cache)
    • manages PreparedStatements
    • delegates JDBC Connection management to the ConnectionProvider
    • factory for instances of SessionImpl
    This class must appear immutable to clients, even if it does all kinds of caching and pooling under the covers. It is crucial that the class is not only thread safe, but also highly concurrent. Synchronization must be used extremely sparingly.
    作者:
    Gavin King, Steve Ebersole, Chris Cranford
    另请参阅:
    序列化表格