public enum ORMPlatform extends Enum<ORMPlatform>
| Enum Constant and Description |
|---|
DATANUCLEUS |
ECLIPSELINK |
HIBERNATE |
OPENJPA |
| Modifier and Type | Method and Description |
|---|---|
static ORMPlatform |
detectFromClasspath()
Try to detect ORM platform to use form classpath
|
List<String> |
getDelegates()
EntitManager delegates class names
|
static ORMPlatform |
resolve(javax.persistence.EntityManager em)
Determines the ORMPlatform from the given
EntityManager |
static ORMPlatform |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ORMPlatform[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ORMPlatform HIBERNATE
public static final ORMPlatform ECLIPSELINK
public static final ORMPlatform OPENJPA
public static final ORMPlatform DATANUCLEUS
public static ORMPlatform[] values()
for (ORMPlatform c : ORMPlatform.values()) System.out.println(c);
public static ORMPlatform valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic List<String> getDelegates()
public static ORMPlatform detectFromClasspath() throws IllegalStateException
null if not foundIllegalStateException - If more than one ORM provide is found in classpathpublic static ORMPlatform resolve(javax.persistence.EntityManager em)
EntityManagerem - EntityManager (must be not null)null is returnedCopyright © 2019 The Holon Platform. All rights reserved.