Package org.omnifaces.persistence
Enum Class Provider
- All Implemented Interfaces:
Serializable
,Comparable<Provider>
,Constable
Enumeration of all supported JPA providers.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription<I extends Comparable<I> & Serializable,
E extends BaseEntity<I>>
EdereferenceProxy
(E entity) getDialectName
(EntityManagerFactory entityManagerFactory) <I extends Comparable<I> & Serializable,
E extends BaseEntity<I>>
Class<E>getEntityType
(E entity) <I extends Comparable<I> & Serializable,
E extends BaseEntity<I>>
IgetIdentifier
(E entity) <I extends Comparable<I> & Serializable,
E extends BaseEntity<I>>
StringgetTableName
(E entity) static boolean
boolean
isAggregation
(Expression<?> expression) boolean
isElementCollection
(Attribute<?, ?> attribute) boolean
isManyOrOneToOne
(Attribute<?, ?> attribute) boolean
isOneToMany
(Attribute<?, ?> attribute) <I extends Comparable<I> & Serializable,
E extends BaseEntity<I>>
booleanisProxy
(E entity) <I extends Comparable<I> & Serializable,
E extends BaseEntity<I>>
booleanisProxyUninitialized
(E entity) static Provider
of
(EntityManager entityManager) static Provider
Returns the enum constant of this class with the specified name.static Provider[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HIBERNATE
-
ECLIPSELINK
-
OPENJPA
-
UNKNOWN
-
-
Field Details
-
QUERY_HINT_HIBERNATE_CACHEABLE
- See Also:
-
QUERY_HINT_HIBERNATE_CACHE_REGION
- See Also:
-
QUERY_HINT_ECLIPSELINK_MAINTAIN_CACHE
- See Also:
-
QUERY_HINT_ECLIPSELINK_REFRESH
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
of
-
is
-
getDialectName
-
isAggregation
-
isElementCollection
-
isOneToMany
-
isManyOrOneToOne
-
isProxy
-
isProxyUninitialized
public <I extends Comparable<I> & Serializable,E extends BaseEntity<I>> boolean isProxyUninitialized(E entity) -
dereferenceProxy
public <I extends Comparable<I> & Serializable,E extends BaseEntity<I>> E dereferenceProxy(E entity) -
getEntityType
public <I extends Comparable<I> & Serializable,E extends BaseEntity<I>> Class<E> getEntityType(E entity) -
getIdentifier
-
getTableName
public <I extends Comparable<I> & Serializable,E extends BaseEntity<I>> String getTableName(E entity)
-