| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | checkForProviderProperty(Map<K, V> properties)
Need to check that the provider property is null or set for EclipseLink |
| public EntityManagerFactory | Returns: EntityManagerFactory for the persistence unit specified by the metadataMetadata for use by the persistence provider info, Map<K, V> A Map of integration-level properties for use
by the persistence provider. properties)Implements jakarta. |
| protected EntityManagerFactory | createContainerEntityManagerFactoryImpl(PersistenceUnitInfo info, Map<K, V> properties, boolean requiresConnection)
|
| public EntityManagerFactory | Returns: EntityManagerFactory for the persistence unit, or null if the provider is not the right providerThe name of the persistence unit emName, Map<K, V> A Map of properties for use by the
persistence provider. These properties may be used to
override the values of the corresponding elements in
the persistence.xml file or specify values for
properties not specified in the persistence.xml. properties)Implements jakarta. |
| protected EntityManagerFactoryImpl | createEntityManagerFactoryImpl(PersistenceUnitInfo puInfo, Map<K, V> properties, boolean requiresConnection)
Internal method to return the entity manager factory. |
| public void | generateSchema(PersistenceUnitInfo
the name of the persistence unit info, Map<K, V> properties for schema generation; these may also
contain provider-specific properties. The value of these
properties override any values that may have been configured
elsewhere. properties)Implements jakarta. |
| public boolean | generateSchema(String
the name of the persistence unit persistenceUnitName, Map<K, V> properties for schema generation; these may also
contain provider-specific properties. The value of these
properties override any values that may have been configured
elsewhere. properties)Implements jakarta. |
| public ClassLoader | Returns: ClassLoaderAnswer the classloader to use to create an EntityManager. |
| public JPAInitializer | getInitializer(String emName, Map<K, V> m)
Return JPAInitializer corresponding to the passed classLoader. |
| public ProviderUtil | Returns: ProviderUtil interfaceImplements jakarta. |
| public LoadState | Returns: load status of the entitywhose loaded status is to be determined entity)Implements jakarta. FetchType.EAGER has been specified have been loaded, this
method returns LoadState.LOADED.
|
| public LoadState | Returns: load status of the attributeentity instance entity, String name of attribute whose load status is
to be determined attributeName)Implements jakarta. LoadState.LOADED.
|
| public LoadState | Returns: load status of the attributeentity instance entity, String name of attribute whose load status is
to be determined attributeName)Implements jakarta. LoadState.LOADED.
|
| PersistenceProvider | back to summary |
|---|---|
| public PersistenceProvider() | |
| checkForProviderProperty | back to summary |
|---|---|
| public boolean checkForProviderProperty(Map<K, V> properties) Need to check that the provider property is null or set for EclipseLink | |
| createContainerEntityManagerFactory | back to summary |
|---|---|
| public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map<K, V> properties) Implements jakarta. Called by the container when an EntityManagerFactory is to be created.
| |
| createContainerEntityManagerFactoryImpl | back to summary |
|---|---|
| protected EntityManagerFactory createContainerEntityManagerFactoryImpl(PersistenceUnitInfo info, Map<K, V> properties, boolean requiresConnection) | |
| createEntityManagerFactory | back to summary |
|---|---|
| public EntityManagerFactory createEntityManagerFactory(String emName, Map<K, V> properties) Implements jakarta. Called by Persistence class when an EntityManagerFactory is to be created.
| |
| createEntityManagerFactoryImpl | back to summary |
|---|---|
| protected EntityManagerFactoryImpl createEntityManagerFactoryImpl(PersistenceUnitInfo puInfo, Map<K, V> properties, boolean requiresConnection) Internal method to return the entity manager factory. | |
| generateSchema | back to summary |
|---|---|
| public void generateSchema(PersistenceUnitInfo info, Map<K, V> properties) Implements jakarta. Create database schemas and/or tables and/or create DDL scripts as determined by the supplied properties. Called by the Persistence class when schema generation is to occur as a separate phase from creation of the entity manager factory.
| |
| generateSchema | back to summary |
|---|---|
| public boolean generateSchema(String persistenceUnitName, Map<K, V> properties) Implements jakarta. Create database schemas and/or tables and/or create DDL scripts as determined by the supplied properties. Called by the Persistence class when schema generation is to occur as a separate phase from creation of the entity manager factory.
| |
| getClassLoader | back to summary |
|---|---|
| public ClassLoader getClassLoader(String emName, Map<K, V> properties) Answer the classloader to use to create an EntityManager. If a classloader is not found in the properties map then use the current thread classloader.
| |
| getInitializer | back to summary |
|---|---|
| public JPAInitializer getInitializer(String emName, Map<K, V> m) Return JPAInitializer corresponding to the passed classLoader. Note This is written as an instance method rather than a static to allow it to be overridden | |
| getProviderUtil | back to summary |
|---|---|
| public ProviderUtil getProviderUtil() Implements jakarta. Return the utility interface implemented by the persistence provider.
| |
| isLoaded | back to summary |
|---|---|
| public LoadState isLoaded(Object entity) Implements jakarta. If the provider determines that the entity has been provided
by itself and that the state of all attributes for which
| |
| isLoadedWithoutReference | back to summary |
|---|---|
| public LoadState isLoadedWithoutReference(Object entity, String attributeName) Implements jakarta. 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
| |
| isLoadedWithReference | back to summary |
|---|---|
| public LoadState isLoadedWithReference(Object entity, String attributeName) Implements jakarta. 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
| |