public class ViewCriteriaItem extends JboAbstractMap implements AttributeDef, java.io.Serializable, ViewCriteriaItemHints, ViewCriteriaComponent, AttributeHints, ExprValueSupplier
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>AttributeHints.ControlType| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | ALL_OPERATORS | 
| static java.lang.String | CARDINALITY | 
| static java.lang.String | CATEGORY | 
| static java.lang.String | CONJUNCTIONSTR | 
| static java.lang.String | CONTROL_TYPE | 
| static java.lang.String | CRITERIA_ITEM | 
| static java.lang.String | DATATYPE | 
| protected static int | DEFAULT_CONJ | 
| static JboCompOper | EQ_OPERATOR | 
| static java.lang.String | ESCAPE_WILD_CARD_CHARS | 
| static java.lang.String | GENERATE_ISNULL_CLAUSE_FOR_BINDVARS | 
| static java.lang.String | ITEM_NUM | 
| static java.lang.String | ITEMHOLDER | 
| static java.lang.String | LABEL | 
| static java.lang.String | LOV_NAME | 
| protected java.util.ArrayList | mAllCompOpers | 
| protected JboCompOper | mCompOper | 
| protected java.util.ArrayList | mCompOpers | 
| protected java.util.Map | mOperatorsAsMap | 
| protected java.util.Hashtable | mProperties | 
| protected ViewCriteriaRow | mRow | 
| protected java.util.ArrayList<ViewCriteriaItemValue> | mValues | 
| static java.lang.String | NAME | 
| static java.lang.String | NESTEDVC | 
| static java.lang.String | OPERATOR | 
| static java.lang.String | OPERATOR_DESCRIPTION | 
| static java.lang.String[] | OPERATOR_LIST_ATTR_NAMES | 
| static java.lang.String | OPERATOR_MAXCARDINALITY | 
| static java.lang.String | OPERATOR_MINCARDINALITY | 
| static java.lang.String | OPERATORS | 
| static java.lang.String | OPERATORS_MAP | 
| static java.lang.String | QUOT | 
| static java.lang.String | RELATIVE_NAME | 
| static java.lang.String | REMOVABLE | 
| static java.lang.String | RENDERED_MODE | 
| static java.lang.String | REQUIRED | 
| static java.lang.String | RESET_ORIG_OPER | 
| static java.lang.String | UPPER_COLUMNS_VALUE | 
| static java.lang.String | VALIDATE_BINDVARS | 
| static java.lang.String | VALUE | 
| static java.lang.String | VALUES | 
| static java.lang.String | VARIABLE | 
| static int | VCITEM_COMPOUND | 
| static java.lang.String | VCITEM_DATATYPE_DATE | 
| static java.lang.String | VCITEM_DATATYPE_NUMBER | 
| static java.lang.String | VCITEM_DATATYPE_STRING | 
| static int | VCITEM_OPTIONAL | 
| static java.lang.String | VCITEM_OPTIONAL_STR | 
| static int | VCITEM_REQUIRED | 
| static java.lang.String | VCITEM_REQUIRED_STR | 
| static int | VCITEM_SELECTIVELY_REQUIRED | 
| static java.lang.String | VCITEM_SELECTIVELY_REQUIRED_STR | 
| static int | VCITEM_SIMPLE | 
| static java.lang.String | XML_PLURAL_VALUES | 
MAP_NULL_VALUEATTR_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_NEWCRITERIA_ALLOW_MULTIPLE_VALUES, CRITERIA_ALLOW_MULTIPLE_VALUES_DEFAULT, CRITERIA_REMOVABLE, CRITERIA_REMOVABLE_DEFAULT, CRITERIA_RENDERED_MODE, CRITERIA_RENDERED_MODE_ADVANCED, CRITERIA_RENDERED_MODE_BASIC, CRITERIA_RENDERED_MODE_BOTH, CRITERIA_RENDERED_MODE_DEFAULT, CRITERIA_RENDERED_MODE_NEVERVC_CONJ_AND, VC_CONJ_NOT, VC_CONJ_OR, VC_CONJ_UNION, VC_UPPER_COL_DEFAULT, VC_UPPER_COL_FALSE, VC_UPPER_COL_TRUEATTRIBUTE_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_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, 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_LABEL, PROPERTY_LABEL_PLURAL, PROPERTY_TOOLTIP| Constructor and Description | 
|---|
| ViewCriteriaItem() | 
| ViewCriteriaItem(AttributeDef def,
                ViewCriteriaRow row) | 
