public class RowFinder extends DefObject
PersistableDefObject.CustomizationType, PersistableDefObject.PersonalizationType| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | PRIMARY_KEY | 
mEditedProperties, mEditedPropertyExprsDEF_MDS_CLIENT_KEY, DEF_SCOPE_ALL, DEF_SCOPE_PERS, DEF_SCOPE_SESSION, DEF_SCOPE_SHARED, DEF_SCOPE_SITE, mBaseDefObject, mExtendedDefObjects, mObjectResolved, PERSDEF_MDS_CLIENT_KEY, PROPERTY_EXPRMAPmFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX, RESID_SUFFIXXML_STATEMENT| Modifier | Constructor and Description | 
|---|---|
| protected  | RowFinder() | 
| protected  | RowFinder(NamedObjectImpl parent) | 
| protected  | 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)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. | 
| 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 | getFileName() | 
| java.lang.Class | getMessageBundleClass() | 
| java.util.Collection<AttributeDef> | getParameters(boolean substituteWithAttrDefsInMappedVariables)Return the list of variables in the Finder. | 
| ResourceBundleDef | getResourceBundleDef() | 
| boolean | isEditable() | 
| protected void | loadXMLContents(DefElement xmlElement) | 
| protected void | setDefForComponent(ComponentObjectImpl comp) | 
| protected void | setParent(NamedObjectImpl parent)Sets this object's parent. | 
| protected void | unsetDefForComponent(ComponentObjectImpl comp) | 
applyDiffChildren, diffChildren, ensureVariableManager, finishedLoading, getAllProperties, getBaseDefObject, getDefXMLNameSpace, getVariableManager, getVarMgrParents, hasVariables, isDeprecated, isFromCustomization, loadProperties, loadVariables, resolvePropertyRaw, resolveReferences, setBaseDefObject, setBaseDefObject, setName, writeChildrenaddDefImport, addExtendedDefObject, adjustPropertyMapForWrite, allocatePropertyMap, allocatePropertyMapForEdits, applyDiffContents, checkEditable, checkStructWithOld, close, createFromXML, deregisterSessionObject, diffContents, diffObjects, ensureDifferDetails, findDefImport, getBaseDir, getBasePackage, getDefImports, getDefManager, getDefWriter, getDefXMLElementTag, getEditedPropertiesMap, getEditedPropertyExpressionsMap, getEditedPropertyMap, getEditObject, getEditVersionsAsString, getExtendedDefObjectsInternal, getFullDirName, getFullFileName, getMajorVersion, getMinorVersion, getOrigObject, getPropertyMap, getSubstitutedNames, getSyncLock, getXMLElementTag, guaranteePath, hasExtendedDefObjects, isCustomizationEnabled, isCustomizationEnabled, isDirty, isFromTip, isLoadBase, isMajorVersionChanged, isMinorVersionChanged, isNew, isPersonalizationEnabled, isPersonalizationEnabled, isPropertyExpression, loadDefImports, loadXMLContents, mergeChanges, mergePropertyMap, objectRemoved, reapplyChanges, registerClass, registerDefObject, registerSessionDefObject, registerSiteDefObject, remove, removeAndDelete, removeDefImport, removeExtendedDefObject, removeProperty, saveXMLContents, setCustomizationEnabled, setCustomizationEnabled, setDefaultBaseDir, setDefMgr, setDirty, setEditable, setEditableFlag, setEditableObject, setFullName, setFullNameInternal, setLoadBase, setMajorVersionChanged, setNew, setOrigObject, setPersonalizationEnabled, setPersonalizationEnabled, setProperty, setPropertyExpression, setPropertyMap, setupDefWriterFromMO, staticUpdateChildrenList, updateChildrenList, verifyVersion, verifyVersionNullCheck, writeContents, writeObject, writeVersion, writeXMLContentsaddPropertySetName, enableUpdateCheck, getAllExtendedDefObjects, getContainerDef, getContainerName, getDefinitionState, getDefScope, getExtendedDefObjects, getMdsKey, getMdsReference, getPropertySetName, getPropertySetNames, getRootBaseDefObject, isBaseDefFor, isDynamicDefinitionObject, isObjectResolved, isSuppressUpdateCheck, loadCustomProperties, loadPropertiesInMap, loadPropertySetNames, loadSchemaProperties, setDefScope, setMdsKey, setMdsReference, setObjectResolved, setPropertySetName, staticLoadCustomProperties, staticLoadSchemaProperties, suppressUpdateCheckgetFullName, getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getPropertyExpressionsMap, getRawPropertyValue, getResourcesFromBundle, getStringFromMessageBundle, refreshProperty, removeProperty, requiresNamePrefixedResId, resolveObjectProperty, setPropertiesMap, setPropertiesMap2, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamegetFullNamegetFullName, getNamepublic static final java.lang.String PRIMARY_KEY
protected RowFinder()
protected RowFinder(NamedObjectImpl parent)
protected 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.public boolean isEditable()
isEditable in class PersistableDefObjectpublic java.lang.String getFileName()
getFileName in class PersistableDefObjectprotected void setParent(NamedObjectImpl parent)
DefObjectpublic boolean areAllVariablesMappedToAttributes()
public java.util.Collection<java.lang.String> getAttributeNames()
protected void loadXMLContents(DefElement xmlElement)
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 DefObjectprotected void setDefForComponent(ComponentObjectImpl comp)
setDefForComponent in class DefObjectprotected void unsetDefForComponent(ComponentObjectImpl comp)
unsetDefForComponent in class DefObjectpublic java.lang.Class getMessageBundleClass()
public ResourceBundleDef getResourceBundleDef()
public java.util.Collection<AttributeDef> getParameters(boolean substituteWithAttrDefsInMappedVariables)
substituteWithAttrDefsInMappedVariables - If this flag is true
 include the attribute definition instead of the variable.