Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.3.0)

E17483-04


oracle.jbo.common
Class ViewCriteriaImpl

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector
              extended by oracle.jbo.ViewCriteria
                  extended by oracle.jbo.common.ViewCriteriaImpl

All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess, ExprWrappable, DefPersistable, PersistentDefinition, NavigatableRowIterator, Properties, RowIterator, ValidationManager, VariableManagerOwner, VariableManagerOwnerBase, ViewCriteriaComponent

public class ViewCriteriaImpl
extends ViewCriteria
implements DefPersistable, ValidationManager
See Also:
Serialized Form

Nested Class Summary

 

Nested classes/interfaces inherited from class oracle.jbo.ViewCriteria
ViewCriteria.NestedViewCriteriaRow

 

Field Summary

 

Fields inherited from class oracle.jbo.ViewCriteria
BASE_QUERY_ALIAS_BASE, CRITERIA_MODE_CACHE, CRITERIA_MODE_QUERY, FIND_MODE, FIND_MODE_ITERATOR, listeners, mProperties, mSavedState, mVariableManager, NESTED_QUERY_ALIAS_BASE, NULL_VALUE, RELATIVE_NAME, ROOT_VC_NAME, TEMP_VARIABLE

 

Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData

 

Fields inherited from class java.util.AbstractList
modCount

 

Fields inherited from interface oracle.jbo.mom.xml.DefPersistable
XML_STATEMENT

 

Fields inherited from interface oracle.jbo.RowIterator
ITER_MODE_LAST_PAGE_FULL, ITER_MODE_LAST_PAGE_PARTIAL, SLOT_BEFORE_FIRST, SLOT_BEYOND_LAST, SLOT_DELETED, SLOT_VALID

 

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

 

Constructor Summary
ViewCriteriaImpl(DefinitionManager defMgr, StructureDef structureDef)
           
ViewCriteriaImpl(DefinitionManager defMgr, StructureDef structureDef, VariableManager voVariableManager)
           
ViewCriteriaImpl(DefinitionManager defMgr, ViewCriteria parent, java.lang.String structDefFullName)
           

 

Method Summary
 void addValidator(JboValidatorInterface validator)
           
 void copyFrom(ViewCriteria vc)
          For internal use only.
 ViewCriteria createCriteria()
           
 ViewCriteriaRow createViewCriteriaRow()
          Creates a new ViewCriteriaRow for this ViewCriteria.
 ViewCriteriaUsage createViewCriteriaUsage()
          Creates a View Criteria reference to an existing view criteria
 VariableValueManager getContextualVariableManager()
          For internal use only.
 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.
 DefPersistable getOrigObject()
           
 java.util.ArrayList getValidators()
           
protected  VariableManager getVoVariableManager()
          For internal use only.
 java.lang.String getXMLElementTag()
          Returns a piece of static info for the type of object this is invoked upon.
 void initUniqueVCName()
           
 boolean isNew()
          This method returns if this object is previously persisted.
 void loadXMLContents(DefElement xmlElement)
           
 void removeValidator(JboValidatorInterface validator)
           
 void setNew(boolean b)
          This method marks the as previously persisted.
 void setOrigObject(DefPersistable oldObj)
           
 void setTempVariableManagerVC(ViewCriteria vc)
           
 void validate()
          Deprecated.  
 void validate(java.util.HashMap whereParams)
          Deprecated. since 12.1.1.0
 void validate(VariableValueManager vMgr)
          Performs view criteria item required and selectively required validation.
 void validateRow(ViewCriteriaRow row, java.util.HashMap whereParams)
          Deprecated. since 12.1.1.0
 void validateRow(ViewCriteriaRow row, VariableValueManager vMgr)
           
 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.ViewCriteria
