public class ViewAttributeDefImpl extends AttributeDefImpl implements ComponentOperationsManager
PersistableDefObject.CustomizationType, PersistableDefObject.PersonalizationTypeAttributeDef.AttributeStorageEnumAttributeHints.ControlType| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BASE_VIEW_ATTR |
protected java.lang.String |
mAlias |
protected java.util.ArrayList |
mAssocEntityRefs |
protected boolean |
mAssocEntityRefsInited |
protected AttributeDefImpl |
mAttrDesc |
protected java.lang.String |
mBindVar |
protected java.lang.String |
mGetterName |
protected java.lang.String |
mSetterName |
protected ViewObjectImpl |
mVO |
ATTR_LOAD_BULK, ATTR_LOAD_EACH, ATTR_LOAD_SKIP, EFFECTIVE_DATE_TYPE_END, EFFECTIVE_DATE_TYPE_NONE, EFFECTIVE_DATE_TYPE_START, HISTORY_CREATE_DATE, HISTORY_CREATE_USER, HISTORY_MODIFY_DATE, HISTORY_MODIFY_USER, HISTORY_MODIFY_VERSION, HISTORY_NOT_DEFINED, mAttrLoad, mBCheckedForSIF, mBCheckSIFCtrlHints, mColumnName, mDataSecurity, mDef, mDefaultValue, mDiscrColumn, mDomainName, mEffectiveDateType, mElemFactory, mElemType, mHistoryKind, mIndex, mIsEffectiveDateSequence, mIsEffectiveDateSequenceFlag, mJavaType, mKind, mMandatory, mNotNull, mObjectTableOID, mObjectTableRef, mObjectType, mOIDAttrNames, mPrecision, mPrimaryKey, mQueriable, mReadMethod, mResolveAccessors, mRetrievedOnInsert, mRetrievedOnUpdate, mScale, mSQLBuilder, mType, mTypeFactory, mTypeFactoryInitialized, mUnique, mUpdateable, mWriteMethodJIT_PACKAGE_NAME, mDebugToSkipEmptyDocForBug24949961, mEditedProperties, mEditedPropertyExprsDEF_MDS_CLIENT_KEY, DEF_SCOPE_ALL, DEF_SCOPE_PERS, DEF_SCOPE_SESSION, DEF_SCOPE_SHARED, DEF_SCOPE_SITE, DEF_SCOPE_USER, mBaseDefObject, mExtendedDefObjects, mObjectResolved, PERSDEF_MDS_CLIENT_KEY, PROPERTY_EXPRMAPmFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX, RESID_SUFFIXATTR_ASSOCIATED_ROW, ATTR_ASSOCIATED_ROWITERATOR, ATTR_DYNAMIC, ATTR_ENTITY_DERIVED, ATTR_HIDDEN, ATTR_PERSISTENT, ATTR_ROWSET, ATTR_SQL_DERIVED, ATTR_TRANSIENT, ATTR_VARIABLE, READONLY, UPDATEABLE, UPDATEABLE_WHILE_NEWATTRIBUTE_AUTOSUBMIT, ATTRIBUTE_BINDEDITOR_LABEL, ATTRIBUTE_CTL_CATEGORY, ATTRIBUTE_CTL_DISPLAYHEIGHT, ATTRIBUTE_CTL_DISPLAYWIDTH, ATTRIBUTE_CTL_FIELD_ORDER, ATTRIBUTE_CTL_FORMTYPE, ATTRIBUTE_CTL_TYPE, ATTRIBUTE_DEFINITION_STATE, ATTRIBUTE_DISPLAY_HINT, ATTRIBUTE_DISPLAY_HINT_DISPLAY, ATTRIBUTE_DISPLAY_HINT_HIDE, ATTRIBUTE_FORM_TYPE_DETAIL, ATTRIBUTE_FORM_TYPE_SHORT, ATTRIBUTE_LABEL, ATTRIBUTE_LABEL_PLURAL, ATTRIBUTE_LOVNAME, ATTRIBUTE_PAYLOAD_HINT, ATTRIBUTE_PAYLOAD_HINT_HIDE, ATTRIBUTE_PAYLOAD_HINT_SHOW, ATTRIBUTE_REQUIRED_HINT, ATTRIBUTE_REQUIRED_HINT_OPTIONAL, ATTRIBUTE_REQUIRED_HINT_REQUIRED, ATTRIBUTE_REQUIRED_HINT_SELECTIVELY_REQUIRED, ATTRIBUTE_TIMEZONE_ID, ATTRIBUTE_TOOLTIP, CTL_CHECK_BOX, CTL_CHOICE_LIST, CTL_COMBO_BOX, CTL_COMBO_BOX_LOV, CTL_DATE, CTL_DEFAULT, CTL_DELIMITEDIDS_CHOICE, CTL_EDIT, CTL_IMAGE, CTL_INPUT_TEXT_LOV, CTL_LIST_BOX, CTL_NUMBER_EDIT, CTL_RADIO_GROUP, CTLTYPE_CHECKBOX, CTLTYPE_COMBO, CTLTYPE_COMBOLOV, CTLTYPE_DATE, CTLTYPE_DEFAULT, CTLTYPE_DELIMITEDIDS_CHOICE, CTLTYPE_EDIT, CTLTYPE_IMAGE, CTLTYPE_LIST, CTLTYPE_LISTBOX, CTLTYPE_LOV, CTLTYPE_NUMEDIT, CTLTYPE_RADIOGRP, CTLTYPE_TOGGLE, FMT_FORMAT, FMT_FORMATTER, HINT_NAME_AUTOSUBMIT, HINT_NAME_CATEGORY, HINT_NAME_CTL_TYPE, HINT_NAME_DESCRIPTION, HINT_NAME_DISPLAY_HEIGHT, HINT_NAME_DISPLAY_HINT, HINT_NAME_DISPLAY_WIDTH, HINT_NAME_FIELD_ORDER, HINT_NAME_FORMAT, HINT_NAME_LABEL, HINT_NAME_LABEL_PLURAL, HINT_NAME_LOVNAME, HINT_NAME_MANDATORY, HINT_NAME_MAX_LENGTH, HINT_NAME_MAX_VALUE, HINT_NAME_MIN_LENGTH, HINT_NAME_MIN_VALUE, HINT_NAME_PAYLOAD_HINT, HINT_NAME_SECRET, HINT_NAME_TIMEZONEID, HINT_NAME_TOOLTIP, HINT_NAME_UPDATEABLE, HINT_NAME_WATERMARK, INTERNAL_HINT_NAME_AUTOSUBMIT, PNAME_Button, PNAME_ButtonGroup, PNAME_ComboBox, PNAME_ComboBoxLovEdit, PNAME_ENSURE_KEY_ATTR, PNAME_EnumList, PNAME_LovButton, PNAME_ROWNUMATTR, PNAME_SOURCENAME_ACCESSOR, PNAME_SOURCENAME_ATTR, PNAME_TextFieldDEFINITION_STATE_ACTIVE, DEFINITION_STATE_DEPRECATED, PROPERTY_DEFINITION_STATE, PROPERTY_ERROR_MSG, PROPERTY_LABEL, PROPERTY_LABEL_PLURAL, PROPERTY_TOOLTIPFLAG_DIRTY, FLAG_EDITABLE, FLAG_FROM_TIP, FLAG_LOAD_BASE, FLAG_LOAD_HL_DEFS, FLAG_MAJOR_VERSION_CHANGED, FLAG_MINOR_VERSION_CHANGED, FLAG_NEW, FLAG_NEW_RECURSE, FLAG_SKIP_WRITE, XML_STATEMENT| Constructor and Description |
|---|
ViewAttributeDefImpl()
Construct an ViewAttributeDefImpl.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addXSDAttribute(java.lang.String name,
java.lang.String viewAttrName)
Adds a dependent attribute mapping for the predefined complex type
assigned to this view attribute.
|
void |
applyDiffContents(DifferDetails dif,
DiffResolver resolver)
When diff/merge operation is requested, we have the following
three def objects:
|
void |
applyNewName(DifferDetails dif,
java.lang.String newName,
int resolution,
java.lang.Object editObj,
java.lang.Object toMergeObj,
DiffResolver resolver) |
void |
cloneAttribute(AttributeDefImpl ad) |
DifferDetails |
diffContents(DiffMergeable docDef,
DiffMergeable orgDef,
DifferDetails difDetails)
Performs diff of scalar values.
|
ExprCodeSource |
editCodeSource(ExprCodeSource codeSource)
Notify that ComponentOperationsManager that the client expects to
edit the CodeSource.
|
ExprCodeSource |
ensureCodeSource(ExprDef exprDef)
Ensure a named code source in the operations manager.
|
ViewLinkDefImpl |
findViewLinkDefImpl() |
ViewObject |
getAccessorVO(ViewObject originVO)
For an accessor attribute, this method creates a View Object that
works for the View Link definition.
|
java.lang.String |
getAliasName() |
java.util.HashMap |
getAllProperties(java.util.HashMap map,
LocaleContext locale) |
AttributeDef.AttributeStorageEnum |
getAttributeStorage() |
int |
getAttributeStorageInt() |
java.util.List |
getBackwardDependencies() |
java.util.List<java.lang.String> |
getBackwardDependenciesNames() |
java.lang.String |
getColumnNameForQuery()
Gets the column name to be used in query statement.
|
java.lang.String[][] |
getCompOpers(LocaleContext locale)
Returns a Map of operators for this attribute.
|
java.lang.String |
getDefXMLElementTag() |
AttributeDefImpl |
getEntityAttributeDef() |
EntityDefImpl |
getEntityDef()
Returns the EntityDef to which the referenced AttributeDef belongs if
this view attribute is entity based.
|
EntityReference |
getEntityReference()
Gets the entity reference which this attribute belongs
|
java.lang.String |
getFullName()
Gets this object's fully-qualified name.
|
int |
getIndex()
Get the column position of this attribute in the data source.
|
ListBindingDef |
getListBindingDef() |
java.lang.String |
getLOVName()
Retrieve the LOV name on the current view attribute.
|
java.lang.String |
getObjectType()
If the attribute is an object, returns the name of the attribute's object type
|
ViewDefImpl |
getOtherViewDef()
If this attribute is an accessor attribute (refers to an end in a ViewLink)
then this method returns the ViewDef of other end of the ViewLink.
|
oracle.adf.share.security.binding.BindingPermissionDef |
getPermissionDef()
Internal: Applications should not use this method.
|
DefObject |
getReferenceAttribute()
Gets the reference Entity's AttributeDefImpl if this View Attribute is Entity based.
|
ViewDefImpl |
getViewDef() |
AssociationDefImpl |
getViewLinkAccessorDef() |
java.util.Set<java.lang.String> |
getXSDAttrNames()
Gets the list of XSD attribute names that mapping to view attribute
have been specified.
|
javax.xml.namespace.QName |
getXSDTypeName()
Gets the qualified name of the predefined complex type assigned to this
view attribute.
|
java.lang.String |
getXSDViewAttrName(java.lang.String name)
Gets the view attribute to which the specified XSD complex type attribute
is mapped.
|
protected boolean |
hasAttrCompOpers() |
boolean |
hasHintDefined(LocaleContext locale,
java.lang.String hintName) |
boolean |
hasHintOverride(LocaleContext locale,
java.lang.String hintName) |
boolean |
hasHintOverride(LocaleContext locale,
java.lang.String hintName,
java.lang.String hintValue)
Deprecated.
|
boolean |
isBaseDefFor(DefinitionObject def) |
boolean |
isDirty()
This method returns if an Object is modified from last save/load
|
boolean |
isDiscrColumn()
Returns whether this attribute is a Discriminator Column for this Entity type.
|
boolean |
isEffectiveDateRelated()
Deprecated.
Delegate to entity attribute if present
|
boolean |
isEntityDiscrColumn()
Returns all Properties from this attribute and it's domain if any.
|
boolean |
isKey() |
boolean |
isNew()
This method returns if this object is previously persisted.
|
boolean |
isReverseAccessor() |
boolean |
isSDOHidden() |
boolean |
isSelected() |
ExprDef |
lookupExprDef(OwnerType type,
java.lang.String path)
Search for an ExprDef in the ComponentOperationsManager's namespace.
|
AttributeDefImpl |
makeClone() |
protected java.lang.Object |
resolveObjectProperty(java.lang.String property,
LocaleContext locale) |
void |
setAliasName(java.lang.String alias) |
void |
setAttributeStorage(AttributeDef.AttributeStorageEnum storage) |
void |
setBaseDefObject(DefinitionObject baseDefObject) |
void |
setEntityDiscrColumn(boolean b) |
void |
setName(java.lang.String name)
Name this object.
|
void |
setParent(NamedObjectImpl parent)
Sets this object's parent.
|
void |
setSDOHidden(boolean b) |
void |
setXSDTypeName(javax.xml.namespace.QName xsdTypeName)
Sets or unsets the predefined complex type assigned to this view
attribute.
|
void |
writeChildren(DefWriter jos)
Writes the Object's children to the Persistent storage
|
void |
writeContents(DefWriter jos)
Objects should write their persistence output in this method
|
addBackwardDependency, addBackwardDependency, addCompOper, addExtendedDefObject, addForwardDependency, addValidator, adjustPropertyMapForWrite, applyDiffChildren, beanToStore, convertHistoryColumnFlagToString, convertHistoryColumnStringToFlag, convertToJava, convertToStorage, createAttributeDependencyImpl, diffChildren, displayInShortForm, evaluateTransientExpression, forcedUnselectTransient, getAllExtendedDefObjects, getAltKeyCount, getAttributeKind, getAttrLoad, getCategory, getColumnName, getCompOpers, getCompOpers, getControlType, getDef, getDefaultValue, getDefinitionState, getDefTypeId, getDisplayHeight, getDisplayHint, getDisplayWidth, getDomainName, getElemFactory, getElemSQLType, getElemType, getExprValueSupplierType, getExprVarVal, getExtendedDefObjects, getExtendedDefObjectsInternal, getFieldOrder, getFieldType, getFileName, getFormat, getFormattedAttribute, getFormatter, getFormatterClassName, getForwardDependencyAttributes, getHint, getHints, getHintsFromResource, getHintValue, getHistoryKind, getJavaType, getLabel, getLabelPlural, getLocaleName, getLOVFinder, getMessageBundleClass, getOIDAttrNames, getOperationDefinitions, getPayloadHint, getPrecision, getProperty, getRecalcExpression, getRecalcExpressionDef, getRecalcExpressionPrivilege, getRecalcExpressionTrustMode, getResourceBundleDef, getResourceBundleDef, getResourcePrefix, getResourcesFromBundle, getRowOperationDefinitions, getScale, getScriptOperationDefinitions, getScriptRowOperationDefinitions, getSerializerClassName, getSQLBuilder, getSQLType, getSQLTypeIdToString, getSQLTypeStringToId, getStructureDef, getTooltip, getTransientExpression, getTransientExpressionDef, getTransientExpressionPrivilege, getTransientExpressionTrustMode, getTransientExprEval, getTypeFactory, getTypeValueMapPropertySet, getUIHelper, getUpdateableFlag, getValidator, getValidatorCount, getValidators, getValueSerializer, getXMLElementTag, hasExprVarVal, hasExtendedDefObjects, hasFormatInformation, hasTransientExpression, initFromXML, isAutoSubmit, isCascadeUpdateParticipant, isChangeIndicatorColumn, isDynamicCodeSourceEnabled, isEffectiveDateSequence, isEffectiveDateSequenceFlag, isEffectiveEndDate, isEffectiveStartDate, isHistoryColumn, isInWhereOrderGroup, isMandatory, isObjectTableOID, isObjectTableRef, isPrimaryKey, isQueriable, isRetrievedOnInsert, isRetrievedOnUpdate, isSelectedStatic, isSessionScope, isUnique, isWriteObject, loadCompOpersFromXML, loadDependencies, loadFromResultSet, loadFromStatement, loadPermission, lookupCompOper, lookupValidator, lookupValidatorByName, parseFormattedAttribute, printXMLDefinition, removeBackwardDependency, removeCompOper, removeValidator, requiresNamePrefixedResId, resolvePropertyRaw, setAttributeStorageString, setAttrLoad, setBackwardDependencies, setColumnName, setDefaultValue, setDefForComponent, setDiscrColumn, setDomainName, setEffectiveDateSequence, setEffectiveDateSequenceFlag, setEffectiveDateType, setElemType, setExprVarVal, setFieldType, setHistoryKind, setJavaType, setLOVFinder, setLOVName, setMandatory, setObjectType, setPermissionDef, setPrecisionScale, setPrimaryKey, setPropertyExpression, setQueriable, setRecalcExpression, setRecalcExpressionDef, setRecalcExpressionPrivilege, setRecalcExpressionTrustMode, setRecalcExpressionTypeCheckedMode, setRetrievedOnInsert, setRetrievedOnUpdate, setSelected, setSelectedTransient, setSerializerClassName, setSQLType, setTransientExpression, setTransientExpressionDef, setTransientExpressionPrivilege, setTransientExpressionSourceHint, setTransientExpressionTrustMode, setTransientExpressionTypeCheckedMode, setTypeValueMapPropertySet, setUnique, setUpdateableFlag, shouldEvaluateTransientExpression, storeToBean, unsetDefForComponentaddChildren, callFinishedLoading, ensureVariableManager, finishedLoading, getAdfmConfigStartupProperty, getBaseDefObject, getBooleanAdfmConfigProperty, getDefXMLNameSpace, getVariableManager, getVarMgrParents, hasVariables, isDeprecated, isFromCustomization, loadProperties, loadVariables, resolveReferences, setBaseDefObjectaddDefImport, addSavedDocName, allocatePDef, allocatePropertyMap, allocatePropertyMapForEdits, baseIsWriteObject, beginDiffObjects, buildChildName, buildFileName, checkEditable, checkEditableWithDefWriter, checkStructWithOld, close, createEditPDef, createFromXML, deregisterDefObject, deregisterHLDef, deregisterSessionObject, diffChildrenHLDefs, diffChildrenProperties, diffObjects, ensureDifferDetails, ensureDifferSkip, extractCustIntoPDef, findDefImport, forgetChanges, getBaseDir, getBasePackage, getChildren, getDefImports, getDefManager, getDefTypeName, getDefWriter, getDifferSkip, getEditedPropertiesMap, getEditedPropertyExpressionsMap, getEditedPropertyMap, getEditObject, getEditVersionsAsString, getFullDirName, getFullFileName, getHLDefMap, getIdentificationAttributeName, getMajorVersion, getMergeableFullName, getMergeableName, getMinorVersion, getOrigObject, getPropertyMap, getPropertyNamesSet, getSavedDocNames, getSessionSyncLock, getSubstitutedNames, getSyncLock, guaranteePath, includeCustomizationLayerInfo, isAutoMerged, isCreateEditPDef, isCustomizationEnabled, isCustomizationEnabled, isEditable, isFromTip, isInheritPolicyStrict, isLoadBase, isLoadHLDefs, isMajorVersionChanged, isMinorVersionChanged, isNewRecurse, isPersonalizationEnabled, isPersonalizationEnabled, isPropertyExpression, isSaveToJSON, isSkipWrite, loadDefImports, loadDefObject, loadXMLContents, loadXMLContentsNoResolve, lockDefinitionContext, lookupHLDef, makeNew, mergeChanges, mergeEditedPropertiesForJSON, mergePropertyMap, objectRemoved, postSaveContents, readJSONObject, reapplyChanges, registerClass, registerDefObject, registerHLDef, registerSessionDefObject, registerSiteDefObject, reloadFromXMLContents, remove, removeAndDelete, removeDefImport, removeExtendedDefObject, removeProperty, saveJSONContents, saveXMLContents, setCustomizationEnabled, setCustomizationEnabled, setDefaultBaseDir, setDefMgr, setDirty, setEditable, setEditableFlag, setEditableObject, setForRuntime, setFullName, setFullNameInternal, setLoadBase, setLoadHLDefs, setMajorVersionChanged, setNew, setNewRecurse, setOrigObject, setPersonalizationEnabled, setPersonalizationEnabled, setProperty, setPropertyMap, setSkipWrite, setupDefWriterFromMO, setWholeDefDirty, setWholeDefNew, staticUpdateChildrenList, transferDefChangesInto, unlockDefinitionContext, updateChildObject, updateChildrenList, updateMdsKeyFromTip, verifyVersion, verifyVersionNullCheck, writeHeaderForNew, writeJSONContents, writeObject, writeVersion, writeXMLContentsaddPropertySetName, enableUpdateCheck, getContainerDef, getContainerName, getDefScope, getMdsKey, getMdsReference, getMdsReferenceName, getPropertySetName, getPropertySetNames, getRootBaseDefObject, isComponentDefinition, isDynamicDefinitionObject, isObjectResolved, isSubtypeOf, isSuppressUpdateCheck, loadCustomProperties, loadPropertiesInMap, loadPropertySetNames, loadSchemaProperties, objectFound, objectInserted, setDefScope, setMdsKey, setMdsReference, setObjectResolved, setPropertySetName, staticLoadCustomProperties, staticLoadSchemaProperties, suppressUpdateCheckgetName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getPropertyExpressionDef, getPropertyExpressionsMap, getPropertyExprEval, getRawPropertyValue, getStringFromMessageBundle, hasProperty, refreshProperty, removeProperty, setPropertiesMap, setPropertiesMap2, setProperty, setPropertyExpressionMap, setRawPropertyValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefManager, getDefScope, isDynamicCodeSourceEnabledgetOperationDefinitions, getRowOperationDefinitions, getScriptOperationDefinitions, getScriptRowOperationDefinitionsgetProperty, removeProperty, setPropertygetNamegetProperties, getProperty, refreshPropertygetNamegetName, setDirty, setEditablegetNameprotected AttributeDefImpl mAttrDesc
protected java.lang.String mAlias
protected java.lang.String mGetterName
protected java.lang.String mSetterName
protected java.lang.String mBindVar
protected ViewObjectImpl mVO
protected java.util.ArrayList mAssocEntityRefs
protected boolean mAssocEntityRefsInited
public static final java.lang.String BASE_VIEW_ATTR
public ViewAttributeDefImpl()
public void setParent(NamedObjectImpl parent)
DefObjectsetParent in class AttributeDefImplparent - the named object that is to be the parent of this object.public void setBaseDefObject(DefinitionObject baseDefObject)
setBaseDefObject in class AttributeDefImplpublic boolean isBaseDefFor(DefinitionObject def)
isBaseDefFor in class AttributeDefImpl@Concealed public AttributeDefImpl makeClone()
makeClone in class AttributeDefImpl@Concealed public void cloneAttribute(AttributeDefImpl ad)
cloneAttribute in class AttributeDefImplAttributeDefImpl.cloneAttribute(AttributeDefImpl, boolean)public boolean isSelected()
isSelected in interface AttributeDefisSelected in class AttributeDefImplpublic void setName(java.lang.String name)
DefObjectsetName in class AttributeDefImplname - the name to be given to this object.public boolean isNew()
DefPersistableisNew in interface DefPersistableisNew in class PersistableDefObjectpublic boolean isDirty()
DefPersistableisDirty in interface DefPersistableisDirty in class PersistableDefObjectpublic EntityReference getEntityReference()
public AttributeDefImpl getEntityAttributeDef()
public AssociationDefImpl getViewLinkAccessorDef()
public ViewDefImpl getViewDef()
public ViewDefImpl getOtherViewDef()
public ViewLinkDefImpl findViewLinkDefImpl()
public boolean isReverseAccessor()
public ViewObject getAccessorVO(ViewObject originVO)
AttributeDefgetAccessorVO in interface AttributeDefgetAccessorVO in class AttributeDefImploriginVO - the View Object that owns the accessorViewObject instance.public AttributeDef.AttributeStorageEnum getAttributeStorage()
getAttributeStorage in interface AttributeDefgetAttributeStorage in class AttributeDefImplpublic int getAttributeStorageInt()
getAttributeStorageInt in class AttributeDefImplpublic DefObject getReferenceAttribute()
public java.lang.String getObjectType()
AttributeDefImplFor example, assume that you have created an Employee table that contains an Address object of type address_t. The SQL code would look like this:
CREATE TYPE address_t AS OBJECT -- user defined Oracle Object datatype
(
Street VARCHAR2(30),
City VARCHAR2(25),
State CHAR(2),
Zip Number
);
CREATE TABLE Employee
(
EmpId Number,
Name VARCHAR2(30),
Address address_t, -- note the Oracle Object datatype
);
In an Employee Entity Object, this would be interpreted as an Address attribute of type Address_t. If this method were applied to the Address attribute, it would return Address_t.
getObjectType in class AttributeDefImplpublic int getIndex()
getIndex in interface AttributeDefgetIndex in class AttributeDefImplpublic java.lang.String getFullName()
NamedObjectImplgetFullName in interface ComponentOperationsManagergetFullName in interface DefPersistablegetFullName in interface ValidationManagergetFullName in class NamedObjectImplpublic java.lang.String getAliasName()
public void setAliasName(java.lang.String alias)
public boolean isDiscrColumn()
AttributeDefImplisDiscrColumn in interface AttributeDefisDiscrColumn in class AttributeDefImplpublic java.lang.String getColumnNameForQuery()
getColumnNameForQuery in interface AttributeDefgetColumnNameForQuery in class AttributeDefImplpublic boolean isEntityDiscrColumn()
public void setEntityDiscrColumn(boolean b)
public void setAttributeStorage(AttributeDef.AttributeStorageEnum storage)
setAttributeStorage in class AttributeDefImplpublic EntityDefImpl getEntityDef()
getEntityDef in class AttributeDefImplpublic boolean isKey()
isKey in class AttributeDefImplpublic ListBindingDef getListBindingDef()
getListBindingDef in interface AttributeDefgetListBindingDef in class AttributeDefImplprotected java.lang.Object resolveObjectProperty(java.lang.String property,
LocaleContext locale)
resolveObjectProperty in class AttributeDefImplpublic java.util.HashMap getAllProperties(java.util.HashMap map,
LocaleContext locale)
getAllProperties in class AttributeDefImplpublic java.lang.String[][] getCompOpers(LocaleContext locale)
AttributeHintsgetCompOpers in interface AttributeHintsgetCompOpers in class AttributeDefImplpublic java.util.List getBackwardDependencies()
getBackwardDependencies in class AttributeDefImplpublic java.util.List<java.lang.String> getBackwardDependenciesNames()
getBackwardDependenciesNames in class AttributeDefImplpublic java.lang.String getDefXMLElementTag()
getDefXMLElementTag in interface PersistentDefinitiongetDefXMLElementTag in class AttributeDefImplpublic void writeChildren(DefWriter jos)
PersistentDefinitionwriteChildren in interface PersistentDefinitionwriteChildren in class AttributeDefImpljos - the Output storage for persistencepublic void writeContents(DefWriter jos)
PersistentDefinitionwriteContents in interface PersistentDefinitionwriteContents in class AttributeDefImpljos - the Output storage for persistenceprotected boolean hasAttrCompOpers()
hasAttrCompOpers in class AttributeDefImplpublic final boolean hasHintDefined(LocaleContext locale, java.lang.String hintName)
hasHintDefined in class AttributeDefImplpublic final boolean hasHintOverride(LocaleContext locale, java.lang.String hintName)
hasHintOverride in class AttributeDefImpl@Concealed public final boolean hasHintOverride(LocaleContext locale, java.lang.String hintName, java.lang.String hintValue)
public java.lang.String getLOVName()
getLOVName in interface AttributeDefgetLOVName in interface AttributeHintsgetLOVName in class AttributeDefImplpublic oracle.adf.share.security.binding.BindingPermissionDef getPermissionDef()
Returns the security metadata for this attribute.
getPermissionDef in class AttributeDefImplpublic boolean isSDOHidden()
public void setSDOHidden(boolean b)
public javax.xml.namespace.QName getXSDTypeName()
public void setXSDTypeName(javax.xml.namespace.QName xsdTypeName)
xsdTypeName - qualified name of a predefined complex typepublic java.util.Set<java.lang.String> getXSDAttrNames()
public java.lang.String getXSDViewAttrName(java.lang.String name)
name - name of an attribute defined on the XSD complex typepublic void addXSDAttribute(java.lang.String name,
java.lang.String viewAttrName)
name - name of an attribute defined on the XSD complex typeviewAttrName - name of the source view attribute@Concealed public boolean isEffectiveDateRelated()
isEffectiveDateRelated in class AttributeDefImplpublic DifferDetails diffContents(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
DiffMergeableorgDef. Then, help
methods on DifferBase can be used to diff the attr values
and accumulate the details of diff in difDetails.
Here is example code snippet:
private static final String DIFF_STRING_ELEMS[] =
{
"MyStringVal1",
"MyStringVal2"
};
private static final String DIFF_INT_ELEMS[] =
{
"MyIntVal",
}
public DifferDetails diffContents(DiffMergeable docDef, DiffMergeable orgDef, DifferDetails difDetails)
{
<Your-def-class> orgDefImpl = (<Your-def-class>) orgDef;
final String editStringValues[] =
{
this.getMyStringVal1(),
this.getMyStringVal2()
};
String orgStringValues[] = null;
if (orgDef != null)
{
String orgV[] =
{
orgDefImpl.getMyStringVal1(),
orgDefImpl.getMyStringVal2()
};
orgStringValues = orgV;
}
final int editIntValues[] =
{
this.getMyIntVal(),
};
int orgIntValues[] = null;
if (orgDef != null)
{
int orgV[] =
{
orgDefImpl.getMyIntVal()
};
orgIntValues = orgV;
}
difDetails = DifferBase.diffStringArray(this, DIFF_STRING_ELEMS, editStringValues, orgStringValues, difDetails);
difDetails = DifferBase.diffIntArray(this, DIFF_INT_ELEMS, editIntValues, orgIntValues, difDetails);
return difDetails;
}
diffContents in interface DiffMergeablediffContents in class AttributeDefImpldocDef - the document-level definitionorgDef - the original definition. It could be
null if the definition did not exist originallydifDetails - the DifferDetails that accumulate
the details of diff from the document-level (top-level) defDifferDetails that has all the details
of diffpublic void applyNewName(DifferDetails dif, java.lang.String newName, int resolution, java.lang.Object editObj, java.lang.Object toMergeObj, DiffResolver resolver)
applyNewName in class AttributeDefImplpublic void applyDiffContents(DifferDetails dif, DiffResolver resolver)
DiffMergeable
orgDef - original def object (from the branch point)
editDef - def object into which changes are to be merge
toMergeDef - def object to be merged (source of changes)
For sandbox refresh operation, orgDef comes from the branch
point, editDef from the sandbox, toMergeDef from the
mainline of the repos. With these three defs, we first diff editDef
against orgDef, producing editDifDetails.
Similarly, toMergeDef is diffed against orgDef,
producing toMergeDifDetails. The diff engine then
walks through these two sets of diffs and identifies conflicts.
After the conflicts are all resolved, we apply appropriate
changes to editDef.
applyDiffContents is called to apply changes to
scalar values. dif contains the changed values to
be applied to 'this' object. Use sample code like
the following:
public void applyDiffContents(DifferDetails dif, DiffResolver resolver)
{
DifferChangeMap detailMap = dif.getDetailMap();
Object[] updValues;
// DIFF_STRING_ELEMS from the above example code
for (int j = 0; j < DIFF_STRING_ELEMS.length; j++)
{
if ((updValues = (Object[]) detailMap.getValue(DIFF_STRING_ELEMS[j])) != null)
{
switch(j)
{
case 0:
setMyStringVal1((String) updValues[0]);
break;
case 1:
setMyStringVal2((String) updValues[0]);
break;
}
}
}
for (int j = 0; j < DIFF_INT_ELEMS.length; j++)
{
if ((updValues = (Object[]) detailMap.getValue(DIFF_INT_ELEMS[j])) != null)
{
switch(j)
{
case 0:
setMyIntVal((Integer) updValues[0]);
break;
}
}
}
}
Notice that the index specified in the case
statement is the array index of the attr in the String, int,
or boolean array.
applyDiffContents in interface DiffMergeableapplyDiffContents in class AttributeDefImpldif - changes to be applied to 'this' defresolver - the diff resolver used in diff/merge operationpublic ExprCodeSource ensureCodeSource(ExprDef exprDef)
ComponentOperationsManager#updateCodeSource to update the component
operations manager with any updates that are made to this CodeSource.ensureCodeSource in interface ComponentOperationsManagerensureCodeSource in class AttributeDefImplexprDef - a null exprDef may be used to indicate the a
built-in code source.public ExprCodeSource editCodeSource(ExprCodeSource codeSource)
ComponentOperationsManagereditCodeSource in interface ComponentOperationsManagereditCodeSource in class AttributeDefImplpublic ExprDef lookupExprDef(OwnerType type, java.lang.String path)
ComponentOperationsManagerlookupExprDef in interface ComponentOperationsManagerlookupExprDef in class AttributeDefImpltype - the OwnerType of the expressionpath - the ExprDef.getPath() of the expression