Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 2 (11.1.2.2.0)
E17488-03


oracle.adf.view.rich.model
Class ConjunctionCriterion

java.lang.Object
  extended by oracle.adf.view.rich.model.Criterion
      extended by oracle.adf.view.rich.model.ConjunctionCriterion


public abstract class ConjunctionCriterion
extends Criterion

Represents a group of criterion objects that use one conjuction operator between them. Since this class contains a list of Criterion objects it is possible to build complex hierarchies of Criterion objects as follows.

conjCriterion A
   |__attrCriterion A1 (and)
   |__conjCriterion A2
      |__attrCriterion A21 (or)
      |__attrCriterion A22 (or)
      |__attrCriterion A22

The hierarchical representation of Criterion objects is especially useful when SQL style inner queries are desired.


Nested Class Summary
static class ConjunctionCriterion.Conjunction
          Enum constants for conjunction operator that is used to combine criterion values.

 

Constructor Summary
ConjunctionCriterion()
           

 

Method Summary
abstract  ConjunctionCriterion.Conjunction getConjunction()
          Returns a conjunction to be used with this ConjunctionCriterion object.
abstract  Criterion getCriterion(java.lang.Object key)
          Gets the Criterion object located at key within the list.
abstract  java.util.List<Criterion> getCriterionList()
          Returns the List of Criterion objects that are children on the ConjunctionCriterion.
abstract  java.lang.Object getKey(Criterion criterion)
          Gets a unique key of the Criterion object within its list, for the current ConjunctionCriterion.
abstract  void setConjunction(ConjunctionCriterion.Conjunction conjunction)
          Sets the conjunction to use with this ConjunctionCriterion object.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ConjunctionCriterion

public ConjunctionCriterion()

Method Detail

getConjunction

public abstract ConjunctionCriterion.Conjunction getConjunction()
Returns a conjunction to be used with this ConjunctionCriterion object.
Returns:
a ConjunctionType

getCriterionList

public abstract java.util.List<Criterion> getCriterionList()
Returns the List of Criterion objects that are children on the ConjunctionCriterion.
Returns:
a List<Criterion>

getKey

public abstract java.lang.Object getKey(Criterion criterion)
Gets a unique key of the Criterion object within its list, for the current ConjunctionCriterion. If there are nested ConjunctionCriterion objects below the current level then calling this method should return the key of the Criterion object if it is found or null. All Criterion objects can be retrived from the root ConjunctionCriterion.
Parameters:
criterion -
Returns:
a unique key identifying the Criterion object. It's important that the key be unique across all Criterion objects belonging to the root ConjunctionCriterion.

getCriterion

public abstract Criterion getCriterion(java.lang.Object key)
Gets the Criterion object located at key within the list. Calling this method from the root ConjunctionCriterion object will yield the Criterion object (nested at any level in the hierarchy) or null if not found. Calling this from a nested ConjunctionCriterion will delegate the call to the root ConjunctionCriterion
Parameters:
key - the unique key
Returns:
a Criterion object identified by the key

setConjunction

public abstract void setConjunction(ConjunctionCriterion.Conjunction conjunction)
Sets the conjunction to use with this ConjunctionCriterion object.
Parameters:
conjunction - a ConjunctionType instance

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 2 (11.1.2.2.0)
E17488-03


Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.