Package de.xima.fc.jpa.manager
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.The system EntityManagerFactory is now managed in the fc-persistence module. UseSystemPersistenceManager.getEntityManagerFactory()instead.Factory for creatingentity managerinstances, configured according to the database settings of the application.- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description InternalEMFactory()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()Deprecated.DataSourcegetDataSource()Deprecated.EDatenbankTypgetDBType()Deprecated.javax.persistence.EntityManagerFactorygetEntityManagerFactory()Deprecated.StringgetPersistenceUnitName()Deprecated.booleanisOpen()Deprecated.javax.persistence.EntityManagernewEntityManager()Deprecated.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.jpa.IEMFactory
isConfigurable
-
-
-
-
Method Detail
-
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
public static void setPassthroughProperties(Map<? super String,? super String> properties)
Deprecated, for removal: This API element is subject to removal in a future version.
-
close
@Deprecated public void close()
Deprecated.- Specified by:
closein interfaceIEMFactory
-
getDBType
@Deprecated public EDatenbankTyp getDBType()
Deprecated.- Specified by:
getDBTypein interfaceIEMFactory
-
getDataSource
@Deprecated public DataSource getDataSource() throws FcPersistenceException
Deprecated.- Specified by:
getDataSourcein interfaceIEMFactory- Throws:
FcPersistenceException
-
getEntityManagerFactory
@Deprecated public javax.persistence.EntityManagerFactory getEntityManagerFactory() throws FcPersistenceException
Deprecated.- Specified by:
getEntityManagerFactoryin interfaceIEMFactory- Throws:
FcPersistenceException
-
getPersistenceUnitName
@Deprecated public String getPersistenceUnitName()
Deprecated.- Specified by:
getPersistenceUnitNamein interfaceIEMFactory
-
isOpen
@Deprecated public boolean isOpen()
Deprecated.- Specified by:
isOpenin interfaceIEMFactory
-
newEntityManager
@Deprecated public javax.persistence.EntityManager newEntityManager() throws FcPersistenceException
Deprecated.- Specified by:
newEntityManagerin interfaceIEMFactory- Throws:
FcPersistenceException
-
open
@Deprecated public void 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
-
-