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
-
-
Constructor Summary
Constructors Constructor Description InternalEMFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
DataSource
getDataSource()
EDatenbankTyp
getDBType()
javax.persistence.EntityManagerFactory
getEntityManagerFactory()
String
getPersistenceUnitName()
boolean
isConfigurable()
Wenn die Eigenschaftfalse
zurückgeliefert, wird im Setup der Wizard-Schritt zur Konfiguration der Datenbankverbindung nicht angezeigt.boolean
isOpen()
javax.persistence.EntityManager
newEntityManager()
void
open()
static void
setDefaultPersistenceProperties(Map<? super String,? super String> properties, EDatenbankTyp dbms)
-
-
-
Method Detail
-
newEntityManager
public javax.persistence.EntityManager newEntityManager()
- Specified by:
newEntityManager
in interfaceIEMFactory
-
close
public void close()
- Specified by:
close
in interfaceIEMFactory
-
getDBType
public EDatenbankTyp getDBType()
- Specified by:
getDBType
in interfaceIEMFactory
-
isOpen
public boolean isOpen()
- Specified by:
isOpen
in interfaceIEMFactory
-
open
public void open()
- Specified by:
open
in interfaceIEMFactory
-
getPersistenceUnitName
public String getPersistenceUnitName()
- Specified by:
getPersistenceUnitName
in interfaceIEMFactory
-
isConfigurable
public boolean isConfigurable()
Description copied from interface:IEMFactory
Wenn die Eigenschaftfalse
zurückgeliefert, wird im Setup der Wizard-Schritt zur Konfiguration der Datenbankverbindung nicht angezeigt.- Specified by:
isConfigurable
in interfaceIEMFactory
- Returns:
true
wenn DB-Connection konfigurierbar,false
wenn nicht
-
getDataSource
public DataSource getDataSource()
- Specified by:
getDataSource
in interfaceIEMFactory
-
getEntityManagerFactory
public javax.persistence.EntityManagerFactory getEntityManagerFactory()
- Specified by:
getEntityManagerFactory
in interfaceIEMFactory
-
setDefaultPersistenceProperties
public static void setDefaultPersistenceProperties(Map<? super String,? super String> properties, EDatenbankTyp dbms)
-
-