Skip navigation links
oracle.jbo.common
Class ViewCriteriaImpl
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
oracle.jbo.ViewCriteria
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, DefPersistable, PersistentDefinition, NavigatableRowIterator, Properties, RowIterator, ValidationManager, VariableManagerOwner, VariableManagerOwnerBase, ViewCriteriaComponent
-
public class ViewCriteriaImpl
- extends ViewCriteria
- implements DefPersistable, ValidationManager
- See Also:
- Serialized Form
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, TEMP_VARIABLE |
Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
modCount |
Methods inherited from class oracle.jbo.ViewCriteria |
activate, add, add, addAll, addAll, addElement, addListener, addRow, addTableAliasSuffix, clear, convertArrayToMap, convertMapToArray, createAndInitRow, createKey, createNestedCriteriaRow, createRow, createSimpleRow, criteriaChanged, ensureVariableManager, enumerateRowsInRange, findByAltKey, findByEntity, findByKey, findByViewCriteria, findElementWithRelativeName, findViewCriteriaItem, first, get1013CompatibilityMode, getAllBindVariables, getAllBindVariables, getAllRowsInRange, getAttributeIndexOf, getClauses, getConjunction, getCriteriaAlias, getCriteriaMode, getCurrentRow, getCurrentRowIndex, getCurrentRowSlot, getDisplayName, getElementProperties, getFetchedRowCount, getIterMode, getListenersList, 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, 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, setCriteriaForQuery, setCriteriaMode, setCurrentRow, setCurrentRowAtRangeIndex, setDirty, setElementAt, setIterMode, setName, setParent, setProperties, setProperty, setRangeSize, setRangeStart, setRowValidation, setSavedValuesInVariableMgr, setSavedVariables, setStructureDefFullName, setSubQueryAliasEnabled, setUpperColumns, setUseAttributeFormatHint, 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 java.util.List |
iterator, listIterator, listIterator |
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)
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()
- Description copied from class:
ViewCriteria
- Performs view criteria item required and selectively required validation
-
- Overrides:
validate
in class ViewCriteria
validate
public void validate(java.util.HashMap whereParams)
- 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.
validateRow
public void validateRow(ViewCriteriaRow row,
java.util.HashMap whereParams)
Skip navigation links
Copyright © 1997, 2009, Oracle. All rights reserved.