Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


oracle.dss.rules.discriminator
Class ValueDiscriminator

java.lang.Object
  |
  +--oracle.dss.rules.discriminator.ValueDiscriminator
All Implemented Interfaces:
java.lang.Cloneable, Discriminator, DiscriminatorXML, java.io.Serializable
Direct Known Subclasses:
DateValueDiscriminator, NumberValueDiscriminator, StringValueDiscriminator

public abstract class ValueDiscriminator
extends java.lang.Object
implements DiscriminatorXML

Abstract Discriminator for a rule that applies based on a comparison of two values. Concrete subclasses of this class specify the kind of value and how the value from the DataView must relate to this value for the DiscriminatorRule to apply. For example, a NumberValueDiscriminator can specify that a DiscriminatorRule should apply to data values greater than 500,000.

This class defines constants for the following relational operators: =, <, <=, >, >=, >, and !=. This class is abstract because it does not define the applies method from the Discriminator interface. Discriminators that extend this class must implement the method.

See Also:
Serialized Form

Field Summary
static int EQ
          Equals (=).
static int GE
          Greater than or equal to (>=).
static int GT
          Greater than (>).
static int LE
          Less than or equal to (<=).
static int LT
          Less than (<).
static int NE
          Not equal (!=).

 

Constructor Summary
ValueDiscriminator()
          Constructor that does not take an operator.
ValueDiscriminator(int relOp)
          Constructor that initializes the relational operator.

 

Method Summary
abstract  java.lang.Object clone()
          Clones this ValueDiscriminator.
 int getRelOperator()
          Retrieves the relational operator for this ValueDiscriminator.
 void setRelOperator(int relOp)
          Specifies the relational operator for this.

 

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

 

Methods inherited from interface oracle.dss.rules.discriminator.DiscriminatorXML
getXML, setXML

 

Methods inherited from interface oracle.dss.rules.discriminator.Discriminator
applies

 

Field Detail

EQ

public static final int EQ
Equals (=). The left operand (from the RuleContext) must equal the right operand (from this ValueDiscriminator).

LT

public static final int LT
Less than (<). The left operand (from the RuleContext) must be less than the right operand (from this ValueDiscriminator). For dates, the left operand must be earlier than the right operand.

LE

public static final int LE
Less than or equal to (<=). The left operand (from the RuleContext) must be less than or equal to the right operand (from this ValueDiscriminator). For dates, the left operand must be earlier than or equal to the right operand.

GT

public static final int GT
Greater than (>). The left operand (from the RuleContext) must be greater than the right operand (from this ValueDiscriminator). For dates, the left operand must be later than the right operand.

GE

public static final int GE
Greater than or equal to (>=). The left operand (from the RuleContext) must be greater than or equal to the right operand (from this ValueDiscriminator). For dates, the left operand must be later than or equal to the right operand.

NE

public static final int NE
Not equal (!=). The left operand (from the RuleContext) must not equal the right operand (from this ValueDiscriminator).
Constructor Detail

ValueDiscriminator

public ValueDiscriminator()
Constructor that does not take an operator. If you use this constructor, call the setRelOperator method to specify the relational operator for this ValueDiscriminator.

ValueDiscriminator

public ValueDiscriminator(int relOp)
Constructor that initializes the relational operator.
Parameters:
relOp - A constant that represents the relational operator to use in this ValueDiscriminator.
Method Detail

clone

public abstract java.lang.Object clone()
Clones this ValueDiscriminator.
Specified by:
clone in interface Discriminator
Returns:
The clone of this ValueDiscriminator

getRelOperator

public int getRelOperator()
Retrieves the relational operator for this ValueDiscriminator.
Returns:
A constant that represents the relational operator that is in effect for this ValueDiscriminator. Valid constants are listed in the See Also section.
See Also:
EQ, LT, LE, GT, GE, NE

setRelOperator

public void setRelOperator(int relOp)
Specifies the relational operator for this. ValueDiscriminator.
Parameters:
relOp - A constant that represents the relational operator for this ValueDiscriminator. Valid constants are defined in the See Also section.
See Also:
EQ, LT, LE, GT, GE, NE

Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


Copyright © 2003, Oracle. All Rights Reserved.