public class PersistenceProviderImpl extends Object implements javax.persistence.spi.PersistenceProvider, javax.persistence.spi.ProviderUtil
| Constructor and Description |
|---|
PersistenceProviderImpl()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
javax.persistence.EntityManagerFactory |
createContainerEntityManagerFactory(javax.persistence.spi.PersistenceUnitInfo unitInfo,
Map properties)
Method to create an EntityManagerFactory when running in J2EE.
|
javax.persistence.EntityManagerFactory |
createEntityManagerFactory(String unitName,
Map properties)
Method to create an EntityManagerFactory when running in J2SE.
|
javax.persistence.spi.ProviderUtil |
getProviderUtil() |
javax.persistence.spi.LoadState |
isLoaded(Object entity)
If the provider determines that the entity has been provided
by itself and that the state of all attributes for which
FetchType EAGER has been specified have been loaded, this
method returns LoadState.LOADED.
|
javax.persistence.spi.LoadState |
isLoadedWithoutReference(Object entity,
String memberName)
If the provider determines that the entity has been provided
by itself and that the state of the specified attribute has
been loaded, this method returns LoadState.LOADED.
|
javax.persistence.spi.LoadState |
isLoadedWithReference(Object entity,
String memberName)
If the provider determines that the entity has been provided
by itself and that the state of the specified attribute has
been loaded, this method returns LoadState.LOADED.
|
public javax.persistence.EntityManagerFactory createContainerEntityManagerFactory(javax.persistence.spi.PersistenceUnitInfo unitInfo,
Map properties)
createContainerEntityManagerFactory in interface javax.persistence.spi.PersistenceProviderunitInfo - The "persistence-unit"properties - EntityManagerFactory properties to override those in the persistence unitpublic javax.persistence.EntityManagerFactory createEntityManagerFactory(String unitName, Map properties)
createEntityManagerFactory in interface javax.persistence.spi.PersistenceProviderunitName - Name of the "persistence-unit"properties - EntityManagerFactory properties to override those in the persistence unitpublic javax.persistence.spi.LoadState isLoadedWithoutReference(Object entity, String memberName)
isLoadedWithoutReference in interface javax.persistence.spi.ProviderUtilentity - The entitymemberName - Name of member whose load status is to be determinedpublic javax.persistence.spi.LoadState isLoadedWithReference(Object entity, String memberName)
isLoadedWithReference in interface javax.persistence.spi.ProviderUtilentity - The entitymemberName - name of member whose load status is to be determinedpublic javax.persistence.spi.LoadState isLoaded(Object entity)
isLoaded in interface javax.persistence.spi.ProviderUtilentity - whose loaded status is to be determinedpublic javax.persistence.spi.ProviderUtil getProviderUtil()
getProviderUtil in interface javax.persistence.spi.PersistenceProviderCopyright © 2012. All Rights Reserved.