Package org.cyclos.impl.utils.cache
Class EntityAccessorCacheValue
- java.lang.Object
-
- org.cyclos.impl.utils.cache.AccessorCacheValue
-
- org.cyclos.impl.utils.cache.EntityAccessorCacheValue
-
- All Implemented Interfaces:
Serializable,WrappedObject
public class EntityAccessorCacheValue extends AccessorCacheValue
AnAccessorCacheValuewhich stores an entity reference- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EntityAccessorCacheValue(Class<? extends SimpleEntity> entityClass, Long id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Class<? extends SimpleEntity>getEntityClass()LonggetId()inthashCode()StringtoString()Objectunwrap(ApplicationContext applicationContext)Unwraps the original value.-
Methods inherited from class org.cyclos.impl.utils.cache.AccessorCacheValue
create, create, create
-
-
-
-
Constructor Detail
-
EntityAccessorCacheValue
public EntityAccessorCacheValue(Class<? extends SimpleEntity> entityClass, Long id)
-
-
Method Detail
-
getEntityClass
public Class<? extends SimpleEntity> getEntityClass()
-
getId
public Long getId()
-
unwrap
public Object unwrap(ApplicationContext applicationContext)
Description copied from interface:WrappedObjectUnwraps the original value. Needs to run within a transaction
-
-