public class Main extends Object
Modifier and Type | Field and Description |
---|---|
static String |
persistenceUnitName
This name will be used to configure the EntityManagerFactory
based on the corresponding name in the
META-INF/persistence.xml file
|
Constructor and Description |
---|
Main() |
Modifier and Type | Method and Description |
---|---|
static javax.persistence.EntityManager |
getEM()
Creates a new EntityManager from the EntityManagerFactory.
|
static javax.persistence.EntityManagerFactory |
getFactory()
Initializes the EntityManagerFactory using the System properties.
|
static int |
getMyPid()
Finds the process id of the UNIX process for this application.
|
static void |
memory()
Reports memory use
|
static void |
memory(String title)
Reports memory use
|
static String |
memoryInfo(String title,
boolean doGc) |
public static final String persistenceUnitName
public static int getMyPid()
public static javax.persistence.EntityManagerFactory getFactory()
public static javax.persistence.EntityManager getEM()
public static void memory()
public static void memory(String title)