net.ontopia.persistence.proxy
Class CacheEntry

java.lang.Object
  extended by net.ontopia.persistence.proxy.CacheEntry
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class CacheEntry
extends java.lang.Object
implements java.io.Externalizable

INTERNAL: Class used by storage caches to hold field values for a single object.

See Also:
Serialized Form

Field Summary
protected static int[] MASKS
           
 
Constructor Summary
CacheEntry()
           
CacheEntry(IdentityIF identity, int fields)
           
 
Method Summary
 void clear()
           
 boolean contains(int field)
           
 IdentityIF getIdentity()
           
 java.lang.Object getValue(int field)
           
 void readExternal(java.io.ObjectInput in)
           
 void setValue(int field, java.lang.Object value)
           
 java.lang.String toString()
           
 void unsetValue(int field, java.lang.Object value)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MASKS

protected static final int[] MASKS
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 java.lang.Object getValue(int field)

setValue

public void setValue(int field,
                     java.lang.Object value)

unsetValue

public void unsetValue(int field,
                       java.lang.Object value)

clear

public void clear()

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2000-2012 Ontopia.