Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

oracle.apps.fnd.applcore.oaext.model
Class OAViewRowImpl

java.lang.Object
  extended by oracle.jbo.server.RowImpl
      extended by oracle.jbo.server.ViewRowImpl
          extended by oracle.apps.fnd.applcore.oaext.model.OAViewRowImpl
All Implemented Interfaces:
oracle.jbo.AttributeList, oracle.jbo.common.xml.XmlSerializable, oracle.jbo.expr.JIReservedVarNames, oracle.jbo.ExprScriptSupplier, oracle.jbo.ExprValueSupplier, oracle.jbo.ExprWrappable, oracle.jbo.JboReservedVarNames, oracle.jbo.Row, oracle.jbo.script.ExprScriptRunner, oracle.jbo.VariableManagerOwnerBase, oracle.jbo.XMLInterface
Direct Known Subclasses:
ApplicationPVORowImpl, ApplicationVORowImpl, ApplTaxonomyApplicationsVORowImpl, ApplTaxonomyComponentsVORowImpl, ApplTaxonomyDeliveryRootNodeVORowImpl, ApplTaxonomyEntAppMapVORowImpl, ApplTaxonomyFullDeliveryPVORowImpl, ApplTaxonomyFullDeliveryVORowImpl, ApplTaxonomyFullNameVORowImpl, ApplTaxonomyHierarchyFullVORowImpl, ApplTaxonomyHierarchyVORowImpl, ApplTaxonomyLanguageVORowImpl, ApplTaxonomyNodeComponentsVORowImpl, ApplTaxonomyRfPVORowImpl, ApplTaxonomyRowFlattenSeeddDataPVORowImpl, ApplTaxonomySeedDataVORowImpl, ApplTaxonomyTranslationVORowImpl, ApplTaxonomyVORowImpl, AttachmentsVORowImpl, AttributesVORowImpl, ChildTableVORowImpl, ColumnVORowImpl, CreateConditionVORowImpl, CurrencyPVORowImpl, CurrencyVORowImpl, DependencySetVORowImpl, DescriptiveFlexfieldContextVORowImpl, DescriptiveFlexfieldGlobalSegmentVORowImpl, DescriptiveFlexfieldRegistrationUIVORowImpl, DescriptiveFlexfieldSecondaryColumnUsageRegUIVORowImpl, DescriptiveFlexfieldSecondaryTableUsageRegUIVORowImpl, DescriptiveFlexfieldSecondaryUsageRegUIVORowImpl, DescriptiveFlexfieldSegmentVORowImpl, DescriptiveFlexfieldTableUsageRegUIVORowImpl, DescriptiveFlexfieldUsageRegUIVORowImpl, DFFUsagesDeploymentVORowImpl, DocSequenceAssignmentsVORowImpl, EFFDeploymentCategoriesVORowImpl, EFFDeploymentCategoryContextsVORowImpl, EFFDeploymentContextUsagesRowImpl, EFFDeploymentDescriptiveFlexfieldVORowImpl, EFFDeploymentEntityUsagesVORowImpl, EFFDeploymentFlexFieldUsagesVORowImpl, EFFDeploymentFlexfieldVORowImpl, EFFDeploymentPagesVORowImpl, EFFDeploymentPageTaskFlowsRowImpl, EFFDeploymentTableUsagesVORowImpl, EFFEntityUsagesCatCtxtDeploymentVORowImpl, EFFEntityUsagesPagesDeploymentVORowImpl, EntAppLibUsageMapVORowImpl, FilterCriteriaItemVORowImpl, FlexfieldLVViewRowImpl, FlexfieldViewRowImpl, FndApplTaxEntAppMapVORowImpl, FndApplTaxonomyRfVORowImpl, FndAttachedDocumentsVORowImpl, FndAuditWebAppObjectsVORowImpl, FndCalDayPVORowImpl, FndCalMonthVORowImpl, FndCalQuarterVORowImpl, FndCalWeekVORowImpl, FndCalYearVORowImpl, FndDemoCityVORowImpl, FndDemoContinentVORowImpl, FndDemoCountryVORowImpl, FndDemoDeptEmpVORowImpl, FndDemoDeptVORowImpl, FndDemoEmpVORowImpl, FndDemoLabelVORowImpl, FndDemoStateVORowImpl, FndDeploymentsVORowImpl, FndFormFunctionsVORowImpl, FndGrantsSBChangesVORowImpl, FndGrantsUnSecuredVORowImpl, FndGrantsVORowImpl, FndKfEssFiltersPVORowImpl, FndLabelUIVORowImpl, FndLabelVORowImpl, FndMapAttachDocsVORowImpl, FndMapAttachEntityVORowImpl, FndMapCurrenciesVORowImpl, FndMapFlexDffColumnsVORowImpl, FndMapFlexDffVORowImpl, FndMapFlexKffColumnsVORowImpl, FndMapFlexKffVORowImpl, FndMapIndustriesVORowImpl, FndMapIsoLanguagesVORowImpl, FndMapLanguagesVORowImpl, FndMapLookupsVORowImpl, FndMapNaturalLanguagesVORowImpl, FndMapSetidRefGroupsVORowImpl, FndMapTerritoriesVORowImpl, FndMapTimezonesVORowImpl, FndMapTreeNodeVORowImpl, FndMenuEntriesVORowImpl, FndMenusVORowImpl, FndNodeVORowImpl, FndObjectInstanceSetsVORowImpl, FndObjectISSBChangesVORowImpl, FndObjectsSBChangesVORowImpl, FndObjectsUnSecuredVORowImpl, FndObjectsVORowImpl, FndRawGeneratorVORowImpl, FndSessionUsersVORowImpl, FndTreeAuditJobVORowImpl, FndTreeDataSourceParamsVORowImpl, FndTreeFlatteningHistoryVORowImpl, FndTreeLabelVORowImpl, FndTreeLogParamVORowImpl, FndTreeLogVORowImpl, FndTreeNodeCfVORowImpl, FndTreeNodeRfVORowImpl, FndTreeNodeVORowImpl, FndTreeStructureSummaryVORowImpl, FndTreeStructureVORowImpl, FndTreeVersionAuditResultVORowImpl, FndTreeVersionVORowImpl, FndTreeVORowImpl, FndTsDataSourceParamsVORowImpl, FndTsDataSourceRelVORowImpl, FndTsDataSourceVORowImpl, GlobalAuditResultVORowImpl, GlobalAuditTreeVersionResultVORowImpl, GlobalDataSourceParamVORowImpl, GlobalDataSourceVORowImpl, GlobalParameterVORowImpl, GlobalTreeLabelVORowImpl, GlobalTreeStructureLabelVORowImpl, GlobalTreeStructureVORowImpl, GlobalTreeVersionVORowImpl, GlobalTreeVORowImpl, GroupSpaceDetailVORowImpl, GroupSpaceMemberVORowImpl, IndustryInTerritoryPVORowImpl, IndustryInTerritoryVORowImpl, IndustryPVORowImpl, IndustryVORowImpl, IsoLanguagePVORowImpl, IsoLanguageVORowImpl, KeyFlexfieldSegmentInstanceVORowImpl, KFFHierFilterVORowImpl, KFFUsagesDeploymentVORowImpl, LanguagePVORowImpl, LanguageVORowImpl, LanguageVORowImpl, LibraryVORowImpl, MasterParameterVORowImpl, MessageRuntimeTestVORowImpl, MessageTokenVORowImpl, MessageVORowImpl, NaturalLanguagePVORowImpl, NaturalLanguageVORowImpl, ObjectColumnsVORowImpl, OperatorsVORowImpl, ParentTableVORowImpl, PillarInstanceVORowImpl, PillarMappingVORowImpl, PillarTopologyOptionsVORowImpl, ProductFamilyDomainVORowImpl, ProfileCategoryOptionVORowImpl, ProfileCategoryVORowImpl, ProfileHierarchyLevelVORowImpl, ProfileHierarchyVORowImpl, ProfileLevelSequenceVORowImpl, ProfileLevelVORowImpl, ProfileOptionExptVORowImpl, ProfileOptionLevelValueVORowImpl, ProfileOptionLevelVORowImpl, ProfileOptionValuesExptVORowImpl, ProfileOptionValuesForProductsVORowImpl, ProfileOptionValuesForUsersVORowImpl, ProfileOptionValuesUIVORowImpl, ProfileOptionValueVORowImpl, ProfileOptionVORowImpl, ProfileVORowImpl, ProfileVORowImpl, RdsPillarDataUsageVORowImpl, RdsPillarTplgyMapVORowImpl, RdsVORowImpl, RoleHierarchyVORowImpl, SavedSearchFormatVORowImpl, SearchAttachmentsVORowImpl, SearchCriteriaVORowImpl, SearchCurrenciesTVORowImpl, SearchDffVORowImpl, SearchIndustriesVORowImpl, SearchIsoLanguagesVORowImpl, SearchKffVORowImpl, SearchLanguagesVORowImpl, SearchNaturalLanguagesVORowImpl, SearchSetidRefGroupsVORowImpl, SearchTerritoriesVORowImpl, SearchTimezonesVORowImpl, SearchTreeNodeVORowImpl, SessionAttributeVORowImpl, SessionNamespaceVORowImpl, SessionRoleSetsVORowImpl, SessionRolesVORowImpl, SessionVORowImpl, SetIdAssignmentsBUVORowImpl, SqlValidationVORowImpl, TerritoryPVORowImpl, TerritoryVORowImpl, TimezonePVORowImpl, TimezoneVORowImpl, TokenValueVORowImpl, TransDBResourcePKVORowImpl, TransDBResourceVORowImpl, TransFilterVORowImpl, TransFunctionVORowImpl, TransHierVORowImpl, TransInstanceSetVORowImpl, UserGroupSpaceVORowImpl, ValueSetValidationTableVORowImpl, ValueSetValueVORowImpl, ValueSetVORowImpl

