public class Connection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
JPA_ERROR |
static int |
SQL_ERROR |
Constructor and Description |
---|
Connection() |
Modifier and Type | Method and Description |
---|---|
static javax.persistence.EntityManager |
getEntityManager() |
static int |
getLastError()
Tells the type of the last occurred error
|
static boolean |
tryInit()
Tries to initialize connection.
|
public static final int SQL_ERROR
public static final int JPA_ERROR
public static javax.persistence.EntityManager getEntityManager()
public static int getLastError()
public static boolean tryInit()