public abstract class PO extends Object implements IIdentityAccess, IDirty
Modifier and Type | Field and Description |
---|---|
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).
|
NULL
Constructor and Description |
---|
PO() |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
delete
protected transient long identity
protected transient boolean deleted
protected transient boolean dirty
public final boolean isPersistent()
IIdentityAccess
isPersistent
in interface IIdentityAccess
public final boolean isDeleted()
IIdentityAccess
isDeleted
in interface IIdentityAccess
public final long getIdentity() throws IllegalStateException
IIdentityAccess
getIdentity
in interface IIdentityAccess
IllegalStateException
- if the object is not persistent.public void setIdentity(long key) throws IllegalStateException
identity
- The identity.IllegalStateException
- If the identity is already defined.public String toString()
public String toShortString()
PO
is deleted.protected static String indent(int height)
height
- The height.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.