public enum Provider extends Enum<Provider>
Enum Constant and Description |
---|
ECLIPSELINK |
HIBERNATE |
OPENJPA |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
<E> E |
dereferenceProxy(E entity) |
String |
getDialectName(javax.persistence.EntityManagerFactory entityManagerFactory) |
static boolean |
is(Provider provider) |
boolean |
isAggregation(javax.persistence.criteria.Expression<?> expression) |
boolean |
isElementCollection(javax.persistence.metamodel.Attribute<?,?> attribute) |
boolean |
isProxy(Object entity) |
static Provider |
of(javax.persistence.EntityManager entityManager) |
static Provider |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Provider[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Provider HIBERNATE
public static final Provider ECLIPSELINK
public static final Provider OPENJPA
public static final Provider UNKNOWN
public static Provider[] values()
for (Provider c : Provider.values()) System.out.println(c);
public static Provider 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 static Provider of(javax.persistence.EntityManager entityManager)
public static boolean is(Provider provider)
public String getDialectName(javax.persistence.EntityManagerFactory entityManagerFactory)
public boolean isAggregation(javax.persistence.criteria.Expression<?> expression)
public boolean isElementCollection(javax.persistence.metamodel.Attribute<?,?> attribute)
public boolean isProxy(Object entity)
public <E> E dereferenceProxy(E entity)
Copyright © 2015–2017 OmniFaces. All rights reserved.