| ViewCriteriaItem(java.lang.String attrName,
                ViewCriteriaRow row) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addCompOper(int index,
           JboCompOper compOper) | 
| void | addCompOper(JboCompOper compOper) | 
| void | addItemValue(ViewCriteriaItemValue valueHolder) | 
| static boolean | areDifferent(java.lang.Object val1,
            java.lang.Object val2) | 
| static java.lang.String | convertRequiredFlagToString(int flag) | 
| static int | convertRequiredStringToFlag(java.lang.String strVal)Method to convert the given String to the corresponding value 
 for use in the required flag. | 
| void | copyFrom(ViewCriteriaItem vci) | 
| ViewCriteriaItem | createCarrier() | 
| protected ViewCriteriaItemValue | createCriteriaItemValue(int index) | 
| protected ViewCriteriaItemValue | createCriteriaItemValue(java.lang.Object value,
                       boolean isBindVar,
                       boolean isSqlFragment,
                       int index) | 
| ViewCriteria | createViewCriteriaForAccessor() | 
| boolean | displayInShortForm(LocaleContext locale)Returns true if the attribute is to displayed in the short(summary) form. | 
| java.lang.Object | get(java.lang.Object key) | 
| ViewObject | getAccessorVO(ViewObject originVO)For an accessor attribute, this method creates a View Object that
 works for the View Link definition. | 
| protected void | getAllBindVariables(java.util.HashMap<java.lang.String,Variable> map) | 
| java.util.ArrayList | getAllCompOpers() | 
| AttributeDef | getAttributeDef() | 
| byte | getAttributeKind()Gets the attribute value. | 
| java.lang.String | getBindVarNameFromValue(java.lang.Object value)Deprecated. 
 Internal use only. | 
| java.lang.String | getCategory(LocaleContext locale)Returns the category that this vc item belongs to | 
| java.lang.String | getColumnName()Gets the name of the database column the attribute represents. | 
| java.lang.String | getColumnNameForQuery()Gets the column name to be used in query statement. | 
| JboCompOper | getCompOper()Finds the JboCompOper object for the operator set for this
 VC item. | 
| JboCompOper | getCompOper(java.lang.String operator)Finds the JboCompOper object for the given operator. | 
| java.lang.String[][] | getCompOpers() | 
| java.lang.String[][] | getCompOpers(int cardinality) | 
| java.lang.String[][] | getCompOpers(LocaleContext locale)Returns a Map of operators for this attribute. | 
| int | getConjunction() | 
| java.lang.String | getConjunctionString() | 
| int | getControlType(LocaleContext locale)Returns the preferred control type for this attribute | 
| protected static java.lang.String | getDataType(int sqlType)For supporting the DATATYPE property that returns one of 
 String | Date | Number based on the SQL type of the attribute. | 
| java.lang.String | getDefaultOperator() | 
| java.lang.String | getDefinitionState(LocaleContext locale)Retrives the definition state string that indicates if this object is deprecated. | 
| int | getDisplayHeight(LocaleContext locale)Returns the display width for this attribute | 
| java.lang.String | getDisplayHint(LocaleContext locale)Retrieves the display hint that dictates whether this
 attribute should be visible or not. | 
| int | getDisplayWidth(LocaleContext locale)Returns the display width for this attribute | 
| int | getElemSQLType()Returns the jdbc type of the elements of this attribute. | 
| java.lang.Class | getElemType()Returns the element type of the attribute. | 
| java.lang.Object | getExprVarVal(java.lang.String varName) | 
| double | getFieldOrder(LocaleContext locale)Returns the field order for this vc item | 
| java.lang.String | getFormat(LocaleContext locale)returns the format string stored in the ui hints | 
| java.lang.String | getFormattedAttribute(AttributeList attrList,
                     LocaleContext locale)Returns a formatted value for this view criteria item when a view criteria row
 is passed in. | 
| Formatter | getFormatter(LocaleContext locale)returns the formatter object stored in the ui hints | 
| java.lang.String | getFormatterClassName(LocaleContext locale)Returns the formatter object stored in the ui hints | 
| java.lang.String | getHint(LocaleContext locale,
       java.lang.String sHintName)Return defaulted hint value | 
| java.lang.String | getHintValue(LocaleContext locale,
            java.lang.String sHintName)Return non-defaulted hint value | 
| int | getIndex()Gets the index of the attribute in the context of a  StoreInfoinstance. | 
| ViewCriteria | getItemHolder() | 
| java.lang.Class | getJavaType()Gets the Java class of the object stored for this attribute definition. | 
| java.lang.String | getLabel(LocaleContext locale)Retrieves the label to be used in any attribute prompts | 
| java.lang.String | getLabelPlural(LocaleContext locale)Retrives the label_plural text to be used for this attribute | 
| ListBindingDef | getListBindingDef() | 
| java.util.Hashtable | getLocalAndResourceProperties()Used by the marshaller to get all the properties and resources (on
 the server side only) that are defined in this view criteria item. | 
| java.util.ArrayList | getLocalCompOpers() | 
| protected LocaleContext | getLocale() | 
| java.lang.String | getLocaleName(LocaleContext locale,
             java.lang.String sName)function for retrieving the locale name of a hint | 
| java.util.Hashtable | getLocalProperties()Return only the properties that have been declared or overriden
 in the ViewCriteriaItem level. | 
| java.lang.String | getLOVName()Gets the name of the LOV (list of values) associated with this
 attribute definition. | 
| java.lang.String | getName()Gets the name of the attribute. | 
| ViewCriteria | getNestedViewCriteria()Method for use by the bean datacontrol to retrieve the
 nested view criteria via the accessor "nestedViewCriteria" | 
| java.lang.String | getOperator() | 
| java.util.Map | getOperatorsAsMap() | 
| java.lang.String | getOrigOp() | 
| java.lang.String | getPayloadHint(LocaleContext locale)Retrieves the payload hint that dictates whether this
  attribute should be included in service payload or not. | 
| int | getPrecision()Gets the precision of a numeric or string attribute. | 
| java.util.Hashtable | getProperties()Gets the table of properties. | 
| java.lang.Object | getProperty(java.lang.String hintName)Retrieves the specified property, if it exists. | 
| java.lang.Object | getProperty(java.lang.String hintName,
           LocaleContext locale) | 
| java.lang.String | getRemovable(LocaleContext locale)Retrives the mode hint to be used for this attribute | 
| java.lang.String | getRenderedMode(LocaleContext locale)Retrives the mode hint to be used for this attribute | 
| int | getRequired() | 
| java.lang.String | getRequiredString() | 
| protected void | getResourcesFromBundle(LocaleContext locale,
                      java.util.HashMap map)Get all resources from the resource bundle. | 
| java.lang.String | getRootCriteriaRelativeName() | 
| int | getScale()Get the scale value of a numeric attribute. | 
| int | getSQLType()Gets the JDBC type of the attribute. | 
| StructureDef | getStructureDef() | 
| java.lang.String | getTooltip(LocaleContext locale)Retrives the tooltip text to be used for this attribute | 
| AttributeHints | getUIHelper()Returns the user interface hints interface for retrieving hint
  information such as labels, prompts,... | 
| byte | getUpdateableFlag()Tests if an attribute can be modified. | 
| int | getUpperColumnsValue() | 
| java.lang.Object | getValue()Return the value of this VC item. | 
| java.lang.Object | getValue(int index)Return the value at the given index. | 
| int | getValueCardinality() | 
| int | getValueCount() | 
| java.lang.Object | getValueFromVariableManager(VariableValueManager vMgr) | 
| java.lang.Object | getValueFromWhereParams(java.util.HashMap whereParams)Deprecated. 
 since 12.1.1.0. | 
| int | getValueMaxCardinality() | 
| int | getValueMinCardinality() | 
| java.util.ArrayList<ViewCriteriaItemValue> | getValues() | 
| protected java.util.ArrayList<ViewCriteriaItemValue> | getValuesInternal() | 
| ViewCriteria | getViewCriteria() | 
| ViewCriteriaRow | getViewCriteriaRow() | 
| protected boolean | hasBindVarValue() | 
| boolean | hasData() | 
| boolean | hasData(java.util.HashMap whereParams)Deprecated. 
 since 12.1.1.0. Use  hasData(VariableValueManager)instead | 
| boolean | hasData(VariableValueManager vMgr) | 
| boolean | hasDataToGenerateQuery(VariableValueManager vMgr) | 
| boolean | hasFormatInformation(LocaleContext locale)Return true if any format  hints have been defined for this
   attribute. | 
| boolean | hasSameConjunction()Checks whether all items under this item has the
 same conjunction. | 
| boolean | hasWhereClause(boolean checkValue) | 
| LocaleContext | initDefLocaleContextInternal(LocaleContext locale) | 
| protected void | initForInOperator(java.lang.Object pluralVals) | 
| boolean | isAutoSubmit(LocaleContext locale)Returns the autoSubmit value for this vc item | 
| static boolean | isBindVariableForTransAttrsOnly(Variable var) | 
| boolean | isBindVarValue() | 
| boolean | isBindVarValue(int index) | 
| boolean | isDiscrColumn()Tests if an attribute is a discriminator. | 
| boolean | isEscapeWildCardChars() | 
| boolean | isGenerateIsNullClauseForBindVariables() | 
| boolean | isMandatory()Tests if an attribute does not allow null values. | 
| boolean | isMultiValueType()returns true if this item allows multiple values. | 
| static boolean | isNull(java.lang.Object val) | 
| boolean | isPrimaryKey()Tests if an attribute is a Primary Key. | 
| boolean | isQueriable()Tests if an attribute is queriable. | 
| boolean | isRemovable() | 
| boolean | isSelected() | 
| boolean | isSqlFragment() | 
| boolean | isSqlFragment(int index) | 
| boolean | isUpperColumns() | 
| boolean | isValidateBindVariables() | 
| static boolean | itemHasOnlyNullValues(ViewCriteriaItem vci,
                     ViewCriteria vc,
                     java.lang.String operator,
                     RowSet rowSetForSqlGen,
                     java.util.HashMap bindValsForSqlGen) | 
| ViewCriteriaItemCompound | makeCompound() | 
| static boolean | operatorAllowsMultiValues(java.lang.String oper) | 
| java.lang.Object | parseFormattedAttribute(java.lang.String sValue,
                       LocaleContext locale)Strips off the formatting from a string and constructs an
   instance of the attribute's domain using the 'clean' string as
   a parameter of the contructor. | 
| java.lang.Object | put(java.lang.Object key,
   java.lang.Object val) | 
| java.lang.Object | refreshProperty(java.lang.String hintName)Retrieves the specified property, if it exists. | 
| void | removeCompOper(JboCompOper compOper) | 
| void | removeProperty(java.lang.String hintName) | 
| void | setAllCompOpers(java.util.ArrayList allCompOpers) | 
| void | setAttributeDef(AttributeDef def) | 
| void | setCompOpers(java.util.ArrayList compOpers) | 
| void | setConjunction(int conj) | 
| void | setConjunctionString(java.lang.String conjStr) | 
| void | setEscapeWildCardChars(boolean b) | 
| void | setExprVarVal(java.lang.String varName,
             java.lang.Object val) | 
| void | setGenerateIsNullClauseForBindVariables(boolean b) | 
| void | setIsBindVarValue(boolean b) | 
| void | setIsBindVarValue(int index,
                 boolean b) | 
| void | setIsSqlFragment(boolean b) | 
| void | setIsSqlFragment(int index,
                boolean b) | 
| void | setName(java.lang.String name)Internal: Applications should not use this method. | 
| void | setNameAndPut(java.lang.String newName) | 
| void | setOperator(java.lang.String op) | 
| boolean | setOperator(java.lang.String op,
           boolean validate)Sets the operator on this view criteria item. | 
| protected void | setOrigOp(java.lang.String op) | 
| void | setProperties(java.util.Hashtable properties) | 
| void | setProperty(java.lang.String hintName,
           java.lang.Object hintValue) | 
| void | setRemovable(boolean b) | 
| void | setRequired(int val) | 
| void | setRequiredString(java.lang.String strVal) | 
| void | setUpperColumns(boolean b) | 
| void | setUpperColumnsValue(int val) | 
| void | setValidateBindVariables(boolean b) | 
| void | setValue(int index,
        java.lang.Object val) | 
