goodsjpi
Class Persistent

java.lang.Object
  extended bygoodsjpi.Persistent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AnyArray, Blob, HashTable, Htree, ObjectClosure, Ordered, PersistentAbstractCollection, PersistentAbstractMap, PersistentComparator, Rtree, SetOwner, SpatialObject

public class Persistent
extends java.lang.Object
implements java.io.Serializable

Root class for all persistent capable objects

See Also:
Serialized Form

Field Summary
static Metaobject defaultMetaobject
           
 Metaobject metaobject
           
 
Constructor Summary
protected Persistent()
           
protected Persistent(Metaobject metaobject)
           
 
Method Summary
 void attachToStorage(Database db, int sid)
           
 java.lang.Object clone()
           
 void clusterWith(Persistent obj)
           
protected  void finalize()
           
 Database getDatabase()
           
 int getOid()
          Get the dabase assigned id of the object
 int getStorageId()
           
 int hashCode()
           
 void onLoad()
          Method to be invoked after loading object from the storage.
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

metaobject

public Metaobject metaobject

defaultMetaobject

public static Metaobject defaultMetaobject
Constructor Detail

Persistent

protected Persistent()

Persistent

protected Persistent(Metaobject metaobject)
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException

finalize

protected final void finalize()

attachToStorage

public void attachToStorage(Database db,
                            int sid)

clusterWith

public void clusterWith(Persistent obj)

getDatabase

public Database getDatabase()

getOid

public int getOid()
Get the dabase assigned id of the object


getStorageId

public int getStorageId()

hashCode

public int hashCode()

onLoad

public void onLoad()
Method to be invoked after loading object from the storage. It can be used to initilize transient and new fields of the object.