com.bigdata.btree
Interface IIdentityAccess

All Known Implementing Classes:
AbstractNode, IndexSegment.ImmutableNodeFactory.ImmutableLeaf, IndexSegment.ImmutableNodeFactory.ImmutableNode, Leaf, Node, PO

public interface IIdentityAccess

An interface that declares how we access the persistent identity of an object.

Version:
$Id: IIdentityAccess.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Field Summary
static long NULL
          Null reference for the store (zero).
 
Method Summary
 void delete()
          Deletes the persistence capable object.
 long getIdentity()
          The persistent identity.
 boolean isDeleted()
          True iff an object has been logically deleted.
 boolean isPersistent()
          True iff the object is persistent.
 

Field Detail

NULL

static final long NULL
Null reference for the store (zero).

See Also:
Constant Field Values
Method Detail

getIdentity

long getIdentity()
                 throws IllegalStateException
The persistent identity.

Throws:
IllegalStateException - if the object is not persistent.

isPersistent

boolean isPersistent()
True iff the object is persistent.


isDeleted

boolean isDeleted()
True iff an object has been logically deleted.


delete

void delete()
            throws IllegalStateException
Deletes the persistence capable object. Both transient and persistent objects may be logically deleted. If the object is persistent then its space on the store is deallocated.

Throws:
IllegalStateException - if the object is already deleted.


Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.