|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.btree.PO
public abstract class PO
A persistent object.
| Field Summary | |
|---|---|
protected boolean |
deleted
True iff the object is deleted. |
protected boolean |
dirty
New objects are considered to be dirty. |
protected long |
identity
The persistent identity (defined when the object is actually persisted). |
| Fields inherited from interface com.bigdata.btree.IIdentityAccess |
|---|
NULL |
| Constructor Summary | |
|---|---|
PO()
|
|
| Method Summary | |
|---|---|
long |
getIdentity()
The persistent identity. |
protected static String |
indent(int height)
Returns a string that may be used to indent a dump of the nodes in the tree. |
boolean |
isDeleted()
True iff an object has been logically deleted. |
boolean |
isDirty()
|
boolean |
isPersistent()
True iff the object is persistent. |
void |
setDirty(boolean dirty)
|
void |
setIdentity(long key)
Used by the store to set the persistent identity. |
String |
toShortString()
Returns a short representation of the class, identity (if assigned), the object instance, and whether or not the PO is deleted. |
String |
toString()
Extends the basic behavior to display the persistent identity of the object iff the object is persistent and to mark objects that have been deleted. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.bigdata.btree.IIdentityAccess |
|---|
delete |
| Field Detail |
|---|
protected transient long identity
protected transient boolean deleted
protected transient boolean dirty
| Constructor Detail |
|---|
public PO()
| Method Detail |
|---|
public final boolean isPersistent()
IIdentityAccess
isPersistent in interface IIdentityAccessIAbstractNodeData.isCoded() currently reflects the
same distinction as IAbstractNodeData.isReadOnly(), that
might not always be the case. For example, it is possible to have
mutable coded node/leaf impls.
There are a number of asserts for this which are violated by the
change to support coding of nodes and leaves for the transient
B+Tree. Often, those asserts need to test
IAbstractNodeData.isReadOnly() instead, since that reflects
the concern that the node/leaf is not mutable.
public final boolean isDeleted()
IIdentityAccess
isDeleted in interface IIdentityAccess
public final long getIdentity()
throws IllegalStateException
IIdentityAccess
getIdentity in interface IIdentityAccessIllegalStateException - if the object is not persistent.
public void setIdentity(long key)
throws IllegalStateException
identity - The identity.
IllegalStateException - If the identity is already defined.public final boolean isDirty()
isDirty in interface IDirtypublic final void setDirty(boolean dirty)
setDirty in interface IDirtypublic String toString()
toString in class Objectpublic String toShortString()
PO is deleted.
protected static String indent(int height)
height - The height.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||