public abstract class DCIteratorBindingDef extends DCExecutableBindingDef
| Modifier and Type | Class and Description |
|---|---|
static class |
DCIteratorBindingDef.RowSetIterMode |
PersistableDefObject.CustomizationType, PersistableDefObject.PersonalizationType| Modifier and Type | Field and Description |
|---|---|
protected int |
mChangeEventRate |
protected int |
mRangeSize |
static java.lang.String |
PNAME_AutoSelectDisplayedAttributes |
static java.lang.String |
PNAME_RangeSize |
static java.lang.String |
PNAME_RowSetIterMode |
static java.lang.String |
PNAME_TYPE |
PNAME_attrHintsSuffix, PNAME_option, PNAME_option_ALWAYS, PNAME_option_DEFAULT, PNAME_option_DEFER, PNAME_option_IF_NEEDED, PNAME_option_NEVER, PNAME_option_PREPARE, PNAME_option_PREPARE_OPT, PNAME_option_REFRESH, PNAME_option_REFRESH_OPT, PNAME_option_RENDER, PNAME_option_RENDER_OPT, PNAME_optionExpr, PNAME_refreshAfter, RC_ALWAYS, RC_DEFAULT, RC_DEFER, RC_NEVER, RC_PREPARE, RC_PREPARE_OPT, RC_REFRESH, RC_REFRESH_OPT, RC_RENDER, RC_RENDER_OPT, RC_UNINITDEF_XMLNS, DEF_XMLNS_BASE, EMPTY_STR, PNAME_AccessorIterator, PNAME_Action, PNAME_Boolean, PNAME_Button, PNAME_ButtonGroup, PNAME_Calendar, PNAME_ComboBox, PNAME_ComboBoxLovEdit, PNAME_DataControlAction, PNAME_DefaultControl, PNAME_DynamicTable, PNAME_EnumList, PNAME_EventBinding, PNAME_EventEnabled, PNAME_EventEnabled_NONE, PNAME_EventEnabled_PPR, PNAME_EventEnabled_PUSH, PNAME_FormattedTextField, PNAME_Graph, PNAME_HGrid, PNAME_Iterator, PNAME_Label, PNAME_ListSingleSel, PNAME_LovButton, PNAME_LOVList, PNAME_MethodAction, PNAME_MethodIterator, PNAME_NavigationBar, PNAME_NavigationList, PNAME_Panel, PNAME_Parameter, PNAME_Permission, PNAME_ProgressBar, PNAME_ProgressBarAttr, PNAME_Query, PNAME_Range, PNAME_ScrollBar, PNAME_ScrollBarAttr, PNAME_Search, PNAME_Shuttle, PNAME_Slider, PNAME_SliderAttr, PNAME_Spinner, PNAME_Table, PNAME_TextField, PNAME_ToplinkIterator, PNAME_Tree, PNAME_TreeTablemEditedProperties, 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_SUFFIXEXECUTABLE_ACTION, EXECUTABLE_ITERATORBINDING, EXECUTABLE_REGIONXML_STATEMENT| Constructor and Description |
|---|
DCIteratorBindingDef() |
DCIteratorBindingDef(java.lang.String name,
java.lang.String amName,
java.lang.String voName,
java.lang.String rsiName,
int rangeSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyDiffContents(DifferDetails dif,
DiffResolver resolver)
When diff/merge operation is requested, we have the following
three def objects:
|
java.lang.Object |
createExecutableBinding(BindingContext ctx,
DCBindingContainer bc)
Create an executable binding instance based on this definition in the given
BindingContainer.
|
abstract DCIteratorBinding |
createIterBinding(BindingContext ctx,
DCBindingContainer bindingContainer) |
abstract DCIteratorBinding |
createIterBinding(BindingContext ctx,
DCBindingContainer bindingContainer,
ApplicationModule anchorAM) |
DifferDetails |
diffContents(DiffMergeable docDef,
DiffMergeable orgDef,
DifferDetails difDetails)
Performs diff of scalar values.
|
java.lang.String |
getAMName() |
java.lang.String |
getBindsName() |
DataControl.DataChangeEventPolicy |
getChangeEventPolicy() |
int |
getChangeEventRate() |
java.lang.String |
getDataControlName() |
java.lang.String |
getDesignTimeClass() |
int |
getExecutableType()
Return EXECUTABLE_REGION, EXECUTABLE_ITERATORBINDING or EXECUTABLE_ACTION
based on what kind of binding this definition creates.
|
protected byte |
getLevel() |
protected java.lang.String |
getPermissionClassName()
Internal: Applications should not use this method.
|
protected java.lang.String |
getPermissionTargetName()
Internal: Applications should not use this method.
|
int |
getRangeSize() |
protected DCIteratorBinding.RenderHintTypes |
getRenderHint() |
long |
getRowCountThreshold()
Internal: Applications should not use this method.
|
DCIteratorBindingDef.RowSetIterMode |
getRowSetIterMode() |
java.lang.String |
getRSIName() |
SortCriteria[] |
getSortCriteria() |
java.lang.String |
getXMLElementTag()
Returns a piece of static info for the type of object this is invoked
upon.
|
void |
init(java.util.HashMap initValues)
Internal: Applications should not use this method.
|
void |
initializeExecutableBinding(BindingContext ctx,
DCBindingContainer bindingContainer,
java.lang.Object binding)
Internal: Applications should not use this method.
|
boolean |
isCacheResults() |
boolean |
isObjectType() |
boolean |
isSortable() |
boolean |
isStateValidationEnabled()
Internal: Applications should not use this method.
|
void |
loadChildrenFromXML(DefElement xmlElement) |
protected void |
retrieveFromXML(DefElement xmlElement,
java.util.HashMap valueTab)
Internal: Applications should not use this method.
|
void |
setBindingContainerDef(DCBindingContainerDef formDef) |
protected void |
setCacheResults(boolean flag) |
void |
setStateValidationEnabled(boolean enable)
Internal: Applications should not use this method.
|
applyDiffChildren, getDependencyNames, getHintsSuffix, getRefreshExpression, getRefreshOption, getRefreshOptionValue, internalGetRefreshOptionFromString, internalHasPermission, isRefreshable, isRefreshableconvertToBoolean, convertToDataChangePolicy, convertToInt, convertToIntArray, convertToLong, createAndLoadFromXML, getDefClassName, getDefTypeId, getDefXMLNameSpace, getOrigObject, getPermissionDef, getPersonalizer, getPersonalizerClass, getSubType, initSubType, isDirty, isNew, loadFromXML, loadPermissionDef, loadXMLContents, readXMLBoolean, readXMLInt, readXMLLong, readXMLString, readXMLStringArray, readXMLStringArrayList, readXMLStringArrayList, saveXMLContents, setDefClassName, setDirty, setNew, setOrigObject, setPermissionDef, setSubType, setupDefWriterFromMO, writeXMLContentsaddDefImport, addExtendedDefObject, addSavedDocName, adjustPropertyMapForWrite, allocatePropertyMap, allocatePropertyMapForEdits, beginDiffObjects, checkEditable, checkStructWithOld, close, createFromXML, deregisterDefObject, deregisterSessionObject, diffChildren, diffObjects, ensureDifferDetails, findDefImport, finishedLoading, getBaseDir, getBasePackage, getDefImports, getDefManager, getDefTypeName, getDefWriter, getDefXMLElementTag, getEditedPropertiesMap, getEditedPropertyExpressionsMap, getEditedPropertyMap, getEditObject, getEditVersionsAsString, getExtendedDefObjectsInternal, getFileName, getFullDirName, getFullFileName, getMajorVersion, getMergeableFullName, getMergeableName, getMinorVersion, getPropertyMap, getSavedDocNames, getSessionSyncLock, getSubstitutedNames, getSyncLock, guaranteePath, hasExtendedDefObjects, includeCustomizationLayerInfo, isCustomizationEnabled, isCustomizationEnabled, isEditable, isFromTip, isLoadBase, isMajorVersionChanged, isMinorVersionChanged, isPersonalizationEnabled, isPersonalizationEnabled, isPropertyExpression, loadDefImports, loadDefObject, loadXMLContentsNoResolve, lockDefinitionContext, mergeChanges, mergePropertyMap, objectRemoved, reapplyChanges, registerClass, registerDefObject, registerSessionDefObject, registerSiteDefObject, remove, removeAndDelete, removeDefImport, removeExtendedDefObject, removeProperty, setCustomizationEnabled, setCustomizationEnabled, setDefaultBaseDir, setDefMgr, setEditable, setEditableFlag, setEditableObject, setFullName, setFullNameInternal, setLoadBase, setMajorVersionChanged, setPersonalizationEnabled, setPersonalizationEnabled, setProperty, setPropertyExpression, setPropertyMap, staticUpdateChildrenList, unlockDefinitionContext, updateChildrenList, updateMdsKeyFromTip, verifyVersion, verifyVersionNullCheck, writeChildren, writeContents, writeHeaderForNew, writeObject, writeVersionaddPropertySetName, enableUpdateCheck, getAllExtendedDefObjects, getBaseDefObject, getContainerDef, getContainerName, getDefinitionState, getDefScope, getExtendedDefObjects, getMdsKey, getMdsReference, getPropertySetName, getPropertySetNames, getRootBaseDefObject, isBaseDefFor, isComponentDefinition, isDeprecated, isDynamicDefinitionObject, isObjectResolved, isSubtypeOf, isSuppressUpdateCheck, loadCustomProperties, loadProperties, loadPropertiesInMap, loadPropertySetNames, loadSchemaProperties, resolveReferences, setBaseDefObject, setBaseDefObject, setDefScope, setMdsKey, setMdsReference, setName, setObjectResolved, setParent, setPropertySetName, staticLoadCustomProperties, staticLoadSchemaProperties, suppressUpdateCheckgetAllProperties, getFullName, getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getPropertyExpressionDef, getPropertyExpressionsMap, getPropertyNamesSet, getRawPropertyValue, getResourcesFromBundle, getStringFromMessageBundle, refreshProperty, removeProperty, requiresNamePrefixedResId, resolveObjectProperty, resolvePropertyRaw, setPropertiesMap, setPropertiesMap2, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamegetFullNamepublic static final java.lang.String PNAME_RowSetIterMode
public static final java.lang.String PNAME_AutoSelectDisplayedAttributes
protected int mRangeSize
protected int mChangeEventRate
public static final java.lang.String PNAME_RangeSize
public static final java.lang.String PNAME_TYPE
public DCIteratorBindingDef()
public DCIteratorBindingDef(java.lang.String name,
java.lang.String amName,
java.lang.String voName,
java.lang.String rsiName,
int rangeSize)
protected byte getLevel()
public DCIteratorBindingDef.RowSetIterMode getRowSetIterMode()
public java.lang.String getDesignTimeClass()
public SortCriteria[] getSortCriteria()
public void init(java.util.HashMap initValues)
DCExecutableBindingDefinit in class DCExecutableBindingDefpublic boolean isObjectType()
public int getRangeSize()
public int getChangeEventRate()
public long getRowCountThreshold()
public boolean isSortable()
public boolean isCacheResults()
public boolean isStateValidationEnabled()
public void setStateValidationEnabled(boolean enable)
public void setBindingContainerDef(DCBindingContainerDef formDef)
public java.lang.String getAMName()
public java.lang.String getBindsName()
public java.lang.String getRSIName()
public java.lang.String getXMLElementTag()
PersistentDefinitiongetXMLElementTag in interface PersistentDefinitiongetXMLElementTag in class DCExecutableBindingDefpublic java.lang.String getDataControlName()
public int getExecutableType()
DCIExecutableDefgetExecutableType in interface DCIExecutableDefgetExecutableType in class DCExecutableBindingDefpublic abstract DCIteratorBinding createIterBinding(BindingContext ctx, DCBindingContainer bindingContainer, ApplicationModule anchorAM)
public abstract DCIteratorBinding createIterBinding(BindingContext ctx, DCBindingContainer bindingContainer)
protected void retrieveFromXML(DefElement xmlElement, java.util.HashMap valueTab)
DCExecutableBindingDefretrieveFromXML in class DCExecutableBindingDefpublic void loadChildrenFromXML(DefElement xmlElement)
loadChildrenFromXML in class DCDefBasepublic java.lang.Object createExecutableBinding(BindingContext ctx, DCBindingContainer bc)
DCIExecutableDefcreateExecutableBinding in interface DCIExecutableDefcreateExecutableBinding in class DCExecutableBindingDefpublic void initializeExecutableBinding(BindingContext ctx, DCBindingContainer bindingContainer, java.lang.Object binding)
DCExecutableBindingDefinitializeExecutableBinding in interface DCIExecutableDefinitializeExecutableBinding in class DCExecutableBindingDefprotected java.lang.String getPermissionTargetName()
DCExecutableBindingDefgetPermissionTargetName in class DCExecutableBindingDefprotected java.lang.String getPermissionClassName()
DCExecutableBindingDefgetPermissionClassName in class DCExecutableBindingDefprotected void setCacheResults(boolean flag)
protected DCIteratorBinding.RenderHintTypes getRenderHint()
public DataControl.DataChangeEventPolicy getChangeEventPolicy()
public 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)
{
orgDefImpl = () 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 DCExecutableBindingDefdocDef - 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 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 DCExecutableBindingDefdif - changes to be applied to 'this' defresolver - the diff resolver used in diff/merge operation