public class OAViewRowImpl
extends oracle.jbo.server.ViewRowImpl

Provides access to a view object row. The view object row can refer one or more entity object's rows in addition to derived attributes such as calculated columns. An object of this class is instantiated for each record that is returned by the row's view object query.

Example:

The code in this example creates a new row and initializes the Name attribute before adding it to the view object.

   // search for view object in application module
   OAViewObject viewObjectInstance = (OAViewObject)
   am.findViewObject("SampleViewObject");

   // create a new instance
   OAViewRowImpl sampleRow = (OAViewRowImpl) viewObjectInstance.createRow();

   // Set or initialize attribute
   sampleRow.setAttribute("Name", "XYZ");

   // add it to the view object
   viewObjectInstance.insertRow(sampleRow);
 


Field Summary
static java.lang.String JAXB_CONTEXT_PATH
           
static java.lang.String RCS_ID
          Oracle Applications internal source control identifier.
 
Fields inherited from class oracle.jbo.server.ViewRowImpl
CURRENT_VERSION, ORIGINAL_VERSION, XML_POSTSTATE_REMOVE, XML_POSTSTATE_TAG
 
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.Row
EFFDT_DELETE_FUTURE_CHANGE_MODE, EFFDT_DELETE_MODE, EFFDT_DELETE_NEXT_CHANGE_MODE, EFFDT_DELETE_THIS_CHANGE_MODE, EFFDT_DELETE_ZAP_MODE, EFFDT_EXPERT_MODE, EFFDT_NONE_MODE, EFFDT_UPDATE_CHANGE_INSERT_MODE, EFFDT_UPDATE_CORRECTION, EFFDT_UPDATE_MODE, EFFDT_UPDATE_NEW_EARLIEST_CHANGE_MODE, EFFDT_UPDATE_OVERRIDE_MODE, REFRESH_CONTAINEES, REFRESH_FORGET_NEW_ROWS, REFRESH_REMOVE_NEW_ROWS, REFRESH_UNDO_CHANGES, REFRESH_WITH_DB_FORGET_CHANGES, REFRESH_WITH_DB_ONLY_IF_UNCHANGED, STATUS_INITIALIZED
 
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
OAViewRowImpl()
           
 
Method Summary
protected  void create(oracle.jbo.AttributeList nvp)
          Creates a row based on an attribute list.
protected  oracle.jbo.RowSet createViewAccessorRS(java.lang.String p1)
          This method is used for processing KeyFlexField Filters.
 java.lang.Object findDiscriminatorForFilterRow(oracle.jbo.AttributeDef filterDef)
           
 PreferencesBean getApplCorePrefs()
          Allows for groovy access to applcore preferences - see bug 9655121
 java.lang.Object getAttribute(int baseIndex, java.lang.String lang)
          Returns the value of the attribute sepecified by baseIndexin the translation sepcified by language code lang.
 java.lang.Object getAttribute(java.lang.String attrName, java.lang.String lang)
          Returns the value of the attribute sepecified by attrName in the translation sepcified by language code lang.
 java.lang.Object getDisplay(java.lang.String viewAccessorName, java.lang.String displayAttrName, boolean returnNull)
          Gets the display for a value through a view accessor.
 oracle.jbo.server.EntityImpl[] getEntities()
          Returns the array of entities on which this view row is based.
 java.lang.String getKeyFlexfieldCombination(java.lang.String viewLinkAccessorName)
          Gets a key flexfield combination (concatenated values) in this row.
 java.lang.Long getKeyFlexfieldCombinationID(java.lang.String accessorName, java.lang.String combo)
          Gets the ID of a key flexfield combination.
 oracle.jbo.server.ViewDefImpl getKeyFlexfieldViewDefImpl(java.lang.String accessorName)
          Internal use only.
 KFFViewObjectImpl getKeyFlexfieldViewObjectForQuery(java.lang.String accessorName)
          For Internal Use Only. Gets a key flexfield view object for querying the combinations.
 java.lang.Long getSetId(java.lang.String foreinKeyAttribute)
          Returns the Set Id value to be used for the references specified by its foreign key attribute name.
 java.lang.String[] getTranslatedLanguages()
          gets a list of all languages for which translations exist for any OAEntityImpl objects refered to by this OAViewRowImpl . .
