public class EntityProxifier extends Object
| Constructor and Description |
|---|
EntityProxifier() |
| Modifier and Type | Method and Description |
|---|---|
<T> EntityInterceptor<T> |
buildInterceptor(PersistenceContext context,
T entity,
Set<Method> alreadyLoaded) |
<T> T |
buildProxy(T entity,
PersistenceContext context,
Set<Method> alreadyLoaded) |
<T> T |
buildProxyWithAllFieldsLoadedExceptCounters(T entity,
PersistenceContext context) |
<T> T |
buildProxyWithNoFieldLoaded(T entity,
PersistenceContext context) |
<T> Class<T> |
deriveBaseClass(Object entity) |
void |
ensureNotProxy(Object rawEntity) |
void |
ensureProxy(Object proxy) |
<T> EntityInterceptor<T> |
getInterceptor(T proxy) |
<T> T |
getRealObject(T proxy) |
boolean |
isProxy(Object entity) |
<T> Collection<T> |
removeProxy(Collection<T> proxies) |
<T> List<T> |
removeProxy(List<T> proxies) |
<K,V> Map.Entry<K,V> |
removeProxy(Map.Entry<K,V> entry) |
<T> Set<T> |
removeProxy(Set<T> proxies) |
<T> T |
removeProxy(T proxy) |
public <T> T buildProxyWithAllFieldsLoadedExceptCounters(T entity,
PersistenceContext context)
public <T> T buildProxyWithNoFieldLoaded(T entity,
PersistenceContext context)
public <T> T buildProxy(T entity,
PersistenceContext context,
Set<Method> alreadyLoaded)
public <T> T getRealObject(T proxy)
public boolean isProxy(Object entity)
public <T> EntityInterceptor<T> getInterceptor(T proxy)
public void ensureProxy(Object proxy)
public void ensureNotProxy(Object rawEntity)
public <T> T removeProxy(T proxy)
public <T> Collection<T> removeProxy(Collection<T> proxies)
public <T> EntityInterceptor<T> buildInterceptor(PersistenceContext context, T entity, Set<Method> alreadyLoaded)
Copyright © 2012-2014. All Rights Reserved.