public abstract class AbstractRWPersistent extends Object implements PersistentIF
| Modifier and Type | Field and Description |
|---|---|
protected IdentityIF |
id |
protected static int[] |
MASKS |
protected TransactionIF |
txn |
Object[] |
values |
| Constructor and Description |
|---|
AbstractRWPersistent() |
AbstractRWPersistent(TransactionIF txn) |
| Modifier and Type | Method and Description |
|---|---|
IdentityIF |
_p_getIdentity()
INTERNAL: Returns the identity of the object.
|
TransactionIF |
_p_getTransaction()
INTERNAL: Returns the transaction that is responible for managing
the object.
|
Class<?> |
_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.
|
String |
_p_toString() |
void |
clearAll() |
abstract void |
detach() |
protected void |
detachCollectionField(int field) |
protected void |
detachField(int field) |
protected Object |
executeQuery(String name,
Object[] params) |
protected <F> F |
getValue(int field) |
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 <F> Collection<F> |
loadCollectionField(int field) |
protected <F> F |
loadField(int field)
INTERNAL: Called when the instance requests the initialization of
the specified field value.
|
protected <F> F |
loadFieldNoCheck(int field) |
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) |
protected void |
setValue(int field,
Object value) |
abstract void |
syncAfterMerge(IdentityIF source,
IdentityIF target) |
protected void |
syncFieldsAfterMerge(IdentityIF source,
IdentityIF target,
int... fields) |
protected void |
unsetValue(int field,
Object value) |
protected void |
valueAdded(int field,
Object value,
boolean dchange) |
protected void |
valueChanged(int field,
Object value,
boolean dchange)
INTERNAL: Called when a field value has been changed.
|
protected void |
valueRemoved(int field,
Object value,
boolean dchange) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait_p_getFieldCountprotected IdentityIF id
protected TransactionIF txn
protected static final int[] MASKS
public Object[] values
public AbstractRWPersistent()
public AbstractRWPersistent(TransactionIF txn)
public IdentityIF _p_getIdentity()
PersistentIF_p_getIdentity in interface PersistentIFpublic Class<?> _p_getType()
PersistentIF_p_getType in interface PersistentIFpublic void _p_setIdentity(IdentityIF identity)
PersistentIF_p_setIdentity in interface PersistentIFpublic TransactionIF _p_getTransaction()
PersistentIF_p_getTransaction in interface PersistentIFpublic void _p_setTransaction(TransactionIF txn)
PersistentIF_p_setTransaction in interface PersistentIFpublic abstract void syncAfterMerge(IdentityIF source, IdentityIF target)
protected void syncFieldsAfterMerge(IdentityIF source, IdentityIF target, int... fields)
protected <F> F loadField(int field)
protected <F> F loadFieldNoCheck(int field)
throws IdentityNotFoundException
IdentityNotFoundExceptionprotected <F> Collection<F> loadCollectionField(int field)
public abstract void detach()
detach in interface PersistentIFprotected void detachField(int field)
protected void detachCollectionField(int field)
protected void valueChanged(int field,
Object value,
boolean dchange)
protected void valueAdded(int field,
Object value,
boolean dchange)
protected void valueRemoved(int field,
Object value,
boolean dchange)
public boolean isTransient()
isTransient in interface PersistentIFpublic boolean isNewObject()
isNewObject in interface PersistentIFpublic void setNewObject(boolean newObject)
setNewObject in interface PersistentIFpublic boolean isInDatabase()
isInDatabase in interface PersistentIFpublic void setInDatabase(boolean inDatabase)
setInDatabase in interface PersistentIFpublic boolean isPersistent()
isPersistent in interface PersistentIFpublic void setPersistent(boolean persistent)
setPersistent in interface PersistentIFpublic boolean isDeleted()
isDeleted in interface PersistentIFpublic void setDeleted(boolean deleted)
setDeleted in interface PersistentIFpublic boolean isLoaded(int field)
isLoaded in interface PersistentIFpublic Object loadValue(FieldInfoIF finfo)
loadValue in interface PersistentIFprotected <F> F getValue(int field)
protected void setValue(int field,
Object value)
protected void unsetValue(int field,
Object value)
public boolean isDirty()
isDirty in interface PersistentIFpublic boolean isDirty(int field)
isDirty in interface PersistentIFpublic int nextDirty(int start)
nextDirty in interface PersistentIFpublic int nextDirty(int start,
int end)
nextDirty in interface PersistentIFpublic 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 PersistentIFpublic void clearAll()
clearAll in interface PersistentIFpublic String _p_toString()