|
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 |
java.lang.Objectoracle.jbo.server.RowImpl
public abstract class RowImpl
Base class for other row types, such as Entity and View
Field Summary | |
---|---|
static java.lang.Class |
CLASS_INSTANCE
|
Fields inherited from interface oracle.jbo.JboReservedVarNames |
---|
RESERVED_VAR_AGG_AVG, RESERVED_VAR_AGG_COUNT, RESERVED_VAR_AGG_MAX, RESERVED_VAR_AGG_MIN, RESERVED_VAR_AGG_SUM, RESERVED_VAR_AGGVAL_PREFIX, RESERVED_VAR_STRUCTURE_DEF |
Fields inherited from interface oracle.jbo.expr.JIReservedVarNames |
---|
RESERVED_VAR_VALUE |
Constructor Summary | |
---|---|
RowImpl()
|
|
RowImpl(int initialSize)
What's the current state of this row, i.e. |
Method Summary | |
---|---|
protected void |
addListBindingsForAttribute(List lbs,
List attrNames,
java.lang.String attrName,
ArrayList derivedNames,
ArrayList al)
Internal: Applications should not use this method. |
protected void |
clearAttributeException(int index)
Cleans any exception of an attribute of the given name was set earlier and threw an exception which was cached as the transaction is in deferred mode. |
protected void |
clearAttributeException(java.lang.String name)
Cleans any exception of an attribute of the given name was set earlier and threw an exception which was cached as the transaction is in deferred mode. |
protected void |
doSetAttribute(int index,
java.lang.Object value)
|
protected void |
doSetAttribute(java.lang.String name,
java.lang.Object value)
|
protected int |
findAttrAndGetIndex(java.lang.String name)
|
ViewAccessorDef |
findViewAccessorDef(java.lang.String name)
This method returns ViewAccessorDef with the specified name. |
protected ArrayList |
getAllExceptions()
|
java.lang.Object |
getAttribute(int index)
Get an attribute value by index |
java.lang.Object |
getAttribute(java.lang.String name)
Get an attribute value by name |
int |
getAttributeCount()
Gets the # of attributes in this row |
int |
getAttributeIndexOf(java.lang.String name)
Gets the index of the named attribute |
protected abstract java.lang.Object |
getAttributeInternal(int index)
Gets the attribute value by index. |
java.lang.String |
getAttributeNameOf(int index)
Gets the name of the specified attribute index |
java.lang.String[] |
getAttributeNames()
Gets a list of the names of all attributes |
java.lang.Object[] |
getAttributeValues()
Gets a list of the values of all attributes |
AttributeDefImpl[] |
getChangedAttributeDefImpls()
Get an array of Attribute indices that would participate in an UPDATE statement |
protected java.lang.String[] |
getCombinedAttrNames(java.lang.Object[] attrNames,
List derivedNames)
This method combines the given attribute names with the derived attribute names It throws an exception if the derived attribute names overlap the given names This would happen in a case were the user or a program attempts to set a couple of attributes but the associated list bindings will override at least one of them. |
java.lang.Object |
getEffectiveDate()
Simple String representation of this row. |
int |
getEffectiveDateMode()
Get the current effective date mode. |
java.lang.Object |
getExprVarVal(java.lang.String varName)
|
AttributeDefImpl[] |
getInsertAttributeDefImpls()
Get an array of Attribute indices that would participate in an INSERT statement |
abstract Key |
getKey()
Returns the row's key. |
protected abstract RowSetIterator |
getListBindingRSI(ListBindingDef def)
|
protected abstract List |
getListBindings()
|
static java.lang.String |
getStateAsString(int state)
Utility function to convert the STATE to a string |
abstract StructureDef |
getStructureDef()
Returns the structure of the row. |
protected abstract void |
handleListBindingMismatch(ListBinding lb,
Map valuesMap,
RowIterator listRSI)
|
protected abstract boolean |
hasListBindings()
|
protected void |
init(int initialSize)
|
abstract boolean |
isAttributeUpdateable(int index)
Tests if an attribute is updateable. |
abstract boolean |
isDead()
Tests this row to determine if it is dead |
boolean |
isDirty(int i)
|
protected boolean |
isRefreshRequired(ViewAccessorDef va,
java.lang.String[] attrNames)
Check if a view accessor should be refreshed when a list of attribute get changed. |
protected boolean |
isRefreshRequired(ViewAccessorDef va,
java.lang.String[] attrNames,
java.lang.Object[] attrValues)
Check if a view accessor should be refreshed when a list of attribute get changed. |
protected boolean |
isRefreshRequired(ViewAccessorDef va,
java.lang.String[] attrNames,
java.lang.Object[] attrValues,
RowSet rs)
|
void |
lock()
Locks the row in the corresponding database table |
protected void |
markViewAccessorsDirty(java.lang.String[] attrNames)
|
protected abstract void |
populateAttribute(int index,
java.lang.Object value)
Populates the attribute at the given index with the given attribute value. |
abstract void |
refresh(int refreshMode)
Refreshes the row's attributes with values from database. |
protected void |
refreshViewAccessor(ViewAccessorDef va)
|
protected void |
refreshViewAccessor(ViewAccessorDef va,
Map attrNameValues)
|
protected void |
refreshViewAccessor(ViewAccessorDef va,
Map attrNameValues,
RowSet rs)
|
abstract void |
remove()
Marks the row as removed and removes it from row iterators. |
abstract void |
removeAndRetain()
Removes the row from the collection and then retain it for insertion into another location. |
abstract void |
removeFromCollection()
Removes the row from the collection. |
protected void |
reserve(AttributeDefImpl[] attrDefs)
Reserves space in the underlying storage for all the attributes in this row by inserting appropriate keys and null values |
void |
setAttribute(int index,
java.lang.Object value)
Set an attribute to the given value |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Set an attribute to the given value |
void |
setEffectiveDateMode(int mode)
Set the Effective Date mode in which the row updates need to be carried out. |
void |
setExprVarVal(java.lang.String varName,
java.lang.Object val)
|
protected void |
setInMultiSetter(List al)
|
abstract void |
validate()
Validates the row |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.jbo.Row |
---|
setAttributeValues, setNewRowState |
Field Detail |
---|
public static final java.lang.Class CLASS_INSTANCE
Constructor Detail |
---|
public RowImpl(int initialSize)
public RowImpl()
Method Detail |
---|
protected void init(int initialSize)
public boolean isDirty(int i)
public abstract Key getKey()
getKey
in interface Row
public abstract StructureDef getStructureDef()
getStructureDef
in interface Row
public abstract boolean isAttributeUpdateable(int index)
isAttributeUpdateable
in interface Row
index
- the index of the attribute.
false
if the attribute is read-only and true
if it is
updateable.public abstract boolean isDead()
isDead
in interface Row
public void lock()
lock
in interface Row
public abstract void refresh(int refreshMode)
refreshMode
should be
a combination of REFRESH_...
. See REFRESH_...
constants for
further information.
refresh
in interface Row
refreshMode
- the refresh mode.public abstract void remove()
remove
in interface Row
public abstract void removeAndRetain()
This method differs from
in that it just removes the row from
the collection. It does not remove the underlying Entity row(s) or database row(s).
remove()
This method also differs from
in that after the
row is removed from the collection, it can be inserted back into the collection at another
location.
removeFromCollection()
removeAndRetain
in interface Row
public abstract void removeFromCollection()
This method differs from
in that it just removes the row from
the collection. It does not remove the underlying Entity row(s) or database row(s). However,
once the row is removed, it cannot be used any more. If you want to remove the row from the
collection and insert it elsewhere, call remove()
.
removeAndRetain()
removeFromCollection
in interface Row
public abstract void validate()
validate
in interface Row
EntityImpl.validate()
,
ViewRowImpl.validate()
public java.lang.Object getAttribute(int index)
getAttribute
in interface AttributeList
index
- an integer in the range 0
to getAttributeCount() - 1
.
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface AttributeList
name
- an attribute name.
public int getAttributeCount()
getAttributeCount
in interface AttributeList
public int getAttributeIndexOf(java.lang.String name)
getAttributeIndexOf
in interface AttributeList
name
- the attribute's name.
public java.lang.String getAttributeNameOf(int index)
index
- 0-based index
public java.lang.String[] getAttributeNames()
getAttributeNames
in interface AttributeList
public java.lang.Object[] getAttributeValues()
getAttributeValues
in interface AttributeList
public void setAttribute(int index, java.lang.Object value)
setAttribute
in interface AttributeList
index
- 0-based index of attributevalue
- New value to assignprotected void doSetAttribute(int index, java.lang.Object value)
protected void doSetAttribute(java.lang.String name, java.lang.Object value)
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface AttributeList
name
- Name of attributevalue
- New value for attributepublic AttributeDefImpl[] getChangedAttributeDefImpls()
public AttributeDefImpl[] getInsertAttributeDefImpls()
protected void reserve(AttributeDefImpl[] attrDefs)
public java.lang.Object getEffectiveDate()
protected abstract java.lang.Object getAttributeInternal(int index)
index
- attribute index
public static java.lang.String getStateAsString(int state)
Row
protected abstract List getListBindings()
protected abstract RowSetIterator getListBindingRSI(ListBindingDef def)
protected abstract boolean hasListBindings()
protected abstract void handleListBindingMismatch(ListBinding lb, Map valuesMap, RowIterator listRSI)
public int getEffectiveDateMode()
Row
getEffectiveDateMode
in interface Row
Row.setEffectiveDateMode(int)
public void setEffectiveDateMode(int mode)
Row
setEffectiveDateMode
in interface Row
mode
- One of the effective date mode constants.Row.EFFDT_NONE_MODE
,
Row.EFFDT_UPDATE_CORRECTION
,
Row.EFFDT_UPDATE_MODE
,
Row.EFFDT_UPDATE_OVERRIDE_MODE
,
Row.EFFDT_UPDATE_CHANGE_INSERT_MODE
,
Row.EFFDT_DELETE_MODE
,
Row.EFFDT_DELETE_NEXT_CHANGE_MODE
,
Row.EFFDT_DELETE_FUTURE_CHANGE_MODE
,
Row.EFFDT_DELETE_ZAP_MODE
protected ArrayList getAllExceptions()
protected abstract void populateAttribute(int index, java.lang.Object value)
index
- an attribute position.value
- the value to be assigned to the attribute.protected void clearAttributeException(int index)
protected final java.lang.String[] getCombinedAttrNames(java.lang.Object[] attrNames, List derivedNames)
attrNames
- list of attribute names to changederivedNames
- list of attribute names that are derived from the listbindings
associated with the attributes to changeprotected void addListBindingsForAttribute(List lbs, List attrNames, java.lang.String attrName, ArrayList derivedNames, ArrayList al)
protected final void setInMultiSetter(List al)
protected int findAttrAndGetIndex(java.lang.String name)
public java.lang.Object getExprVarVal(java.lang.String varName)
getExprVarVal
in interface ExprValueSupplier
public void setExprVarVal(java.lang.String varName, java.lang.Object val)
setExprVarVal
in interface ExprValueSupplier
protected void clearAttributeException(java.lang.String name)
protected boolean isRefreshRequired(ViewAccessorDef va, java.lang.String[] attrNames)
va
- The View Accessor to be checked.attrNames
- The array of changed attribute.
protected boolean isRefreshRequired(ViewAccessorDef va, java.lang.String[] attrNames, java.lang.Object[] attrValues)
va
- The View Accessor to be checked.attrNames
- The array of changed attribute.attrValues
- The array of values for the changed attribute if values are not in the current row.
protected boolean isRefreshRequired(ViewAccessorDef va, java.lang.String[] attrNames, java.lang.Object[] attrValues, RowSet rs)
protected void refreshViewAccessor(ViewAccessorDef va)
protected void refreshViewAccessor(ViewAccessorDef va, Map attrNameValues)
protected void refreshViewAccessor(ViewAccessorDef va, Map attrNameValues, RowSet rs)
public ViewAccessorDef findViewAccessorDef(java.lang.String name)
ViewAccessorDef
with the specified name.
name
- The name of the ViewAccessorDef
.
ViewAccessorDef
protected void markViewAccessorsDirty(java.lang.String[] attrNames)
|
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 |