Spring Data JPA

org.springframework.data.jpa.repository.utils
Class JpaClassUtils

java.lang.Object
  extended by 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
 

Method Detail

isEntityManagerOfType

public static boolean isEntityManagerOfType(javax.persistence.EntityManager em,
                                            String type)
Returns whether the given EntityManager is of the given type.

Parameters:
em - must not be null.
type - the fully qualified expected EntityManager type, must not be null or empty.
Returns:

Spring Data JPA

Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.