|
Spring Data JPA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<PersistenceProvider> org.springframework.data.jpa.repository.support.PersistenceProvider
public enum PersistenceProvider
Enumeration representing peristence providers to be used.
Enum Constant Summary | |
---|---|
ECLIPSELINK
EclipseLink persistence provider. |
|
GENERIC_JPA
Unknown special provider. |
|
HIBERNATE
Hibernate persistence provider. |
|
OPEN_JPA
OpenJpa persistence provider. |
Method Summary | |
---|---|
boolean |
canExtractQuery()
Returns whether the extractor is able to extract the original query string from a given Query . |
static PersistenceProvider |
fromEntityManager(javax.persistence.EntityManager em)
Determines the PersistenceProvider from the given EntityManager . |
protected String |
getCountQueryPlaceholder()
Returns the placeholder to be used for simple count queries. |
static PersistenceProvider |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static PersistenceProvider[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.springframework.data.jpa.repository.query.QueryExtractor |
---|
extractQueryString |
Enum Constant Detail |
---|
public static final PersistenceProvider HIBERNATE
public static final PersistenceProvider ECLIPSELINK
public static final PersistenceProvider OPEN_JPA
public static final PersistenceProvider GENERIC_JPA
Method Detail |
---|
public static PersistenceProvider[] values()
for (PersistenceProvider c : PersistenceProvider.values()) System.out.println(c);
public static PersistenceProvider valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static PersistenceProvider fromEntityManager(javax.persistence.EntityManager em)
PersistenceProvider
from the given EntityManager
. If no special one can be
determined GENERIC_JPA
will be returned.
em
- must not be null.
public boolean canExtractQuery()
QueryExtractor
Query
.
canExtractQuery
in interface QueryExtractor
protected String getCountQueryPlaceholder()
*
.
|
Spring Data JPA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |