|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.9.1) E67681-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jbo.server.RowImpl
oracle.jbo.server.ViewRowImpl
oracle.jbo.server.ProgrammaticViewRowImpl
public class ProgrammaticViewRowImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from class oracle.jbo.server.ViewRowImpl |
---|
ViewRowImpl.PostState, ViewRowImpl.RowState |
Field Summary | |
---|---|
protected java.lang.Object |
mDataProvider |
protected int |
mSetAttrIndex |
protected java.lang.Object |
mSetAttrVal |
Fields inherited from class oracle.jbo.server.ViewRowImpl |
---|
CURRENT_VERSION, ORIGINAL_VERSION, XML_POSTSTATE_REMOVE, XML_POSTSTATE_TAG |
Fields inherited from class oracle.jbo.server.RowImpl |
---|
PROPERTY_SERVICE_RESOURCE_CONTAINER_PATH |
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 |
Fields inherited from interface oracle.jbo.common.InternalViewRowInterface |
---|
PNAME_CONTEXTUAL_HINT_SUFFIX, PNAME_DYNACC_IS_FOR_LOV, PNAME_DYNACC_STRUCTURE_DEF_NAME |
Fields inherited from interface oracle.jbo.XMLInterface |
---|
XML_IGNORE_DEPTH_COUNT, XML_OPT_ALL_ROWS, XML_OPT_ASSOC_CONSISTENT, XML_OPT_CHANGES_ONLY, XML_OPT_LIMIT_RANGE, XML_PASSIVATION_USE |
Constructor Summary | |
---|---|
ProgrammaticViewRowImpl() |
Method Summary | |
---|---|
protected java.lang.Object |
convertToAttributeType(AttributeDefImpl attrDef, java.lang.Class javaTypeClass, java.lang.Object val) User should override this API to provide custom implementation for conversion of value from sourceType to JavaType |
protected java.lang.Object |
convertToSourceType(ViewAttributeDefImpl vad, java.lang.String sourceType, java.lang.Object val) User should override this API to provide custom implementation for conversion of value from JavaType to sourceType |
protected void |
copyFrom(ViewRowImpl other) For subclasses to implement copy of transient members in the subclass This method is invoked when a new row is created with attributes copied from the other row for move into a new collection in makeRowCopy. |
protected void |
create(AttributeList nvp) Initialization method to be over-ridden in generated code for custom defaulting. |
protected java.lang.Object |
createRowData(java.util.HashMap attrNameValueMap) User should override this API to initializing the dataProvider for newly created row. |
void |
dump() |
boolean |
equals(java.lang.Object other) Tests if the specified value is equal to this ViewRowImpl object. |
protected java.lang.Object |
getAttributeInternal(int index) Gets the value of the attribute by index. |
protected java.lang.Object |
getAttributeInternalDelegation(int index) |
java.lang.Object |
getDataProvider() |
protected void |
initDataProvider(java.lang.Object bean) |
protected boolean |
isAttributeRSI(ViewAttributeDefImpl vad) |
protected java.lang.StringBuffer |
logCustomRowState() Override this method to log custom information of the ProgrammaticViewRowImpl, before f/w dump the row's dataProvider and corresponding detail collection info. |
void |
setAttribute(int index, java.lang.Object val) Sets an attribute. |
protected void |
setAttributeInternal(int index, java.lang.Object val) This is an "inner" accessor for an attribute and does not call out to the getXXX() method. |
void |
setTransientAttributeValue(ViewAttributeDefImpl vad, java.lang.Object val) Deprecated. |
protected void |
setTransientAttributeValueInternal(ViewAttributeDefImpl vad, java.lang.Object val) |
protected boolean |
updateDataProvider(java.lang.Object rowDataProvider, ViewAttributeDefImpl attrDef, java.lang.Object newValue) |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.Object mDataProvider
protected transient java.lang.Object mSetAttrVal
protected transient int mSetAttrIndex
Constructor Detail |
---|
public ProgrammaticViewRowImpl()
Method Detail |
---|
protected java.lang.Object createRowData(java.util.HashMap attrNameValueMap)
attrValues
- - Name-Value Map of attributes whose values will be set on newly created row. This map also include the default values specified on ViewAttributesprotected java.lang.Object convertToSourceType(ViewAttributeDefImpl vad, java.lang.String sourceType, java.lang.Object val)
def
- - AttributeDef whose value we are trying to convertcolumnType
- - COLUMNTYPE for this attributevalue
- - Value that we are trying to convertprotected java.lang.Object convertToAttributeType(AttributeDefImpl attrDef, java.lang.Class javaTypeClass, java.lang.Object val)
def
- - AttributeDef whose value we are trying to convertjavaTypeClass
- - javaType classvalue
- - Value that we are trying to convertprotected void initDataProvider(java.lang.Object bean)
protected void create(AttributeList nvp)
ViewRowImpl
This method invokes create(AttributeList)
on each of the "new" entities that make up this View Row.
The attribute list nvp is simply passed to the new entity rows that make up this View Row.
Note: the names in the attribute list are not transformed into entity-relative names hoping that the caller has done so already. If not, the entity's create() method might fail.
create
in class ViewRowImpl
nvp
- the list of attributtes.public final java.lang.Object getDataProvider()
public final void dump()
protected java.lang.StringBuffer logCustomRowState()
protected boolean isAttributeRSI(ViewAttributeDefImpl vad)
public void setAttribute(int index, java.lang.Object val)
ViewRowImpl
This method performs a type-check on the value, so that it matches the Java type of the attribute.
setAttribute
in interface AttributeList
setAttribute
in class ViewRowImpl
index
- the index of the attribute.val
- the new value.protected void setAttributeInternal(int index, java.lang.Object val)
ViewRowImpl
This method also does not perform any type-check for the value's java type and assumes that the value-type is same as the java-type for this attribute.
setAttributeInternal
in class ViewRowImpl
index
- The index of the attribute.val
- The value.protected boolean updateDataProvider(java.lang.Object rowDataProvider, ViewAttributeDefImpl attrDef, java.lang.Object newValue)
rowDataProvider
- - Object which represents this Row's dataattrDef
- - AttributeDef whose value is going to updatenewValue
- - NewValue for attrDefprotected java.lang.Object getAttributeInternal(int index)
ViewRowImpl
Note that this is an "inner" accessor for an attribute and does not callout to the generated getXXX() method on a subclass of a ViewRowImpl. getAttribute()
methods are the "outer" methods that callout to a subclass's getXXX() method where XXX is the name of the attribute.
getAttributeInternal
in class ViewRowImpl
index
- the index of the attribute.protected java.lang.Object getAttributeInternalDelegation(int index)
public boolean equals(java.lang.Object other)
ViewRowImpl
equals
in class ViewRowImpl
other
- the object to which the ViewRowImpl should be compared.protected void setTransientAttributeValueInternal(ViewAttributeDefImpl vad, java.lang.Object val)
public void setTransientAttributeValue(ViewAttributeDefImpl vad, java.lang.Object val)
setTransientAttributeValue
in class ViewRowImpl
protected void copyFrom(ViewRowImpl other)
ViewRowImpl
copyFrom
in class ViewRowImpl
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.9.1) E67681-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |