Package io.ebeaninternal.server.cache
Class CachedBeanId
- java.lang.Object
-
- io.ebeaninternal.server.cache.CachedBeanId
-
- All Implemented Interfaces:
Externalizable
,Serializable
public class CachedBeanId extends Object implements Externalizable
Bean Id value plus discriminator type.Put into L2 cache such that we know the type of a bean with inheritance.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CachedBeanId()
Construct from serialisation.CachedBeanId(String discValue, Object id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDiscValue()
Object
getId()
void
readExternal(ObjectInput in)
String
toString()
void
writeExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
CachedBeanId
public CachedBeanId(String discValue, Object id)
-
CachedBeanId
public CachedBeanId()
Construct from serialisation.
-
-
Method Detail
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
getDiscValue
public String getDiscValue()
-
-