Package de.xima.fc.jpa.manager
Class InternalEMFactory
- java.lang.Object
 - 
- de.xima.fc.jpa.manager.InternalEMFactory
 
 
- 
- All Implemented Interfaces:
 IEMFactory
public class InternalEMFactory extends Object implements IEMFactory
Factory for creatingentity managerinstances, configured according to the database settings of the application.- Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Constructor Summary
Constructors Constructor Description InternalEMFactory() 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()DataSourcegetDataSource()EDatenbankTypgetDBType()javax.persistence.EntityManagerFactorygetEntityManagerFactory()StringgetPersistenceUnitName()booleanisOpen()javax.persistence.EntityManagernewEntityManager()voidopen()static voidsetDefaultPersistenceProperties(Map<? super String,? super String> properties, EDatenbankTyp dbms)Applies the default settings for the configuration of apersistence unit, such as the maximum number of connections, timeouts etc.voidsetMigrationRunning(boolean migrationRunning)- 
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
- 
close
public void close()
- Specified by:
 closein interfaceIEMFactory
 
- 
getDataSource
public DataSource getDataSource()
- Specified by:
 getDataSourcein interfaceIEMFactory
 
- 
getDBType
public EDatenbankTyp getDBType()
- Specified by:
 getDBTypein interfaceIEMFactory
 
- 
getEntityManagerFactory
public javax.persistence.EntityManagerFactory getEntityManagerFactory()
- Specified by:
 getEntityManagerFactoryin interfaceIEMFactory
 
- 
getPersistenceUnitName
public String getPersistenceUnitName()
- Specified by:
 getPersistenceUnitNamein interfaceIEMFactory
 
- 
isOpen
public boolean isOpen()
- Specified by:
 isOpenin interfaceIEMFactory
 
- 
newEntityManager
public javax.persistence.EntityManager newEntityManager()
- Specified by:
 newEntityManagerin interfaceIEMFactory
 
- 
open
public void open()
- Specified by:
 openin interfaceIEMFactory
 
- 
setMigrationRunning
public void setMigrationRunning(boolean migrationRunning)
 
- 
setDefaultPersistenceProperties
public static void setDefaultPersistenceProperties(Map<? super String,? super String> properties, EDatenbankTyp dbms)
Applies 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.
 
 - 
 
 -