|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Entity
Field Summary | |
---|---|
static byte |
STATUS_DEAD
Indicates that the Entity Object is a new row that has been discarded. |
static byte |
STATUS_DELETED
Indicates that the Entity Object's row has been deleted. |
static byte |
STATUS_MODIFIED
Indicates that the Entity Object's row is changed. |
static byte |
STATUS_UNMODIFIED
Indicates that the Entity Object's row is unchanged or has been updated. |
Method Summary | |
---|---|
void |
addTransactionPostListener(TransactionPostListener listener)
|
void |
addTransactionPostListenerNoCheck(TransactionPostListener listener)
|
byte |
getEntityState()
Gets this Entity Object's current entity-state. |
byte |
getPostState()
Gets this Entity Object's current post-state. |
Key |
getPrimaryKey()
Returns the primay key for this Entity Object's row. |
boolean |
isValid()
Returns the state of this Entity Object's validity flag. |
void |
removeTransactionPostListener(TransactionPostListener listener)
|
void |
revert()
Reverts this Entity Object's row to the database's values. |
Methods inherited from interface oracle.jbo.Row |
---|
getEffectiveDateMode, getKey, getStructureDef, isAttributeUpdateable, isDead, lock, refresh, remove, removeAndRetain, removeFromCollection, setAttributeValues, setEffectiveDateMode, setNewRowState, validate |
Methods inherited from interface oracle.jbo.AttributeList |
---|
getAttribute, getAttribute, getAttributeCount, getAttributeIndexOf, getAttributeNames, getAttributeValues, setAttribute, setAttribute |
Methods inherited from interface oracle.jbo.server.ValidationListener |
---|
validate |
Methods inherited from interface oracle.jbo.server.TransactionListener |
---|
afterCommit, afterRemove, afterRollback, beforeCommit, beforeRollback, isTransientTransactionListener |
Methods inherited from interface oracle.jbo.server.ValidationManager |
---|
addToValidationListeners, validate |
Methods inherited from interface oracle.jbo.server.TransactionPostListener |
---|
getTransPostHandle, isPostedToDB, isTransientTransactionPostListener, postChanges, setPostedToDB, setTransPostHandle |
Field Detail |
---|
static final byte STATUS_UNMODIFIED
static final byte STATUS_MODIFIED
static final byte STATUS_DELETED
static final byte STATUS_DEAD
Method Detail |
---|
boolean isValid()
An Entity Object is marked valid if it has been validated and not subsequently modified or set invalid.
isValid
in interface ValidationListener
true
if this Entity Object has been validated.Key getPrimaryKey()
Typically, this method should not be overridden.
byte getEntityState()
byte getPostState()
STATUS_UNMODIFIED
- if this Entity Object has been queried from the
database and is unchanged, or if it has been posted to the database.STATUS_MODIFIED
- if this Entity Object has been queried from the database
and has changed.STATUS_NEW
- if this Entity Object is new and not yet posted to the
database.STATUS_DELETED
- if this Entity Object has been marked for deletion.STATUS_DEAD
- if this Entity Object is new, but has been deleted.
void revert()
Calling this method will either reset the attribute values to their database values or revert
them to their default values. If the Entity Object is posted, all the attributes revert to the
to unread state, so that a subsequent
EntityImpl.getAttribute(int index)
call will refresh all attributes
from the database.
EntityImpl.getAttribute(int index)
void addTransactionPostListener(TransactionPostListener listener)
void addTransactionPostListenerNoCheck(TransactionPostListener listener)
void removeTransactionPostListener(TransactionPostListener listener)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |