public enum Provider extends Enum<Provider>
Enum Constant and Description |
---|
ECLIPSELINK |
HIBERNATE |
OPENJPA |
UNKNOWN |
Modifier and Type | Field and Description |
---|---|
static String |
QUERY_HINT_ECLIPSELINK_MAINTAIN_CACHE |
static String |
QUERY_HINT_ECLIPSELINK_REFRESH |
static String |
QUERY_HINT_HIBERNATE_CACHE_REGION |
static String |
QUERY_HINT_HIBERNATE_CACHEABLE |
Modifier and Type | Method and Description |
---|---|
<E> E |
dereferenceProxy(E entity) |
String |
getDialectName(EntityManagerFactory entityManagerFactory) |
<E> Class<E> |
getEntityType(E entity) |
static boolean |
is(Provider provider) |
boolean |
isAggregation(Expression<?> expression) |
boolean |
isElementCollection(Attribute<?,?> attribute) |
boolean |
isManyOrOneToOne(Attribute<?,?> attribute) |
boolean |
isOneToMany(Attribute<?,?> attribute) |
boolean |
isProxy(Object entity) |
boolean |
isProxyInitialized(Object entity) |
static Provider |
of(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 final String QUERY_HINT_HIBERNATE_CACHEABLE
public static final String QUERY_HINT_HIBERNATE_CACHE_REGION
public static final String QUERY_HINT_ECLIPSELINK_MAINTAIN_CACHE
public static final String QUERY_HINT_ECLIPSELINK_REFRESH
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(EntityManager entityManager)
public static boolean is(Provider provider)
public String getDialectName(EntityManagerFactory entityManagerFactory)
public boolean isAggregation(Expression<?> expression)
public boolean isElementCollection(Attribute<?,?> attribute)
public boolean isOneToMany(Attribute<?,?> attribute)
public boolean isManyOrOneToOne(Attribute<?,?> attribute)
public boolean isProxy(Object entity)
public boolean isProxyInitialized(Object entity)
public <E> E dereferenceProxy(E entity)
public <E> Class<E> getEntityType(E entity)
Copyright © 2015–2018 OmniFaces. All rights reserved.