|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.persistence Class Persistence
java.lang.Object javax.persistence.Persistence
public class Persistence
- extends Object
Bootstrap class that is used to obtain an EntityManagerFactory
.
- 从以下版本开始:
- Java Persistence 1.0
字段摘要 | |
---|---|
static String |
PERSISTENCE_PROVIDER
|
protected static Set<PersistenceProvider> |
providers
|
构造器摘要 | |
---|---|
Persistence()
|
方法摘要 | |
---|---|
static EntityManagerFactory |
createEntityManagerFactory(String persistenceUnitName)
Create and return an EntityManagerFactory for the named persistence unit. |
static EntityManagerFactory |
createEntityManagerFactory(String persistenceUnitName,
Map properties)
Create and return an EntityManagerFactory for the named persistence unit using the given properties. |
类方法继承 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
PERSISTENCE_PROVIDER
public static final String PERSISTENCE_PROVIDER
- 另请参见:
- 常量字段
providers
protected static final Set<PersistenceProvider> providers
构造器详细信息 |
---|
Persistence
public Persistence()
方法详细信息 |
---|
createEntityManagerFactory
public static EntityManagerFactory createEntityManagerFactory(String persistenceUnitName)
- Create and return an EntityManagerFactory for the
named persistence unit.
- 参数:
persistenceUnitName
- The name of the persistence unit- 返回:
- The factory that creates EntityManagers configured according to the specified persistence unit
createEntityManagerFactory
public static EntityManagerFactory createEntityManagerFactory(String persistenceUnitName, Map properties)
- Create and return an EntityManagerFactory for the
named persistence unit using the given properties.
- 参数:
persistenceUnitName
- The name of the persistence unitproperties
- Additional properties to use when creating the factory. The values of these properties override any values that may have been configured elsewhere.- 返回:
- The factory that creates EntityManagers configured according to the specified persistence unit.
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.