Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1)

E10653-04

oracle.jbo.common
Class ViewCriteriaItemImpl

java.lang.Object
  extended by java.util.AbstractMap
      extended by oracle.jbo.common.JboAbstractMap
          extended by oracle.jbo.ViewCriteriaItem
              extended by oracle.jbo.common.ViewCriteriaItemImpl
All Implemented Interfaces:
java.io.Serializable, java.util.Map, AttributeDef, AttributeHints, ExprValueSupplier, DefPersistable, PersistentDefinition, Properties, ViewCriteriaComponent, ViewCriteriaItemHints

public class ViewCriteriaItemImpl
extends ViewCriteriaItem
implements DefPersistable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface oracle.jbo.AttributeHints
AttributeHints.ControlType
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class oracle.jbo.ViewCriteriaItem
CARDINALITY, CONJUNCTIONSTR, CONTROL_TYPE, CRITERIA_ITEM, DATATYPE, DEFAULT_CONJ, GENERATE_ISNULL_CLAUSE_FOR_BINDVARS, ITEM_NUM, ITEMHOLDER, LABEL, LOV_NAME, mAllCompOpers, mCompOper, mCompOpers, mOperatorsAsMap, mProperties, mRow, mValues, NAME, NESTEDVC, OPERATOR, OPERATOR_DESCRIPTION, OPERATOR_LIST_ATTR_NAMES, OPERATORS, OPERATORS_MAP, QUOT, REMOVABLE, RENDERED_MODE, REQUIRED, UPPER_COLUMNS_VALUE, VALIDATE_BINDVARS, VALUE, VALUES, VARIABLE, VCITEM_COMPOUND, VCITEM_DATATYPE_DATE, VCITEM_DATATYPE_NUMBER, VCITEM_DATATYPE_STRING, VCITEM_OPTIONAL, VCITEM_OPTIONAL_STR, VCITEM_REQUIRED, VCITEM_REQUIRED_STR, VCITEM_SELECTIVELY_REQUIRED, VCITEM_SELECTIVELY_REQUIRED_STR, VCITEM_SIMPLE, XML_PLURAL_VALUES
 
Fields inherited from class oracle.jbo.common.JboAbstractMap
MAP_NULL_VALUE
 
Fields inherited from interface oracle.jbo.mom.xml.DefPersistable
XML_STATEMENT
 
Fields inherited from interface oracle.jbo.AttributeDef
ATTR_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_NEW
 
Fields inherited from interface oracle.jbo.ViewCriteriaItemHints
CRITERIA_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_NEVER
 
Fields inherited from interface oracle.jbo.ViewCriteriaComponent
VC_CONJ_AND, VC_CONJ_NOT, VC_CONJ_OR, VC_CONJ_UNION, VC_UPPER_COL_DEFAULT, VC_UPPER_COL_FALSE, VC_UPPER_COL_TRUE
 
Fields inherited from interface oracle.jbo.AttributeHints
ATTRIBUTE_AUTOSUBMIT, ATTRIBUTE_BINDEDITOR_LABEL, ATTRIBUTE_CTL_CATEGORY, ATTRIBUTE_CTL_DISPLAYHEIGHT, ATTRIBUTE_CTL_DISPLAYWIDTH, ATTRIBUTE_CTL_FIELD_ORDER, ATTRIBUTE_CTL_FORMTYPE, ATTRIBUTE_CTL_TYPE, ATTRIBUTE_DISPLAY_HINT, ATTRIBUTE_DISPLAY_HINT_DISPLAY, ATTRIBUTE_DISPLAY_HINT_HIDE, ATTRIBUTE_FORM_TYPE_DETAIL, ATTRIBUTE_FORM_TYPE_SHORT, ATTRIBUTE_LABEL, ATTRIBUTE_TOOLTIP, CTL_CHECK_BOX, CTL_CHOICE_LIST, CTL_COMBO_BOX, CTL_COMBO_BOX_LOV, CTL_DATE, CTL_DEFAULT, 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_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_DISPLAY_HEIGHT, HINT_NAME_DISPLAY_HINT, HINT_NAME_DISPLAY_WIDTH, HINT_NAME_FIELD_ORDER, HINT_NAME_FORMAT, HINT_NAME_LABEL, HINT_NAME_MANDATORY, HINT_NAME_TOOLTIP, HINT_NAME_UPDATEABLE, PNAME_Button, PNAME_ButtonGroup, PNAME_ComboBox, PNAME_ComboBoxLovEdit, PNAME_EnumList, PNAME_LovButton, PNAME_TextField
 