| void | setValue(java.lang.Object val) | 
| void | setValueMaxCardinality(int card) | 
| void | setValueMinCardinality(int card) | 
| void | setValues(java.util.ArrayList<ViewCriteriaItemValue> values) | 
| void | suppressChangeNotification() | 
| java.lang.String | toString() | 
| static boolean | useBindVariableInWhereClauseIfNullValue(Variable var) | 
| static boolean | useBindVariableInWhereClauseIfNullValue(Variable var,
                                       java.util.List<ViewCriteriaItem> multiValueItems) | 
entrySet, equals, hashCode, internalGet, internalPut, setThrowIfPropertyNotFoundOnGetpublic static final java.lang.String QUOT
public static final java.lang.String OPERATOR
public static final java.lang.String OPERATORS
public static final java.lang.String ALL_OPERATORS
public static final java.lang.String OPERATORS_MAP
public static final java.lang.String VALUES
public static final java.lang.String VALUE
public static final java.lang.String CARDINALITY
public static final java.lang.String CONJUNCTIONSTR
public static final java.lang.String UPPER_COLUMNS_VALUE
public static final java.lang.String ITEMHOLDER
public static final java.lang.String NESTEDVC
public static final java.lang.String REMOVABLE
public static final java.lang.String REQUIRED
public static final java.lang.String GENERATE_ISNULL_CLAUSE_FOR_BINDVARS
public static final java.lang.String ESCAPE_WILD_CARD_CHARS
public static final java.lang.String VALIDATE_BINDVARS
public static final java.lang.String NAME
public static final java.lang.String ITEM_NUM
public static final java.lang.String LABEL
public static final java.lang.String RENDERED_MODE
public static final java.lang.String CATEGORY
public static final java.lang.String CONTROL_TYPE
public static final java.lang.String OPERATOR_DESCRIPTION
public static final java.lang.String OPERATOR_MINCARDINALITY
public static final java.lang.String OPERATOR_MAXCARDINALITY
public static final java.lang.String[] OPERATOR_LIST_ATTR_NAMES
public static final java.lang.String LOV_NAME
public static final java.lang.String DATATYPE
public static final java.lang.String VARIABLE
public static final java.lang.String CRITERIA_ITEM
public static final int VCITEM_SIMPLE
public static final int VCITEM_COMPOUND
public static final int VCITEM_REQUIRED
public static final int VCITEM_SELECTIVELY_REQUIRED
public static final int VCITEM_OPTIONAL
public static final java.lang.String VCITEM_REQUIRED_STR
public static final java.lang.String VCITEM_SELECTIVELY_REQUIRED_STR
public static final java.lang.String VCITEM_OPTIONAL_STR
public static final java.lang.String VCITEM_DATATYPE_STRING
public static final java.lang.String VCITEM_DATATYPE_DATE
public static final java.lang.String VCITEM_DATATYPE_NUMBER
public static final java.lang.String XML_PLURAL_VALUES
public static final java.lang.String RELATIVE_NAME
public static final java.lang.String RESET_ORIG_OPER
protected static final int DEFAULT_CONJ
protected transient ViewCriteriaRow mRow
protected transient java.util.ArrayList<ViewCriteriaItemValue> mValues
protected transient java.util.Hashtable mProperties
protected transient JboCompOper mCompOper
protected transient java.util.ArrayList mAllCompOpers
protected transient java.util.Map mOperatorsAsMap
protected transient java.util.ArrayList mCompOpers
public static final JboCompOper EQ_OPERATOR
public ViewCriteriaItem()
public ViewCriteriaItem(java.lang.String attrName,
                ViewCriteriaRow row)
public ViewCriteriaItem(AttributeDef def, ViewCriteriaRow row)
public void suppressChangeNotification()
public int getValueCardinality()
public int getValueMinCardinality()
public static final boolean operatorAllowsMultiValues(java.lang.String oper)
public boolean isMultiValueType()
public int getValueMaxCardinality()
protected void initForInOperator(java.lang.Object pluralVals)
public void setValueMaxCardinality(int card)
public void setValueMinCardinality(int card)
public java.lang.Object get(java.lang.Object key)
get in interface java.util.Mapget in class JboAbstractMappublic java.lang.Object put(java.lang.Object key,
                   java.lang.Object val)
