sessionfactory
- 网络数据源
-
We should create a SessionFactory object only once when the application starts .
我们应该仅仅在应用程序启动的时候创建SessionFactory对象。
-
A SessionFactory is resource intensive and has a relatively high initialization cost .
SessionFactory是密集型资源,而且它的初始化成本较高,从另一方面讲,Session使用了有限的资源,而且强加一些初始化成本。
-
To simplify working with the JCR , the module adds the SessionFactory interface
为了简化与JCR的工作,模块增加了SessionFactory接口
-
A second-level cache also can be configured to be shared among all sessions of the SessionFactory , including across a cluster .
还可以将二级缓存配置为在SessionFactory的所有会话之间共享(包括在集群之间共享)。
-
The default implementation of SessionFactory is JcrSessionFactory which requires a repository to work against , and the credentials .
SessionFactory的缺省实现是JcrSessionFactory,它要求一个进行工作的仓库和证书。
-
SessionFactory hides the authentication details inside the implementation so that once configured , sessions with the same credentials can be easily retrieved .
SessionFactory隐藏了实现内部的认证细节,因此一旦配置完成,使用同一证书的会话可以很容易的被检索出来。
-
In the Spring framework , resources such as a JDBC DataSource or a Hibernate SessionFactory can be realized as beans in an application context .
在Spring框架中,像JDBCDataSource或HibernateSessionFactory这样的资源,在应用程序上下文中可以用bean实现。
-
Other than the abstract property , the bean definition simply points out that I want an instance of GenericDaoHibernateImpl and that it needs a reference to a SessionFactory .
除了抽象特性之外,该bean定义只指出我想要GenericDaoHibernateImpl的实例以及该实例需要对SessionFactory的引用。
-
With the data source and session factory set up , the next step is to wire in the DAO , in this case CustomerDAOImpl , to use the SessionFactory .
数据源和会话工厂设置好之后,下一步就是在DAO中连接,在CustomerDAOImpl示例中,要使用SessionFactory。
-
All I have to do now is wire up my domain objects , which in this case , because they 'll rely on Hibernate , require a SessionFactory type to work .
现在我需要做的就是连接我的域对象,在本示例中,因为它们依赖于Hibernate,需要一个SessionFactory类型进行工作。
-
Thus far , I 've created a builder class that properly configures a ShardedSessionFactory , which really is just an implementation of Hibernate 's ubiquitous SessionFactory type .
到目前为止,我已经创建一个可以合理配置ShardedSessionFactory的生成器类,其实就是实现Hibernate无处不在的SessionFactory类型。