Constructor Summary
ViewCriteriaItemImpl(AttributeDef def, ViewCriteriaRow row)
           
ViewCriteriaItemImpl(java.lang.String attrName, ViewCriteriaRow row)
           
 
Method Summary
protected  ViewCriteriaItemValue createCriteriaItemValue(int index)
           
protected  ViewCriteriaItemValue createCriteriaItemValue(java.lang.Object value, boolean isBindVar, boolean isSqlFragment, int index)
           
 DefinitionManager getDefManager()
           
 java.lang.String getDefXMLElementTag()
           
 java.lang.String getDefXMLNameSpace()
           
 java.lang.String getFullName()
          This method returns the Persistence reference of the object.
 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.
 DefPersistable getOrigObject()
           
 java.lang.String getXMLElementTag()
          Returns a piece of static info for the type of object this is invoked upon.
 boolean isDirty()
          This method returns if an Object is modified from last save/load
 boolean isNew()
          This method returns if this object is previously persisted.
protected  java.util.Map loadSchemaProperties(DefElement xmlElement)
          Load the Schema based hints for this view criteria item.
 void loadXMLContents(DefElement xmlElement)
           
 void setDirty(boolean isDirty)
          This method marks the Object dirty
 void setNew(boolean b)
          This method marks the as previously persisted.
 void setOrigObject(DefPersistable oldObj)
           
 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
 void writeObject(DefWriter jos)
          Objects should write their persistence output in this method
 
Methods inherited from class oracle.jbo.ViewCriteriaItem
addCompOper, addItemValue, areDifferent, convertRequiredFlagToString, convertRequiredStringToFlag, copyFrom, createCarrier, createViewCriteriaForAccessor, displayInShortForm, get, getAccessorVO, getAllBindVariables, getAttributeDef, getAttributeKind, getColumnName, getColumnNameForQuery, getCompOper, getCompOper, getCompOpers, getCompOpers, getCompOpers, getConjunction, getConjunctionString, getControlType, getDataType, getDisplayHeight, getDisplayHint, getDisplayWidth, getElemSQLType, getElemType, getExprVarVal, getFormat, getFormattedAttribute, getFormatter, getFormatterClassName, getHint, getHintValue, getIndex, getItemHolder, getJavaType, getLabel, getListBindingDef, getLocalCompOpers, getLocale, getLocaleName, getLocalProperties, getLOVName, getName, getNestedViewCriteria, getOperator, getOperatorsAsMap, getOrigOp, getPrecision, getProperties, getProperty, getProperty, getRemovable, getRenderedMode, getRequired, getRequiredString, getResourcesFromBundle, getRootCriteriaRelativeName, getScale, getSQLType, getStructureDef, getTooltip, getUIHelper, getUpdateableFlag, getUpperColumnsValue, getValue, getValue, getValueCardinality, getValueCount, getValueFromWhereParams, getValueMaxCardinality, getValueMinCardinality, getValues, getViewCriteria, getViewCriteriaRow, hasBindVarValue, hasData, hasData, hasFormatInformation, hasSameConjunction, initForInOperator, isAutoSubmit, isBindVariableForTransAttrsOnly, isBindVarValue, isBindVarValue, isDiscrColumn, isGenerateIsNullClauseForBindVariables, isMandatory, isMultiValueType, isNull, isPrimaryKey, isQueriable, isRemovable, isSelected, isSqlFragment, isSqlFragment, isUpperColumns, isValidateBindVariables, makeCompound, operatorAllowsMultiValues, parseFormattedAttribute, put, refreshProperty, removeProperty, setAttributeDef, setCompOpers, setConjunction, setConjunctionString, setExprVarVal, setGenerateIsNullClauseForBindVariables, setIsBindVarValue, setIsBindVarValue, setIsSqlFragment, setIsSqlFragment, setName, setNameAndPut, setOperator, setOrigOp, setProperties, setProperty, setRemovable, setRequired, setRequiredString, setUpperColumns, setUpperColumnsValue, setValidateBindVariables, setValue, setValue, setValueMaxCardinality, setValueMinCardinality, setValues, suppressChangeNotification, toString, useBindVariableInWhereClauseIfNullValue
 
Methods inherited from class oracle.jbo.common.JboAbstractMap
entrySet, equals, hashCode, internalGet, internalPut, setThrowIfPropertyNotFoundOnGet
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, isEmpty, keySet, putAll, remove, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ViewCriteriaItemImpl