put in interface java.util.Mapput in class JboAbstractMappublic ViewCriteria createViewCriteriaForAccessor()
public void setAttributeDef(AttributeDef def)
public java.lang.String getOperator()
public java.lang.String getDefaultOperator()
protected static java.lang.String getDataType(int sqlType)
public java.util.ArrayList getAllCompOpers()
public void setAllCompOpers(java.util.ArrayList allCompOpers)
public JboCompOper getCompOper()
public JboCompOper getCompOper(java.lang.String operator)
operator - the operator whose JboCompOper is to be returned.protected void setOrigOp(java.lang.String op)
public java.lang.String getOrigOp()
public void setOperator(java.lang.String op)
public boolean setOperator(java.lang.String op,
                  boolean validate)
validate is
 true and the operator is not valid, the operator will not be
 set on this view criteria item.op - the operatorvalidate - if true, ensure the operator is valid
                   before settingtrue if the operator is set, false if
          the operator is invalid and is not set.public void addCompOper(JboCompOper compOper)
public void addCompOper(int index,
               JboCompOper compOper)
public void removeCompOper(JboCompOper compOper)
public java.util.ArrayList getLocalCompOpers()
public void setCompOpers(java.util.ArrayList compOpers)
public java.lang.String[][] getCompOpers()
public java.lang.String[][] getCompOpers(int cardinality)
public java.util.Map getOperatorsAsMap()
protected LocaleContext getLocale()
public java.lang.Object getValue()
public java.lang.Object getValue(int index)
index - The index of the value in the list of values to be returned.public int getValueCount()
public java.util.ArrayList<ViewCriteriaItemValue> getValues()
protected java.util.ArrayList<ViewCriteriaItemValue> getValuesInternal()
public void setValues(java.util.ArrayList<ViewCriteriaItemValue> values)
public void setValue(java.lang.Object val)
public void setValue(int index,
            java.lang.Object val)
public void addItemValue(ViewCriteriaItemValue valueHolder)
protected ViewCriteriaItemValue createCriteriaItemValue(int index)
protected ViewCriteriaItemValue createCriteriaItemValue(java.lang.Object value, boolean isBindVar, boolean isSqlFragment, int index)
public int getConjunction()
getConjunction in interface ViewCriteriaComponentpublic void setConjunction(int conj)
setConjunction in interface ViewCriteriaComponentpublic java.lang.String getConjunctionString()
public boolean isUpperColumns()
isUpperColumns in interface ViewCriteriaComponentpublic void setUpperColumns(boolean b)
setUpperColumns in interface ViewCriteriaComponentpublic int getUpperColumnsValue()
getUpperColumnsValue in interface ViewCriteriaComponentpublic void setUpperColumnsValue(int val)
public static boolean useBindVariableInWhereClauseIfNullValue(Variable var)
public static boolean useBindVariableInWhereClauseIfNullValue(Variable var, java.util.List<ViewCriteriaItem> multiValueItems)
public static boolean itemHasOnlyNullValues(ViewCriteriaItem vci, ViewCriteria vc, java.lang.String operator, RowSet rowSetForSqlGen, java.util.HashMap bindValsForSqlGen)
public static boolean isBindVariableForTransAttrsOnly(Variable var)
public static java.lang.String convertRequiredFlagToString(int flag)
public static int convertRequiredStringToFlag(java.lang.String strVal)
strVal - The String representation of the value in the required fieldpublic java.lang.String getRequiredString()
public int getRequired()
public void setRequiredString(java.lang.String strVal)
public void setRequired(int val)
public void setConjunctionString(java.lang.String conjStr)
public boolean isBindVarValue()
public boolean isBindVarValue(int index)
public void setIsBindVarValue(boolean b)
public void setIsBindVarValue(int index,
                     boolean b)
public boolean isSqlFragment()
public boolean isSqlFragment(int index)
public void setIsSqlFragment(boolean b)
public void setIsSqlFragment(int index,
                    boolean b)
