org.exolab.core.foundation
Interface PersistentCapableIfc

All Known Subinterfaces:
HandleIfc, HashMapIfc, TreeMapIfc, TreeSetIfc, VectorIfc
All Known Implementing Classes:
PersistentObject, PMDHandle, PMDHashMap, PMDTreeMap, PMDTreeSet, PMDVector

public interface PersistentCapableIfc

This interface is used to mark persistent capable classes. These classes can be made persistent but do not necessarily have to be persistent since they can also exist in transient store.

Currently this class does constrain the definitions of ObjectId and ObjectVersion but in future these maybe changed to interfaces, hence giving the implementor additional freedom.

Version:
$Revision: 1.2 $ $Date: 2000/05/19 00:39:54 $
Author:
Jim Alateras
See Also:
ObjectId, ObjectVersion

Method Summary
 int getMinimumObjectSize()
          Return the minimum size of this object.
 ObjectId getObjectId()
          Return the object identifier associated with this object
 ObjectVersion getObjectVersion()
          Return the object version associated with this object
 void setMinimumObjectSize(int size)
          Set the minimum size that the object should occurpy.
 

Method Detail

getObjectId

ObjectId getObjectId()
Return the object identifier associated with this object

Returns:
ObjectId

getObjectVersion

ObjectVersion getObjectVersion()
Return the object version associated with this object

Returns:
ObjectId

getMinimumObjectSize

int getMinimumObjectSize()
Return the minimum size of this object. This vould be used to preallocate the object size for more efficient storage.

Returns:
int

setMinimumObjectSize

void setMinimumObjectSize(int size)
Set the minimum size that the object should occurpy. It is only a hint.

Parameters:
size - minimum object size


Copyright © 1999-2012 The Exolab Group. All Rights Reserved.