protected  boolean isRefreshRequired(oracle.jbo.server.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.
 boolean isTranslatable()
          Returns true if this view row is based on at least on translatable entity.
 boolean isTranslatableAttribute(int baseIndex)
          Indicates if the attribute is a translatable attribute.
 boolean isTranslated()
          Returns true if there is at least on translated language other than the base language for any of the entities on which this view row is based on.
 java.lang.Boolean populteFilterMap(oracle.jbo.domain.ClobDomain xmlClob, FndFilterTypeImpl fcimpl)
           
protected  void refreshViewAccessor(oracle.jbo.server.ViewAccessorDef va, java.util.Map attrNameValues, oracle.jbo.RowSet rs)
           
 void remove()
          Deletes the row.
 void setAttribute(int index, java.lang.Object val)
          Sets the value of an attribute.
 void setAttribute(int baseIndex, java.lang.String lang, java.lang.Object value)
          Sets the attribute translation for the sepecified by baseIndex in language code sepcified by lang.
 void setAttribute(java.lang.String attrName, java.lang.String lang, java.lang.Object value)
          Sets the attribute translation for the sepecified by baseIndex in language code sepcified by lang.
protected  void setAttributeInternal(int index, java.lang.Object value)
          
 void setKeyFlexfieldCombinationID(java.lang.String viewLinkAccessorName, java.lang.String combo)
          Sets the key flexfield combination ID.
protected  boolean skipFilterListOnKeyAttributes(oracle.jbo.server.ListBinding lb, java.util.Map valuesMap)
           
 void validate()
          Validates the view object row.
 boolean validateKeyFlexfieldCombinationID(java.lang.String accessorName, java.lang.Long ccid)
          Validates a key flexfield combination ID.
 
Methods inherited from class oracle.jbo.server.ViewRowImpl
_internal_dbg_debug_data, appendXMLElementNodes, appendXMLElementNodes, checkForOuterJoins, clearAttributeException, clearAttributeException, copyFrom, createEntities, createListBinding, createMissingEntitiesFromViewDef, createViewAccessorRS, createViewRowAttrHints, doAllowsOperation, doAutoClearAttribute, entityCacheAdd, equals, findAssociatedObjects, findAttributeDef, findListBindingName, findListBindingRSI, findOrCreateLocalViewObject, findOrCreateViewAccessorRS, findOrCreateViewAccessorRS, findRowSetForRow, findViewAccessorDef, getApplicationModule, getApplicationModuleForViewAccessor, getAttribute, getAttribute, getAttributeCount, getAttributeHints, getAttributeHints, getAttributeIndexOf, getAttributeInternal, getAttributeInternal, getAttributeNames, getAttributeValues, getAttrInvokeAccessor, getCtrlHints, getDBTransaction, getEffectiveDate, getElementTagName, getEntity, getEntityAttrForAttribute, getEntityCount, getEntityForAttribute, getEntityForListBinding, getExprVarVal, getHandle, getKey, getListBindingCount, getListBindingRSI, getListBindings, getLookupDescription, getNewRowState, getOriginalAttributeValue, getParentVariableManager, getPreferredListBindingRSI, getQueryCollection, getRowSet, getRowStorageInternal, getStructureDef, getViewDef, getViewLogicGroupDef, getViewObject, getXMLElementTag, handleListBindingMismatch, hasAttributeException, hasDeferredExceptions, hasExtendedViewDef, hashCode, hasListBindings, initDefaults, invokeMethod, isAttributeChanged, isAttributeUpdateable, isDead, isRefreshRequired, isSubclassRow, isViewAccessorAttribute, lock, lookupAttributeDef, markViewAccessorsDirty, populate, populateAttribute, populateAttributeAsChanged, readAttributeFromXMLElement, readXML, refresh, registerAttributeException, removeAndRetain, removeFromCollection, renderAttributeInXMLElement, renderAttributeInXMLElement, revert, revertRow, revertRowAndContainees, setAttribute, setAttributeValues, setAttrInvokeAccessor, setEffectiveDateMode, setEffectiveDateOnEntities, setEntities, setEntity, setNewRowState, setStateOnEntity, setTransientAttributeValue, shouldAddViewAccessorRSToRow, throwOnListBindingMismatch, toString, writeAsXml, writeAsXml, writeXML
 
Methods inherited from class oracle.jbo.server.RowImpl
addListBindingsForAttribute, clearAllExceptions, clearRowExceptions, createXMLDefinition, ensureVariableManager, findAttrAndGetIndex, forceFilterListExecute, getAllExceptions, getAttributeInternal, getAttributeSecurityHints, getAttributeSecurityHints, getCombinedAttrNames, getEffectiveDateMode, getExprMethodVal, getGlobalScript, getHints, getMessageBundleClass, getMethodKind, getResourceBundleDef, getRowExceptions, getSecurityHints, getVariableManager, getViewAccessorResultIndex, hasAttributeException, hasVariables, isRefreshRequired, lookupListBinding, printXMLDefinition, readXML, refreshViewAccessor, refreshViewAccessor, registerRowException, setAttributeInternal, setExprVarVal, setInMultiSetter, variablesAdded, writeXML, writeXML, writeXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RCS_ID

public static final java.lang.String RCS_ID
Oracle Applications internal source control identifier.

See Also:
Constant Field Values

JAXB_CONTEXT_PATH

public static final java.lang.String JAXB_CONTEXT_PATH
See Also:
Constant Field Values
Constructor Detail

OAViewRowImpl

public OAViewRowImpl()
Method Detail

setAttribute

public void setAttribute(int index,
                         java.lang.Object val)
Sets the value of an attribute.

Specified by:
setAttribute in interface oracle.jbo.AttributeList
Overrides:
setAttribute in class oracle.jbo.server.ViewRowImpl
Parameters:
index - the attribute's index
val - the value to be assigned to the attribute

getKeyFlexfieldCombination

public java.lang.String getKeyFlexfieldCombination(java.lang.String viewLinkAccessorName)
Gets a key flexfield combination (concatenated values) in this row.

Parameters:
viewLinkAccessorName - the name of the view link accessor to the key flexfield
Returns:
the current combination
Throws:
java.lang.IllegalArgumentException - if the given view link accessor name is null

setAttributeInternal

protected void setAttributeInternal(int index,
                                    java.lang.Object value)

Overrides:
setAttributeInternal in class oracle.jbo.server.ViewRowImpl

setKeyFlexfieldCombinationID

public void setKeyFlexfieldCombinationID(java.lang.String viewLinkAccessorName,
                                         java.lang.String combo)
Sets the key flexfield combination ID. If dynamic insertion is enabled, and the combination is valid and new, the combination will be inserted to the combination table.

Parameters:
viewLinkAccessorName - the name of the view link accessor to the key flexfield
combo - the combination
Throws:
java.lang.IllegalArgumentException - if the given view link accessor name is null or the combination is null
java.lang.UnsupportedOperationException - if this view row is not a key flexfield view row, or the flexfield model does not support this operation
oracle.jbo.AttrSetValException - if the given combination is invalid
oracle.jbo.JboException - if an error occurs during the operation

getKeyFlexfieldCombinationID

public java.lang.Long getKeyFlexfieldCombinationID(java.lang.String accessorName,
                                                   java.lang.String combo)
Gets the ID of a key flexfield combination. The given combination is asssumed to have the structure specified by the structure instance number in this row for the key flexfield, if this key flexfield allows multiple structures. The data set number of the combination, if present, must match the data set number in this row; otherwise null is returned. All combination constraints are applied when searching for the ID.

Parameters:
accessorName - the name ofo the view link accessor to the key flexfield
combo - the combination
Returns:
the ID of the given combination; null if not found
Throws:
java.lang.UnsupportedOperationException - if this view row is not a key flexfield master row.
oracle.jbo.JboException - if the given view link accessor is not found, or the root application module does not include an instance of the key flexfield application module

validateKeyFlexfieldCombinationID

public boolean validateKeyFlexfieldCombinationID(java.lang.String accessorName,
                                                 java.lang.Long ccid)
Validates a key flexfield combination ID.

Parameters:
accessorName - the name of the view link accessor to the key flexfield
ccid - the combination ID
Returns:
true if the given ID exists, or if the given ID is null; false otherwise
Throws:
oracle.jbo.JboException - if the given view link accessor is not found, or the root application module does not include an instance of the key flexfield application module

getKeyFlexfieldViewObjectForQuery

public KFFViewObjectImpl getKeyFlexfieldViewObjectForQuery(java.lang.String accessorName)
For Internal Use Only. Gets a key flexfield view object for querying the combinations.

Parameters:
accessorName - the view link accessor name
Returns:
the key flexfield view object for query
Throws:
java.lang.IllegalArgumentException - if the given view link accessor is not found, or it is linked to a key flexfield model
oracle.jbo.JboException - if the key flexfield application module cannot be found

getKeyFlexfieldViewDefImpl

public oracle.jbo.server.ViewDefImpl getKeyFlexfieldViewDefImpl(java.lang.String accessorName)
Internal use only.

Gets the key flexfield view definition of this row.

Parameters:
accessorName - the name of the accessor to the key flexfield
Returns:
the view definition; null if the accessor does not point to a key flexfield, or the structure instance number is null; the base definition is returned if the strucutre instance number is not valid

validate

public void validate()
Validates the view object row. validate() is called on each entity row that makes up the view row.

Specified by:
validate in interface oracle.jbo.Row
Overrides:
validate in class oracle.jbo.server.ViewRowImpl

create

protected void create(oracle.jbo.AttributeList nvp)
Creates a row based on an attribute list. This method invokes create(AttributeList) on each of the new entities that make up this view row.

You can throw the exception OAAttrValException or OARowValException. These exceptions are caught and displayed in a message box on the page. See OA Framework Developer Guide: Error Handling for further details.

Overrides:
create in class oracle.jbo.server.ViewRowImpl
Parameters:
nvp - the list of attributes to be used in the creation of the row //see #setAttribute

remove

public void remove()
Deletes the row. This method invokes remove() on the updateable entity rows that are referenced by this view object row. After the referenced, updateable entity rows have been removed, it removes the view object's row from the view object's RowSet.

You can throw the exception OAAttrValException or OARowValException. These exceptions are caught and displayed in a message box on the page. See OA Framework Developer Guide: Error Handling for further details.

Specified by:
remove in interface oracle.jbo.Row
Overrides:
remove in class oracle.jbo.server.ViewRowImpl

getEntities

public oracle.jbo.server.EntityImpl[] getEntities()
Returns the array of entities on which this view row is based.

Overrides:
getEntities in class oracle.jbo.server.ViewRowImpl
Returns:
array of EntityImpl objects

isTranslated

public boolean isTranslated()
Returns true if there is at least on translated language other than the base language for any of the entities on which this view row is based on.

Returns:
boolean value

See Also:
getTranslatedLanguages()

isTranslatable

public boolean isTranslatable()
Returns true if this view row is based on at least on translatable entity.

Returns:
true the view row is considered translatable.
See Also:
isTranslatableAttribute(int)

getTranslatedLanguages

public java.lang.String[] getTranslatedLanguages()
gets a list of all languages for which translations exist for any OAEntityImpl objects refered to by this OAViewRowImpl . . The base language will always be reported as a translated language. Note also that an OAViewRowImpl may contain OAEntityImpl objects which have translations for differing langauges (With US as base language, one contains no translations, another for JA 'Japanese' and D 'German', and a third for D 'German' and F 'French'). In this case, this method returns the union of all translated langauges (US, JA, D, F).

Returns:
array of translated languages

getAttribute

public java.lang.Object getAttribute(int baseIndex,
                                     java.lang.String lang)
Returns the value of the attribute sepecified by baseIndexin the translation sepcified by language code lang. If the attribute is not translated, then the base language value will be returned.

Parameters:
baseIndex - attribute index.
lang - langauge code (one of "US", "JP", ...).
Returns:
The translated value of the attribute specified by index and language code.

See Also:
isTranslatableAttribute(int), setAttribute(int, java.lang.String, java.lang.Object)

getAttribute

public java.lang.Object getAttribute(java.lang.String attrName,
                                     java.lang.String lang)
Returns the value of the attribute sepecified by attrName in the translation sepcified by language code lang. If the attribute is not translated, then the base language value will be returned.

Parameters:
attrName - attribute name.
lang - the langauge code (one of "US", "JP", ...).
Returns:
The translated value of the attribute specified name and language code.

See Also:
isTranslatableAttribute(int), setAttribute(java.lang.String, java.lang.String, java.lang.Object)

setAttribute

public void setAttribute(int baseIndex,
                         java.lang.String lang,
                         java.lang.Object value)
Sets the attribute translation for the sepecified by baseIndex in language code sepcified by lang. If the attribute is not translated, then the base language value will be set.

Parameters:
baseIndex - attribute index.
lang - langauge code (one of "US", "JP", ...).
value - of Object type

See Also:
isTranslatableAttribute(int), getAttribute(int, String)

setAttribute

public void setAttribute(java.lang.String attrName,
                         java.lang.String lang,
                         java.lang.Object value)
Sets the attribute translation for the sepecified by baseIndex in language code sepcified by lang. If the attribute is not translated, then the base language value will be set.

Parameters:
attrName - attribute name.
lang - langauge code (one of "US", "JP", ...).
value - of Object type

See Also:
isTranslatableAttribute(int), getAttribute(String, String)

isTranslatableAttribute

public boolean isTranslatableAttribute(int baseIndex)
Indicates if the attribute is a translatable attribute. The attribute has to exist in the _TL table for it to be translatable.

Parameters:
baseIndex - specifies which attribute.
Returns:
true if the attribute is a translatable attribute.

See Also:
isTranslated()

getSetId

public java.lang.Long getSetId(java.lang.String foreinKeyAttribute)
Returns the Set Id value to be used for the references specified by its foreign key attribute name. If the reference has a composite key, the first attribute in the key combination must be used. If the reference is not Set Id enabled, null will be returned.

Parameters:
foreinKeyAttribute - the foreign key attribute name.
Returns:
the set id value to be used for the reference, or -1 if the reference is not Set Id enabled.

refreshViewAccessor

protected void refreshViewAccessor(oracle.jbo.server.ViewAccessorDef va,
                                   java.util.Map attrNameValues,
                                   oracle.jbo.RowSet rs)
Overrides:
refreshViewAccessor in class oracle.jbo.server.ViewRowImpl

isRefreshRequired

protected boolean isRefreshRequired(oracle.jbo.server.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.

Overrides:
isRefreshRequired in class oracle.jbo.server.RowImpl
Parameters:
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.
Returns:
Return true if the View Accessor should be refreshed, orelse, false.

populteFilterMap

public java.lang.Boolean populteFilterMap(oracle.jbo.domain.ClobDomain xmlClob,
                                          FndFilterTypeImpl fcimpl)

findDiscriminatorForFilterRow

public java.lang.Object findDiscriminatorForFilterRow(oracle.jbo.AttributeDef filterDef)

createViewAccessorRS

protected oracle.jbo.RowSet createViewAccessorRS(java.lang.String p1)
This method is used for processing KeyFlexField Filters. When ViewObject processed is a FilterViewObject, the View Accessor is created to the destination VO and filter conditions are added as ViewCriteria to the destination VO.

Overrides:
createViewAccessorRS in class oracle.jbo.server.ViewRowImpl
Parameters:
p1 - - Name of the View Accessor
Returns:
RowSet

skipFilterListOnKeyAttributes

protected boolean skipFilterListOnKeyAttributes(oracle.jbo.server.ListBinding lb,
                                                java.util.Map valuesMap)
Overrides:
skipFilterListOnKeyAttributes in class oracle.jbo.server.RowImpl

getApplCorePrefs

public PreferencesBean getApplCorePrefs()
Allows for groovy access to applcore preferences - see bug 9655121


getDisplay

public java.lang.Object getDisplay(java.lang.String viewAccessorName,
                                   java.lang.String displayAttrName,
                                   boolean returnNull)
Gets the display for a value through a view accessor. You can bypass the execution of the view accessor row set by setting returnNull to true. If the view accessor row set contains more than one row, the attribute value from the first row is returned.

Parameters:
viewAccessorName - the name of the view accessor
displayAttrName - the view attribute name of the display
returnNull - true if this method should return null immediately
Returns:
the display; null if no row is found
Throws:
java.lang.IllegalArgumentException - if the given view accessor name or display attribute name is null
FlexfieldJboException - if the view accessor row set cannot be found

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

Copyright © 2011 Oracle. All Rights Reserved.