public boolean isRemovable()
public void setRemovable(boolean b)
public boolean isValidateBindVariables()
public void setValidateBindVariables(boolean b)
public boolean isGenerateIsNullClauseForBindVariables()
public void setGenerateIsNullClauseForBindVariables(boolean b)
public boolean isEscapeWildCardChars()
public void setEscapeWildCardChars(boolean b)
public java.lang.String getRootCriteriaRelativeName()
public ViewCriteria getViewCriteria()
public ViewCriteriaRow getViewCriteriaRow()
public StructureDef getStructureDef()
public AttributeDef getAttributeDef()
public byte getAttributeKind()
AttributeDefgetAttributeKind in interface AttributeDefATTR constants defined for this class.public java.lang.String getName()
AttributeDefgetName in interface AttributeDefpublic void setName(java.lang.String name)
public void setNameAndPut(java.lang.String newName)
public java.lang.String getColumnName()
AttributeDefgetColumnName in interface AttributeDefpublic java.lang.String getColumnNameForQuery()
AttributeDefgetColumnNameForQuery in interface AttributeDefpublic int getIndex()
AttributeDefStoreInfo
 instance.getIndex in interface AttributeDefpublic java.lang.Class getJavaType()
AttributeDefgetJavaType in interface AttributeDefpublic int getSQLType()
AttributeDefgetSQLType in interface AttributeDefTypespublic int getScale()
AttributeDefgetScale in interface AttributeDefpublic int getPrecision()
AttributeDef'Precision' for a string is the maximum length.
getPrecision in interface AttributeDefpublic boolean isDiscrColumn()
AttributeDefisDiscrColumn in interface AttributeDefpublic boolean isSelected()
isSelected in interface AttributeDefpublic boolean isQueriable()
AttributeDefQueriable attributes are those that may have a filter condition for the WHERE clause If this method returns false, the attribute will not be used in constructing the WHERE clause of SQL statements to fetch data.
isQueriable in interface AttributeDeftrue if this attribute is queriable.public byte getUpdateableFlag()
AttributeDefgetUpdateableFlag in interface AttributeDefREADONLY, UPDATEABLE, or UPDATEABLE_WHILE_NEW.public boolean isPrimaryKey()
AttributeDefisPrimaryKey in interface AttributeDeftrue if this is either a Primary Key attribute or
 part of the attributes that constitute the Primary Key for a given row.public java.lang.String getLOVName()
AttributeDefgetLOVName in interface AttributeDefgetLOVName in interface AttributeHintspublic ListBindingDef getListBindingDef()
getListBindingDef in interface AttributeDefpublic boolean isMandatory()
AttributeDefisMandatory in interface AttributeDeftrue if this attribute cannot store a null valuepublic AttributeHints getUIHelper()
AttributeDefgetUIHelper in interface AttributeDefAttributeHintspublic java.lang.Class getElemType()
AttributeDefFor VARRAYs, this method returns the class name of the elements that are in the VARRAY.
Element type is relevant only if the attribute is an array attribute.
getElemType in interface AttributeDefpublic int getElemSQLType()
AttributeDefFor VARRAYs, this method returns the jdbc type of the elements that are in the VARRAY.
Element type is relevant only if the attribute is an array attribute.
getElemSQLType in interface AttributeDefpublic ViewObject getAccessorVO(ViewObject originVO)
AttributeDefgetAccessorVO in interface AttributeDeforiginVO - the View Object that owns the accessorViewObject instance.public java.lang.Object getProperty(java.lang.String hintName)
PropertiesgetProperty in interface PropertieshintName - Property name.null.public java.lang.Object getProperty(java.lang.String hintName,
                           LocaleContext locale)
getProperty in interface Propertiespublic java.lang.Object refreshProperty(java.lang.String hintName)
PropertiesgetProperty.refreshProperty in interface PropertieshintName - Property name.null.public java.util.Hashtable getLocalProperties()
public java.util.Hashtable getLocalAndResourceProperties()
public java.util.Hashtable getProperties()
PropertiesgetProperties in interface Propertiespublic void setProperty(java.lang.String hintName,
               java.lang.Object hintValue)