public ViewCriteriaItemImpl(java.lang.String attrName,
                            ViewCriteriaRow row)

ViewCriteriaItemImpl

public ViewCriteriaItemImpl(AttributeDef def,
                            ViewCriteriaRow row)
Method Detail

getDefManager

public DefinitionManager getDefManager()

createCriteriaItemValue

protected ViewCriteriaItemValue createCriteriaItemValue(int index)
Overrides:
createCriteriaItemValue in class ViewCriteriaItem

createCriteriaItemValue

protected ViewCriteriaItemValue createCriteriaItemValue(java.lang.Object value,
                                                        boolean isBindVar,
                                                        boolean isSqlFragment,
                                                        int index)
Overrides:
createCriteriaItemValue in class ViewCriteriaItem

isDirty

public boolean isDirty()
Description copied from interface: DefPersistable
This method returns if an Object is modified from last save/load

Specified by:
isDirty in interface DefPersistable
Returns:
Returns true if the Object is dirty. Returns false otherwise.

setDirty

public void setDirty(boolean isDirty)
Description copied from interface: DefPersistable
This method marks the Object dirty

Specified by:
setDirty in interface DefPersistable
Parameters:
isDirty - If true the Object is marked Dirty.

isNew

public boolean isNew()
Description copied from interface: DefPersistable
This method returns if this object is previously persisted.

Specified by:
isNew in interface DefPersistable
Returns:
true if the Object is previously persisted. Returns false otherwise.

setNew

public void setNew(boolean b)
Description copied from interface: DefPersistable
This method marks the as previously persisted. By default all objects are new objects. When the object is persisted first time, that object is marked as 'not new' object

Specified by:
setNew in interface DefPersistable
Parameters:
b - If true the Object is marked as new object.

getOrigObject

public DefPersistable getOrigObject()
Specified by:
getOrigObject in interface DefPersistable

setOrigObject

public void setOrigObject(DefPersistable oldObj)
Specified by:
setOrigObject in interface DefPersistable

getFullName

public java.lang.String getFullName()
Description copied from interface: DefPersistable
This method returns the Persistence reference of the object. The Persistence Reference is uniquely identifiable fully qualified name of the object.

Specified by:
getFullName in interface DefPersistable
Returns:
the Persistence Reference of the object

getLocalAndResourceProperties

public 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.

Overrides:
getLocalAndResourceProperties in class ViewCriteriaItem
Returns:
A table containing the properties

writeObject

public void writeObject(DefWriter jos)
Description copied from interface: PersistentDefinition
Objects should write their persistence output in this method

Specified by:
writeObject in interface PersistentDefinition
Parameters:
jos - the Output storage for persistence

writeContents

public void writeContents(DefWriter jos)
Description copied from interface: PersistentDefinition
Objects should write their persistence output in this method

Specified by:
writeContents in interface PersistentDefinition
Parameters:
jos - the Output storage for persistence

writeChildren

public void writeChildren(DefWriter jos)
Description copied from interface: PersistentDefinition
Writes the Object's children to the Persistent storage

Specified by:
writeChildren in interface PersistentDefinition
Parameters:
jos - the Output storage for persistence

loadXMLContents

public void loadXMLContents(DefElement xmlElement)

getXMLElementTag

public java.lang.String getXMLElementTag()
Description copied from interface: PersistentDefinition
Returns a piece of static info for the type of object this is invoked upon. Examples are PreparedStatements for insert, update, delete, and String containing a base the select statement for retrieving instances of this type through the SQLInputStream

Specified by:
getXMLElementTag in interface PersistentDefinition
Returns:
returns the Statement required to store in Persitent Storage. Incase of XML, it just returns the String. In the case of SQL a JDBC PreparedStatement is returned.

getDefXMLElementTag

public java.lang.String getDefXMLElementTag()
Specified by:
getDefXMLElementTag in interface PersistentDefinition

getDefXMLNameSpace

public java.lang.String getDefXMLNameSpace()
Specified by:
getDefXMLNameSpace in interface PersistentDefinition

loadSchemaProperties

protected java.util.Map loadSchemaProperties(DefElement xmlElement)
Load the Schema based hints for this view criteria item.

Parameters:
xmlElement - The "SchemaProperties" parent for the hints
Returns:
The name value pairs for the control hints defined on this vc item

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1)

E10653-04

Copyright © 1997, 2010, Oracle. All rights reserved.