|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.persistence.proxy.AbstractROPersistent
public abstract class AbstractROPersistent
INTERNAL: An abstract PersistentIF implementation that handles most of the machinery needed to implement persistent objects. Note that other persistent classes should extend this class.
Field Summary | |
---|---|
protected IdentityIF |
id
|
protected TransactionIF |
txn
|
Constructor Summary | |
---|---|
AbstractROPersistent()
|
|
AbstractROPersistent(TransactionIF txn)
|
Method Summary | |
---|---|
IdentityIF |
_p_getIdentity()
INTERNAL: Returns the identity of the object. |
TransactionIF |
_p_getTransaction()
INTERNAL: Returns the transaction that is responible for managing the object. |
java.lang.Object |
_p_getType()
INTERNAL: Returns the object.type. |
void |
_p_setIdentity(IdentityIF identity)
INTERNAL: Sets the identity of the object. |
void |
_p_setTransaction(TransactionIF txn)
INTERNAL: Sets the transaction that is responible for managing the object. |
java.lang.String |
_p_toString()
|
void |
clearAll()
|
void |
detach()
|
protected java.lang.Object |
executeQuery(java.lang.String name,
java.lang.Object[] params)
|
boolean |
isDeleted()
|
boolean |
isDirty()
|
boolean |
isDirty(int field)
|
boolean |
isDirtyFlushed()
|
boolean |
isDirtyFlushed(int field)
|
boolean |
isInDatabase()
|
boolean |
isLoaded(int field)
|
boolean |
isNewObject()
|
boolean |
isPersistent()
|
boolean |
isTransient()
|
protected java.util.Collection |
loadCollectionField(int field)
|
protected java.lang.Object |
loadField(int field)
INTERNAL: Called when the instance requests the value of the specified field value. |
protected java.lang.Object |
loadFieldNoCheck(int field)
|
java.lang.Object |
loadValue(FieldInfoIF finfo)
|
int |
nextDirty(int start)
|
int |
nextDirty(int start,
int end)
|
int |
nextDirtyFlushed(int start)
|
int |
nextDirtyFlushed(int start,
int end)
|
void |
setDeleted(boolean deleted)
|
void |
setDirty(int field,
boolean dirty)
|
void |
setDirtyFlushed(int field,
boolean dirty)
|
void |
setInDatabase(boolean inDatabase)
|
void |
setNewObject(boolean newObject)
|
void |
setPersistent(boolean persistent)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.ontopia.persistence.proxy.PersistentIF |
---|
_p_getFieldCount |
Field Detail |
---|
protected IdentityIF id
protected TransactionIF txn
Constructor Detail |
---|
public AbstractROPersistent()
public AbstractROPersistent(TransactionIF txn)
Method Detail |
---|
public IdentityIF _p_getIdentity()
PersistentIF
_p_getIdentity
in interface PersistentIF
public java.lang.Object _p_getType()
PersistentIF
_p_getType
in interface PersistentIF
public void _p_setIdentity(IdentityIF identity)
PersistentIF
_p_setIdentity
in interface PersistentIF
public TransactionIF _p_getTransaction()
PersistentIF
_p_getTransaction
in interface PersistentIF
public void _p_setTransaction(TransactionIF txn)
PersistentIF
_p_setTransaction
in interface PersistentIF
protected java.lang.Object loadField(int field)
protected java.lang.Object loadFieldNoCheck(int field) throws IdentityNotFoundException
IdentityNotFoundException
protected java.util.Collection loadCollectionField(int field)
public void detach()
detach
in interface PersistentIF
protected java.lang.Object executeQuery(java.lang.String name, java.lang.Object[] params)
public boolean isTransient()
isTransient
in interface PersistentIF
public boolean isNewObject()
isNewObject
in interface PersistentIF
public void setNewObject(boolean newObject)
setNewObject
in interface PersistentIF
public boolean isInDatabase()
isInDatabase
in interface PersistentIF
public void setInDatabase(boolean inDatabase)
setInDatabase
in interface PersistentIF
public boolean isPersistent()
isPersistent
in interface PersistentIF
public void setPersistent(boolean persistent)
setPersistent
in interface PersistentIF
public boolean isDeleted()
isDeleted
in interface PersistentIF
public void setDeleted(boolean deleted)
setDeleted
in interface PersistentIF
public boolean isLoaded(int field)
isLoaded
in interface PersistentIF
public java.lang.Object loadValue(FieldInfoIF finfo)
loadValue
in interface PersistentIF
public boolean isDirty()
isDirty
in interface PersistentIF
public boolean isDirty(int field)
isDirty
in interface PersistentIF
public int nextDirty(int start)
nextDirty
in interface PersistentIF
public int nextDirty(int start, int end)
nextDirty
in interface PersistentIF
public void setDirty(int field, boolean dirty)
public boolean isDirtyFlushed()
public boolean isDirtyFlushed(int field)
public int nextDirtyFlushed(int start)
public int nextDirtyFlushed(int start, int end)
public void setDirtyFlushed(int field, boolean dirty)
setDirtyFlushed
in interface PersistentIF
public void clearAll()
clearAll
in interface PersistentIF
public java.lang.String _p_toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |