Package net.ontopia.persistence.proxy
Class CacheEntry
- java.lang.Object
-
- net.ontopia.persistence.proxy.CacheEntry
-
- All Implemented Interfaces:
Externalizable
,Serializable
public class CacheEntry extends Object implements Externalizable
INTERNAL: Class used by storage caches to hold field values for a single object.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static int[]
MASKS
-
Constructor Summary
Constructors Constructor Description CacheEntry()
CacheEntry(IdentityIF identity, int fields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
contains(int field)
IdentityIF
getIdentity()
Object
getValue(int field)
void
readExternal(ObjectInput in)
void
setValue(int field, Object value)
String
toString()
void
unsetValue(int field, Object value)
void
writeExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
CacheEntry
public CacheEntry()
-
CacheEntry
public CacheEntry(IdentityIF identity, int fields)
-
-
Method Detail
-
getIdentity
public IdentityIF getIdentity()
-
contains
public boolean contains(int field)
-
getValue
public Object getValue(int field)
-
setValue
public void setValue(int field, Object value)
-
unsetValue
public void unsetValue(int field, Object value)
-
clear
public void clear()
-
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
-
-