java.lang.Object
io.ebeaninternal.server.cache.CachedBeanData
- All Implemented Interfaces:
Externalizable,Serializable
Data held in the bean cache for cached beans.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct from serialisation.CachedBeanData(Object sharableBean, Map<String, Object> data, long version) Construct from a loaded bean. -
Method Summary
Modifier and TypeMethodDescriptiongetData()Return all the property data.Return the value for a given property name.Return a sharable (immutable read only) bean.longReturn the version value.longReturn when the cached data was created.booleanReturn true if the property is held.voidtoString()Create and return a new version of CachedBeanData based on this entry applying the given changes.void
-
Constructor Details
-
CachedBeanData
Construct from a loaded bean. -
CachedBeanData
public CachedBeanData()Construct from serialisation.
-
-
Method Details
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
toString
-
update
Create and return a new version of CachedBeanData based on this entry applying the given changes. -
getWhenCreated
public long getWhenCreated()Return when the cached data was created. -
getVersion
public long getVersion()Return the version value. -
getSharableBean
Return a sharable (immutable read only) bean. Near cache only use. -
isLoaded
Return true if the property is held. -
getData
Return the value for a given property name. -
getData
Return all the property data.
-