| org.ozoneDB.core.ObjectContainer
All known Subclasses: org.ozoneDB.core.classicStore.ClassicObjectContainer, org.ozoneDB.core.AbstractObjectContainer, org.ozoneDB.CacheObjectContainer,
ObjectContainer | public interface ObjectContainer extends Lockable(Code) | | Together with the
StoreManager interface this is part of the
StoreManager back-end API.
An ObjectContainer wraps a target (database) object and decorates it with
functionality needed by the database system, such as the corresponding object
ID. Also, the ObjectContainer is the delegate for the methods defined by
OzoneCompatible .
author: SMB author: Medium.net version: $Revision: 1.2 $Date: 2002/06/08 00:49:38 $ |
IMPLNAME_POSTFIX | final public static String IMPLNAME_POSTFIX(Code) | | |
PROXYNAME_POSTFIX | final public static String PROXYNAME_POSTFIX(Code) | | |
STATE_CLEAN | final public static int STATE_CLEAN(Code) | | |
STATE_CREATED | final public static int STATE_CREATED(Code) | | |
STATE_DELETED | final public static int STATE_DELETED(Code) | | |
STATE_MODIFIED | final public static int STATE_MODIFIED(Code) | | |
STATE_READ | final public static int STATE_READ(Code) | | |
deleteTarget | public void deleteTarget()(Code) | | |
ensureGarbageCollectionLevel | public int ensureGarbageCollectionLevel(int newGarbageCollectionLevel)(Code) | | Ensures that the garbageCollectionLevel is at least the given currentGarbageCollectionLevel.
The return value is meaningful if the supplied newGarbageCollectionLevel is the currentGarbageCollectionLevel
<=0 if this object still has to be processed.This is the case if it belongs to the surelyReachable set but not to the processedReachable set> otherwise<0 if this object has been updated=0 if this object has not been updated, it is surelyReachable>0 if this object has not been updated, it is processedReachable |
equals | public boolean equals(Object obj)(Code) | | True if obj and receiver point to the same target object. |
isPinned | public boolean isPinned()(Code) | | Returns wether this ObjectContainer is pinned.
|
modTime | public long modTime()(Code) | | Returns the time when the container was last commited with lock level
greater than
LEVEL_READ . The value returned by this method should
only be compared against return values of this method.
|
ozoneProxy | public OzoneProxy ozoneProxy()(Code) | | Return a proxy for the receiver.
Proxy for this object. |
pin | public void pin()(Code) | | Pins this ObjectContainer.
Every caller of this method must pair this call with a call to
ObjectContainer.unpin .
An ObjectContainer remains in main memory at least as long as it is pinned.
|
state | public int state()(Code) | | Return the current state of the container. Possible return values are the
STATE constants defined in this class. A container can only be in one of
these states at one time. The state of a container can only be raised
during one transaction. So, if a container is created (STATE_CREATED)
during a transaction, the state can become STATE_DELETED only.
The state of the container. |
touch | public void touch()(Code) | | |
unpin | public void unpin()(Code) | | Unpins this ObjectContainer.
This method must be called exactly once for every call to
ObjectContainer.pin .
|
|
|