|
Spring Data Jpa | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.jpa.repository.utils.JpaClassUtils
public abstract class JpaClassUtils
Utility class to work with classes.
Method Summary | ||
---|---|---|
static String |
getEntityName(Class<?> domainClass)
Returns the name ot the entity represented by this class. |
|
static
|
getMetadata(Class<T> domainClass,
javax.persistence.EntityManager em)
Creates a JpaEntityInformation for the given domain class and
EntityManager . |
|
static boolean |
isEntityManagerOfType(javax.persistence.EntityManager em,
String type)
Returns whether the given EntityManager is of the given type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isEntityManagerOfType(javax.persistence.EntityManager em, String type)
EntityManager
is of the given type.
em
- type
- the fully qualified expected EntityManager
type.
public static String getEntityName(Class<?> domainClass)
domainClass
-
public static <T> JpaEntityInformation<T,?> getMetadata(Class<T> domainClass, javax.persistence.EntityManager em)
JpaEntityInformation
for the given domain class and
EntityManager
.
domainClass
- em
-
|
Spring Data Jpa | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |