public class EntityUtils
extends java.lang.Object
Constructor and Description |
---|
EntityUtils(<any> entityManagerFactoryProvider,
<any> entityManagerProvider,
ReflectionService reflectionService) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
deepDetach(java.lang.Object object) |
java.lang.Object |
deepDetach(java.lang.Object entity,
java.util.IdentityHashMap<java.lang.Object,java.lang.Integer> map,
EntityManager entityManager) |
java.lang.Object |
deepHibernateUnproxy(java.lang.Object entity) |
java.lang.Object |
deepHibernateUnproxy(java.lang.Object entity,
java.util.IdentityHashMap<java.lang.Object,java.lang.Integer> map,
int depth) |
java.util.List<java.lang.Class<?>> |
getAllEntityClasses() |
java.util.Collection<java.lang.Class<?>> |
getAllEntityClasses(java.lang.Class<?> clazz) |
java.util.Set<java.lang.reflect.Field> |
getEnclosedFields(java.lang.Class<?> clazz) |
java.util.Set<java.lang.reflect.Field> |
getEnclosedOrSimpleFields(java.lang.Class<?> clazz) |
java.lang.Class<?> |
getEntityBySimpleName(java.lang.String name) |
java.lang.Object |
getId(java.lang.Class<?> clazz,
java.lang.Object object) |
java.lang.Object |
getId(java.lang.Object object) |
java.lang.reflect.Field |
getIdField(java.lang.Class<?> clazz) |
Metamodel |
getMetaModel() |
java.util.Set<java.lang.reflect.Field> |
getPersistantFields(java.lang.Class<?> targetClass) |
java.lang.Object |
getTransientId(java.lang.Class<?> clazz,
java.lang.Object object) |
java.lang.Object |
getTransientId(java.lang.Object object) |
java.lang.reflect.Field |
getTransientIdField(java.lang.Class<?> clazz) |
boolean |
isEnclosed(java.lang.reflect.Field field) |
boolean |
isEntity(java.lang.Class<?> type) |
boolean |
isEntity(java.lang.reflect.Field field) |
boolean |
isEntity(java.lang.Object object) |
boolean |
isEntityCollection(java.lang.reflect.Field field) |
java.lang.Object |
simpleHibernateUnproxy(java.lang.Object entity) |
java.lang.Object |
unproxy(java.lang.Object a) |
public EntityUtils(<any> entityManagerFactoryProvider, <any> entityManagerProvider, ReflectionService reflectionService)
public java.lang.Object simpleHibernateUnproxy(java.lang.Object entity)
public java.lang.Object deepHibernateUnproxy(java.lang.Object entity) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
public java.lang.Object deepHibernateUnproxy(java.lang.Object entity, java.util.IdentityHashMap<java.lang.Object,java.lang.Integer> map, int depth) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
public java.lang.Object getId(java.lang.Object object)
public java.lang.Object getId(java.lang.Class<?> clazz, java.lang.Object object)
public java.lang.Object getTransientId(java.lang.Object object)
public java.lang.Object getTransientId(java.lang.Class<?> clazz, java.lang.Object object)
public java.lang.reflect.Field getTransientIdField(java.lang.Class<?> clazz)
public java.lang.reflect.Field getIdField(java.lang.Class<?> clazz)
public boolean isEntity(java.lang.Class<?> type)
public boolean isEntity(java.lang.Object object)
public boolean isEntity(java.lang.reflect.Field field)
public boolean isEntityCollection(java.lang.reflect.Field field)
public java.lang.Class<?> getEntityBySimpleName(java.lang.String name)
public Metamodel getMetaModel()
public java.util.Set<java.lang.reflect.Field> getPersistantFields(java.lang.Class<?> targetClass)
public java.util.Set<java.lang.reflect.Field> getEnclosedOrSimpleFields(java.lang.Class<?> clazz)
public java.util.Set<java.lang.reflect.Field> getEnclosedFields(java.lang.Class<?> clazz)
public boolean isEnclosed(java.lang.reflect.Field field)
public java.lang.Object unproxy(java.lang.Object a)
public java.util.Collection<java.lang.Class<?>> getAllEntityClasses(java.lang.Class<?> clazz)
public java.util.List<java.lang.Class<?>> getAllEntityClasses()
public java.lang.Object deepDetach(java.lang.Object object) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
public java.lang.Object deepDetach(java.lang.Object entity, java.util.IdentityHashMap<java.lang.Object,java.lang.Integer> map, EntityManager entityManager) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException