org.springframework.data.jpa.repository.utils
Class JpaClassUtils
java.lang.Object
org.springframework.data.jpa.repository.utils.JpaClassUtils
public abstract class JpaClassUtils
- extends Object
Utility class to work with classes.
- Author:
- Oliver Gierke
Method Summary |
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 |
isEntityManagerOfType
public static boolean isEntityManagerOfType(javax.persistence.EntityManager em,
String type)
- Returns whether the given
EntityManager
is of the given type.
- Parameters:
em
- type
- the fully qualified expected EntityManager
type.
- Returns:
Copyright © 2011-2012 SpringSource. All Rights Reserved.