public class RowFinder extends DefObject
PersistableDefObject.CustomizationType, PersistableDefObject.PersonalizationType
Modifier and Type | Field and Description |
---|---|
protected java.lang.Boolean |
mIsVarMappedToAttr |
protected RowFinderParameters |
mRowFinderParameters |
static java.lang.String |
PRIMARY_KEY |
JIT_PACKAGE_NAME, mDebugToSkipEmptyDocForBug24949961, mEditedProperties, mEditedPropertyExprs
DEF_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_EXPRMAP
mFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX, RESID_SUFFIX
FLAG_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
Modifier | Constructor and Description |
---|---|
|
RowFinder() |
protected |
RowFinder(NamedObjectImpl parent) |
|
RowFinder(NamedObjectImpl parent,
java.lang.String name,
boolean useKey) |
protected |
RowFinder(java.lang.String name,
NamedObjectImpl parent,
int fetchLimit,
boolean errorOnLimit,
java.lang.String vcName,
boolean mapVarsToAttrs,
java.util.LinkedHashMap<java.lang.String,java.lang.String> varItemMap)
Deprecated.
|
protected |
RowFinder(java.lang.String name,
NamedObjectImpl parent,
int fetchLimit,
boolean errorOnLimit,
java.lang.String vcName,
boolean mapVarsToAttrs,
RowFinderParameters params,
boolean payloadHintHide)
This constructor is intended to be used by either customization of existing
View Object definitions or while creating new View Object definitions
during runtime.
|
Modifier and Type | Method and Description |
---|---|
boolean |
areAllVariablesMappedToAttributes()
For internal framework use only.
|
RowFinder |
cloneRowFinder() |
void |
copyFrom(RowFinder other) |
RowFinderParameters |
ensureRowFinderParameters() |
RowIterator |
execute(AttributeList nameValuePairs,
RowSet rs)
This method execute a RowFinder on a RowSet with name value pairs provided by user.
|
java.util.Collection<java.lang.String> |
getAttributeNames()
Returns a Collection of attribute names expected by Key RowFinder or AttrValueRowFinder.
|
int |
getDefTypeId() |
java.lang.String |
getDefXMLElementTag() |
int |
getFetchLimit() |
java.lang.String |
getFileName() |
java.lang.String |
getFinderType() |
java.lang.Class |
getMessageBundleClass() |
java.util.Collection<AttributeDef> |
getParameters(boolean substituteWithAttrDefsInMappedVariables)
Deprecated.
|
int |
getQueryMode() |
ResourceBundleDef |
getResourceBundleDef() |
java.util.ArrayList<BoundParameter> |
getRowFinderParameterList(boolean includeUnmappedVar)
Get a list of parameters for this RowFinder.
|
RowFinderParameters |
getRowFinderParameters() |
java.lang.String |
getVCUsageName() |
boolean |
isEditable() |
boolean |
isErrorOnExceedingLimit() |
boolean |
isPayloadHintHide() |
boolean |
isPayloadHintHide(LocaleContext locale) |
protected void |
loadRowFinderParameters(DefElement xmlElement,
boolean attrFinder) |
protected void |
loadXMLContents(DefElement xmlElement) |
protected java.lang.Object |
resolvePropertyRaw(java.lang.String property,
LocaleContext locale) |
protected void |
setDefForComponent(ComponentObjectImpl comp) |
void |
setErrorOnExceedingLimit(boolean flag) |
void |
setFetchLimit(int fetchLimit) |
void |
setFinderType(java.lang.String typ) |
protected void |
setParent(NamedObjectImpl parent)
Sets this object's parent.
|
void |
setQueryMode(int queryMode) |
void |
setVCUsageName(java.lang.String VCName) |
protected void |
unsetDefForComponent(ComponentObjectImpl comp) |
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
|
addChildren, applyDiffChildren, callFinishedLoading, diffChildren, ensureVariableManager, finishedLoading, getAdfmConfigStartupProperty, getAllProperties, getBaseDefObject, getBooleanAdfmConfigProperty, getDefXMLNameSpace, getVariableManager, getVarMgrParents, hasVariables, isDeprecated, isFromCustomization, loadProperties, loadVariables, resolveReferences, setBaseDefObject, setBaseDefObject, setName
addDefImport, addExtendedDefObject, addSavedDocName, adjustPropertyMapForWrite, allocatePDef, allocatePropertyMap, allocatePropertyMapForEdits, applyDiffContents, baseIsWriteObject, beginDiffObjects, buildChildName, buildFileName, checkEditable, checkEditableWithDefWriter, checkStructWithOld, close, createEditPDef, createFromXML, deregisterDefObject, deregisterHLDef, deregisterSessionObject, diffChildrenHLDefs, diffChildrenProperties, diffContents, diffObjects, ensureDifferDetails, ensureDifferSkip, extractCustIntoPDef, findDefImport, forgetChanges, getBaseDir, getBasePackage, getChildren, getDefImports, getDefManager, getDefTypeName, getDefWriter, getDifferSkip, getEditedPropertiesMap, getEditedPropertyExpressionsMap, getEditedPropertyMap, getEditObject, getEditVersionsAsString, getExtendedDefObjectsInternal, getFullDirName, getFullFileName, getHLDefMap, getIdentificationAttributeName, getMajorVersion, getMergeableFullName, getMergeableName, getMinorVersion, getOrigObject, getPropertyMap, getPropertyNamesSet, getSavedDocNames, getSessionSyncLock, getSubstitutedNames, getSyncLock, getXMLElementTag, guaranteePath, hasExtendedDefObjects, includeCustomizationLayerInfo, isAutoMerged, isCreateEditPDef, isCustomizationEnabled, isCustomizationEnabled, isDirty, isFromTip, isInheritPolicyStrict, isLoadBase, isLoadHLDefs, isMajorVersionChanged, isMinorVersionChanged, isNew, isNewRecurse, isPersonalizationEnabled, isPersonalizationEnabled, isPropertyExpression, isSaveToJSON, isSkipWrite, isWriteObject, 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, setPropertyExpression, setPropertyMap, setSkipWrite, setupDefWriterFromMO, setWholeDefDirty, setWholeDefNew, staticUpdateChildrenList, transferDefChangesInto, unlockDefinitionContext, updateChildObject, updateChildrenList, updateMdsKeyFromTip, verifyVersion, verifyVersionNullCheck, writeHeaderForNew, writeJSONContents, writeObject, writeVersion, writeXMLContents
addPropertySetName, enableUpdateCheck, getAllExtendedDefObjects, getContainerDef, getContainerName, getDefinitionState, getDefScope, getExtendedDefObjects, getMdsKey, getMdsReference, getMdsReferenceName, getPropertySetName, getPropertySetNames, getRootBaseDefObject, isBaseDefFor, isComponentDefinition, isDynamicDefinitionObject, isObjectResolved, isSubtypeOf, isSuppressUpdateCheck, loadCustomProperties, loadPropertiesInMap, loadPropertySetNames, loadSchemaProperties, objectFound, objectInserted, setDefScope, setMdsKey, setMdsReference, setObjectResolved, setPropertySetName, staticLoadCustomProperties, staticLoadSchemaProperties, suppressUpdateCheck
getFullName, getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getPropertyExpressionDef, getPropertyExpressionsMap, getPropertyExprEval, getRawPropertyValue, getResourcesFromBundle, getStringFromMessageBundle, hasProperty, refreshProperty, removeProperty, requiresNamePrefixedResId, resolveObjectProperty, setPropertiesMap, setPropertiesMap2, setProperty, setPropertyExpressionMap, setRawPropertyValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
getFullName
getProperty, removeProperty, setProperty
protected java.lang.Boolean mIsVarMappedToAttr
protected RowFinderParameters mRowFinderParameters
public static final java.lang.String PRIMARY_KEY
public RowFinder()
protected RowFinder(NamedObjectImpl parent)
public RowFinder(NamedObjectImpl parent, java.lang.String name, boolean useKey)
protected RowFinder(java.lang.String name, NamedObjectImpl parent, int fetchLimit, boolean errorOnLimit, java.lang.String vcName, boolean mapVarsToAttrs, java.util.LinkedHashMap<java.lang.String,java.lang.String> varItemMap)
name
- the name of the RowFinder.parent
- the parent of the RowFinder, it could be ViewDefImpl, ViewObjectImpl or PDefViewObject.fetchLimit
- the maximum match rows the RowFinder will return.errorOnLimit
- if throw an error when more than fetchLimit rows found by the RowFinder.vcName
- the name of ViewCriteria used by this RowFinder.mapVarsToAttrs
- if all the bind variables mapped to attributes on ViewObject.varItemMap
- the name mapping between variables and attributes or expressions.
Mapping from variables to attributes if mapVarsToAttrs is true,
otherwise mapping from variables to transient expressions.protected RowFinder(java.lang.String name, NamedObjectImpl parent, int fetchLimit, boolean errorOnLimit, java.lang.String vcName, boolean mapVarsToAttrs, RowFinderParameters params, boolean payloadHintHide)
name
- the name of the RowFinder.parent
- the parent of the RowFinder, it could be ViewDefImpl, ViewObjectImpl or PDefViewObject.fetchLimit
- the maximum match rows the RowFinder will return.errorOnLimit
- if throw an error when more than fetchLimit rows found by the RowFinder.vcName
- the name of ViewCriteria used by this RowFinder.mapVarsToAttrs
- if all the bind variables mapped to attributes on ViewObject.params
- the name mapping between variables and attributes or expressions.
Mapping from variables to attributes if mapVarsToAttrs is true,
otherwise mapping from variables to transient expressions.
It aslo contains other information such as if variable is required and properties on it.payloadHint
- if this RowFinder is hide from the service payload.RowFinderParameters
public void copyFrom(RowFinder other)
public RowFinder cloneRowFinder()
public boolean isEditable()
isEditable
in class PersistableDefObject
public java.lang.String getFileName()
getFileName
in class PersistableDefObject
protected void setParent(NamedObjectImpl parent)
DefObject
public java.lang.String getFinderType()
public void setFinderType(java.lang.String typ)
public boolean isErrorOnExceedingLimit()
public void setErrorOnExceedingLimit(boolean flag)
public java.lang.String getVCUsageName()
public void setVCUsageName(java.lang.String VCName)
public int getQueryMode()
public void setQueryMode(int queryMode)
public int getFetchLimit()
public void setFetchLimit(int fetchLimit)
@Concealed public boolean areAllVariablesMappedToAttributes()
@Restricted public java.util.Collection<java.lang.String> getAttributeNames()
public java.lang.String getDefXMLElementTag()
getDefXMLElementTag
in interface PersistentDefinition
getDefXMLElementTag
in class PersistableDefObject
protected void loadXMLContents(DefElement xmlElement)
public RowFinderParameters getRowFinderParameters()
public RowFinderParameters ensureRowFinderParameters()
protected void loadRowFinderParameters(DefElement xmlElement, boolean attrFinder)
public RowIterator execute(AttributeList nameValuePairs, RowSet rs)
nameValuePairs
- The AttributeList contains name value pairs user provided for bind variables.
Mostly it will be Key, Row, or NameValuePairs.rs
- the RowSet this RowFinder executes on, typcially it could be ViewObjectImpl or ViewRowSetImplpublic int getDefTypeId()
getDefTypeId
in class DefObject
protected void setDefForComponent(ComponentObjectImpl comp)
setDefForComponent
in class DefObject
protected void unsetDefForComponent(ComponentObjectImpl comp)
unsetDefForComponent
in class DefObject
public java.lang.Class getMessageBundleClass()
public ResourceBundleDef getResourceBundleDef()
public boolean isPayloadHintHide()
public boolean isPayloadHintHide(LocaleContext locale)
@Concealed public java.util.Collection<AttributeDef> getParameters(boolean substituteWithAttrDefsInMappedVariables)
substituteWithAttrDefsInMappedVariables
- If this flag is true
include the attribute definition instead of the variable.public java.util.ArrayList<BoundParameter> getRowFinderParameterList(boolean includeUnmappedVar)
includeUnmappedVar
- if true, return list will contain all unmapped variable from underlying view criteria
as well as variables in where clause.protected java.lang.Object resolvePropertyRaw(java.lang.String property, LocaleContext locale)
resolvePropertyRaw
in class DefObject
public void writeContents(DefWriter jos)
PersistentDefinition
writeContents
in interface PersistentDefinition
writeContents
in class PersistableDefObject
jos
- the Output storage for persistencepublic void writeChildren(DefWriter jos)
PersistentDefinition
writeChildren
in interface PersistentDefinition
writeChildren
in class DefObject
jos
- the Output storage for persistence