public void removeProperty(java.lang.String hintName)
public void setProperties(java.util.Hashtable properties)
@Deprecated public java.lang.String getBindVarNameFromValue(java.lang.Object value)
protected void getAllBindVariables(java.util.HashMap<java.lang.String,Variable> map)
public ViewCriteriaItemCompound makeCompound()
public void copyFrom(ViewCriteriaItem vci)
public java.lang.String toString()
toString in class java.util.AbstractMappublic boolean hasData()
public boolean hasData(java.util.HashMap whereParams)
hasData(VariableValueManager) insteadpublic boolean hasData(VariableValueManager vMgr)
public boolean hasDataToGenerateQuery(VariableValueManager vMgr)
public boolean hasWhereClause(boolean checkValue)
public java.lang.Object getValueFromWhereParams(java.util.HashMap whereParams)
public java.lang.Object getValueFromVariableManager(VariableValueManager vMgr)
protected boolean hasBindVarValue()
public ViewCriteriaItem createCarrier()
public static boolean areDifferent(java.lang.Object val1,
                   java.lang.Object val2)
public static boolean isNull(java.lang.Object val)
public ViewCriteria getNestedViewCriteria()
public ViewCriteria getItemHolder()
public boolean hasSameConjunction()
public LocaleContext initDefLocaleContextInternal(LocaleContext locale)
protected void getResourcesFromBundle(LocaleContext locale, java.util.HashMap map)
locale - locale of the resources to be retrieved.map - the retrieved resources will be added to the map.public final java.lang.String getRemovable(LocaleContext locale)
getRemovable in interface ViewCriteriaItemHintspublic final java.lang.String getRenderedMode(LocaleContext locale)
getRenderedMode in interface ViewCriteriaItemHintspublic java.lang.String getLocaleName(LocaleContext locale, java.lang.String sName)
AttributeHintsgetLocaleName in interface AttributeHintspublic java.lang.String[][] getCompOpers(LocaleContext locale)
AttributeHintsgetCompOpers in interface AttributeHintspublic final java.lang.String getLabel(LocaleContext locale)
getLabel in interface GenericHintspublic final java.lang.String getTooltip(LocaleContext locale)
getTooltip in interface GenericHintspublic final java.lang.String getLabelPlural(LocaleContext locale)
getLabelPlural in interface GenericHintspublic java.lang.String getDefinitionState(LocaleContext locale)
getDefinitionState in interface GenericHintspublic java.lang.String getDisplayHint(LocaleContext locale)
getDisplayHint in interface AttributeHintspublic java.lang.String getPayloadHint(LocaleContext locale)
getPayloadHint in interface AttributeHintspublic final int getControlType(LocaleContext locale)
getControlType in interface AttributeHintspublic final int getDisplayWidth(LocaleContext locale)
getDisplayWidth in interface AttributeHintspublic final int getDisplayHeight(LocaleContext locale)
getDisplayHeight in interface AttributeHintspublic final boolean isAutoSubmit(LocaleContext locale)
isAutoSubmit in interface AttributeHintspublic final double getFieldOrder(LocaleContext locale)
getFieldOrder in interface AttributeHintspublic final java.lang.String getCategory(LocaleContext locale)
getCategory in interface AttributeHintspublic java.lang.String getHint(LocaleContext locale, java.lang.String sHintName)
getHint in interface AttributeHintspublic java.lang.String getHintValue(LocaleContext locale, java.lang.String sHintName)
getHintValue in interface GenericHintspublic final boolean hasFormatInformation(LocaleContext locale)
AttributeHintshasFormatInformation in interface AttributeHintspublic final java.lang.String getFormattedAttribute(AttributeList attrList, LocaleContext locale)
ViewCriteriaItemValue.getFormattedValue(LocaleContext) API.getFormattedAttribute in interface AttributeHintsattrList - The ViewCriteriaRow referencelocale - locale used in formatting the valuepublic java.lang.Object parseFormattedAttribute(java.lang.String sValue,
                                       LocaleContext locale)
AttributeHintsparseFormattedAttribute in interface AttributeHintspublic boolean displayInShortForm(LocaleContext locale)
AttributeHintsdisplayInShortForm in interface AttributeHintspublic final java.lang.String getFormat(LocaleContext locale)
AttributeHintsgetFormat in interface AttributeHintspublic final Formatter getFormatter(LocaleContext locale)
AttributeHintsgetFormatter in interface AttributeHintspublic final java.lang.String getFormatterClassName(LocaleContext locale)
getFormatterClassName in interface AttributeHintspublic java.lang.Object getExprVarVal(java.lang.String varName)
getExprVarVal in interface ExprValueSupplierpublic void setExprVarVal(java.lang.String varName,
                 java.lang.Object val)
setExprVarVal in interface ExprValueSupplier