activate, add, add, addAll, addAll, addElement, addListener, addRow, addTableAliasSuffix, clausesCacheDisabled, clear, convertArrayToMap, convertMapToArray, convertVarMapToVarMgr, createAndInitRow, createKey, createNestedCriteriaRow, createRow, createSimpleRow, criteriaChanged, ensureVariableManager, enumerateRowsInRange, findByAltKey, findByEntity, findByKey, findByViewCriteria, findElementByName, findElementWithRelativeName, findViewCriteriaItem, first, get1013CompatibilityMode, getAllBindVariables, getAllBindVariables, getAllRowsInRange, getAttributeIndexOf, getClauses, getConjunction, getCriteriaAlias, getCriteriaMode, getCurrentRow, getCurrentRowIndex, getCurrentRowSlot, getDisplayName, getElementProperties, getExtendedDataForVarName, getExtendedDataOffset, getFetchedRowCount, getIterMode, getKeepExtendedDataOffset, getListenersList, getLocale, getLocaleName, getMessageBundleClass, getName, getNestedViewCriteria, getParentViewCriteria, getProperties, getProperties, getProperty, getProperty, getRangeIndexOf, getRangeSize, getRangeStart, getResourceBundleDef, getResourcesFromBundle, getRootCriteriaRelativeName, getRootViewCriteria, getRow, getRowAtRangeIndex, getRowCount, getRowCountInRange, getRows, getSavedVariables, getStructureDef, getStructureDefFullName, getUpperColumnsValue, getUsedAttributeNames, getUsedViewAttributes, getVariableManager, getViewCriteriaManager, getViewObject, getViewObject, hasData, hasNext, hasPrevious, hasVariables, initName, insertElementAt, insertRow, insertRowAtRangeIndex, isAppliedIfJoinSatisfied, isCriteriaForQuery, isCriteriaForRowMatch, isDirty, isItemHolder, isRangeAtBottom, isRangeAtTop, isRowValidation, isSubQueryAliasEnabled, isTemporaryVariable, isTemporaryVariableBelongs, isUpperColumns, isUseAttributeFormatHint, isUseBindVarsOnly, last, loadVOBindVariables, mergeFrom, next, passivate, passivateElementProperties, previous, putCriteriaAlias, putDefaultCriteriaAlias, refreshProperty, remove, remove, removeAll, removeAllElements, removeCurrentRow, removeCurrentRowAndRetain, removeCurrentRowFromCollection, removeElement, removeElementAt, removeListener, removeProperty, removeRange, removeRow, reset, resetCriteria, resolve, retainAll, saveState, scrollRange, scrollRangeTo, scrollToRangePage, set, set1013CompatibilityMode, setAppliedIfJoinSatisfied, setClauses, setConjunction, setConjunctionOnChildren, setCriteriaForQuery, setCriteriaMode, setCurrentRow, setCurrentRowAtRangeIndex, setDirty, setElementAt, setExtendedDataForVarName, setExtendedDataOffset, setIterMode, setKeepExtendedDataOffset, setName, setParent, setProperties, setProperty, setRangeSize, setRangeStart, setRowValidation, setSavedValuesInVariableMgr, setSavedVariables, setStructureDefFullName, setSubQueryAliasEnabled, setUpperColumns, setUseAttributeFormatHint, setUseBindVarsForLiterals, setVariableManager, setViewCriteriaManager, setViewObject, toString, trimNoDataRows, useBindVarsOnly

 

Methods inherited from class java.util.Vector
capacity, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, isEmpty, lastElement, lastIndexOf, lastIndexOf, setSize, size, subList, toArray, toArray, trimToSize

 

Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator

 

Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface oracle.jbo.mom.xml.DefPersistable
isDirty, setDirty

 

Methods inherited from interface oracle.jbo.rules.ValidationManager
getName, getResourceBundleDef

 

Methods inherited from interface java.util.List
iterator, listIterator, listIterator

 

Constructor Detail

ViewCriteriaImpl

public ViewCriteriaImpl(DefinitionManager defMgr,
                        StructureDef structureDef)

