EntityManagerFactory

javax.persistence
Interface EntityManagerFactory

Interface used to interact with the entity manager factory for the persistence unit.

When the application has finished using the entity manager factory, and/or at application shutdown, the application should close the entity manager factory. Once anEntityManagerFactory has been closed, all its entity managers are considered to be in the closed state.

Since:
JPA 1.0
Learn how to use  EntityManagerFactory in  Chapter 3 of the ObjectDB/JPA manual.
void  close()
Close the factory, releasing any resources that it holds.
Create a new application-managed  EntityManager.
Create a new application-managed  EntityManager with the specified Map of properties.
Access the cache that is associated with the entity manager factory (the "second level cache").
Return an instance of  CriteriaBuilder for the creation of  CriteriaQuery objects.
Return an instance of  Metamodel interface for access to the metamodel of the persistence unit.
Return interface providing access to utility methods for the persistence unit.
Map<String,Object>  getProperties()
Get the properties and associated values that are in effect for the entity manager factory.
boolean  isOpen()
Indicates whether the factory is open.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值