Class InternalEMFactory
java.lang.Object
de.xima.fc.jpa.manager.InternalEMFactory
- All Implemented Interfaces:
IEMFactory
@Deprecated(since="8.5.0",
forRemoval=true)
public class InternalEMFactory
extends Object
implements IEMFactory
Deprecated, for removal: This API element is subject to removal in a future version.
Factory for creating
entity manager instances, configured according to the database settings of
the application.- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.Deprecated.Deprecated.javax.persistence.EntityManagerFactoryDeprecated.Deprecated.booleanisOpen()Deprecated.javax.persistence.EntityManagerDeprecated.voidopen()Deprecated.Management of connections is handled by theDataSourceManagerand its lifecycle.static voidsetDefaultPersistenceProperties(Map<? super String, ? super String> properties, EDatenbankTyp dbms) Deprecated.persistence is handled in the fc-persistence module nowstatic voidsetPassthroughProperties(Map<? super String, ? super String> properties) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IEMFactory
isConfigurable
-
Constructor Details
-
InternalEMFactory
public InternalEMFactory()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
setDefaultPersistenceProperties
@Deprecated public static void setDefaultPersistenceProperties(Map<? super String, ? super String> properties, EDatenbankTyp dbms) Deprecated.persistence is handled in the fc-persistence module nowApplies the default settings for the configuration of apersistence unit, such as the maximum number of connections, timeouts etc.- Parameters:
properties- Map with properties to fill with the default settings. This should then be passed to thePersistenceUnitInfo.dbms- Database type for which the settings are intended.
-
setPassthroughProperties
-
close
-
getDBType
Deprecated.- Specified by:
getDBTypein interfaceIEMFactory
-
getDataSource
Deprecated.- Specified by:
getDataSourcein interfaceIEMFactory- Throws:
FcPersistenceException
-
getEntityManagerFactory
@Deprecated public javax.persistence.EntityManagerFactory getEntityManagerFactory() throws FcPersistenceExceptionDeprecated.- Specified by:
getEntityManagerFactoryin interfaceIEMFactory- Throws:
FcPersistenceException
-
getPersistenceUnitName
Deprecated.- Specified by:
getPersistenceUnitNamein interfaceIEMFactory
-
isOpen
-
newEntityManager
Deprecated.- Specified by:
newEntityManagerin interfaceIEMFactory- Throws:
FcPersistenceException
-
open
Deprecated.Management of connections is handled by theDataSourceManagerand its lifecycle.Initializes the entity manager factory. This method is deprecated and will be removed in future versions, as the lifecycle of the EntityManagerFactory is now managed by theDataSourceManager.- Specified by:
openin interfaceIEMFactory
-
SystemPersistenceManager.getEntityManagerFactory()instead.