ViewCriteriaImpl

public ViewCriteriaImpl(DefinitionManager defMgr,
                        StructureDef structureDef,
                        VariableManager voVariableManager)

ViewCriteriaImpl

public ViewCriteriaImpl(DefinitionManager defMgr,
                        ViewCriteria parent,
                        java.lang.String structDefFullName)

Method Detail

initUniqueVCName

public void initUniqueVCName()

copyFrom

public void copyFrom(ViewCriteria vc)
Description copied from class: ViewCriteria
For internal use only. Creates a deep copy of the view criteria
Overrides:
copyFrom in class ViewCriteria
Parameters:
vc - the view criteria that needs to be copied

createCriteria

public ViewCriteria createCriteria()
Overrides:
createCriteria in class ViewCriteria
Returns:
A new view criteria instance that may be added as a nested view criteria to this view criteria. ViewCriteria.add(Object) needs to be invoked to make the returned instance a nested view criteria

createViewCriteriaRow

public ViewCriteriaRow createViewCriteriaRow()
Description copied from class: ViewCriteria
Creates a new ViewCriteriaRow for this ViewCriteria. A ViewCriteriaRow object is an array for WHERE clause criteria. After setting up the ViewCriteriaRow, call add(viewCriteriaRow) or addElement(viewCriteriaRow) to add it to this ViewCriteria.
Overrides:
createViewCriteriaRow in class ViewCriteria
Returns:
a ViewCriteriaRow, an array for WHERE clause criteria.
See Also:
ViewCriteriaRow

createViewCriteriaUsage

public ViewCriteriaUsage createViewCriteriaUsage()
Description copied from class: ViewCriteria
Creates a View Criteria reference to an existing view criteria
Overrides:
createViewCriteriaUsage in class ViewCriteria
Returns:
a ViewCriteriaUsaga instance that contains the the information needed to resolve the view criteria
See Also:
ViewCriteriaUsage

getDefManager

public DefinitionManager getDefManager()

getVoVariableManager

protected VariableManager getVoVariableManager()
Description copied from class: ViewCriteria
For internal use only.
Overrides:
getVoVariableManager in class ViewCriteria
Returns:
the variable manager of the view object that owns this view criteria.

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
Specified by:
getFullName in interface ValidationManager
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.
Overrides:
getLocalAndResourceProperties in class ViewCriteria
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

addValidator

public void addValidator(JboValidatorInterface validator)
Specified by:
addValidator in interface ValidationManager

removeValidator

public void removeValidator(JboValidatorInterface validator)

getValidators

public java.util.ArrayList getValidators()
Specified by:
getValidators in interface ValidationManager

validate

public void validate()
Deprecated. 
For internal use only. Performs view criteria item required and selectively required validation
Overrides:
validate in class ViewCriteria

validate

public void validate(java.util.HashMap whereParams)
Deprecated. since 12.1.1.0
Validate the view criteria.
Overrides:
validate in class ViewCriteria
Parameters:
whereParams - A Map of <bind variable name, value> if validation against bind variable values should take place. Pass in null to bypass checking for null bind variable values.

validate

public void validate(VariableValueManager vMgr)
Description copied from class: ViewCriteria
Performs view criteria item required and selectively required validation.
Overrides:
validate in class ViewCriteria

validateRow

public void validateRow(ViewCriteriaRow row,
                        java.util.HashMap whereParams)
Deprecated. since 12.1.1.0

validateRow

public void validateRow(ViewCriteriaRow row,
                        VariableValueManager vMgr)

setTempVariableManagerVC

public void setTempVariableManagerVC(ViewCriteria vc)

getContextualVariableManager

public VariableValueManager getContextualVariableManager()
Description copied from class: ViewCriteria
For internal use only.
Overrides:
getContextualVariableManager in class ViewCriteria

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.3.0)

E17483-04


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