|
Oracle Fusion Applications Java API Reference for Oracle Enterprise Scheduler Service 11g Release 1 (11.1.2) E20742-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.as.scheduler.Filter
public class Filter
Used to specify criteria for querying. An expression is composed of one or more field comparisons. A comparison consists of a field, operator and associated value. Comparisons can be combined to form expressions.
Nested Class Summary | |
---|---|
static class |
Filter.Comparator
Filter comparison operators. |
protected static class |
Filter.FieldDataType
Data types for value |
static class |
Filter.Operator
Filter logic operators. |
Constructor Summary | |
---|---|
Filter(Filter filter)
Copy constructor |
|
Filter(java.lang.String field,
Filter.Comparator comparator,
java.lang.Object value)
Constructs a filter with the field and value specified. |
Method Summary | |
---|---|
Filter |
and(Filter operand)
Returns a new filter that is the result of ANDing the given filter with the current filter. |
Filter |
and(java.lang.String field,
Filter.Comparator comparator,
java.lang.Object value)
Returns a new filter that is the result of ANDing a filter with the given field , comparator , and value
with the current filter. |
protected Filter |
copy(Filter oldFilter)
Creates a deep copy of a filter. |
protected static Filter |
createFilter(javax.management.openmbean.CompositeData filterData)
Create a leaf filter. |
protected static Filter |
createFilter(javax.management.openmbean.CompositeData[] filterArray,
int index)
Creates a Filter object from an array of CompositeData objects of open types, s_flatCompType, representing a Filter without the operand field. |
boolean |
equals(java.lang.Object o)
|
static Filter |
from(javax.management.openmbean.CompositeData cd)
For internal use only |
Filter.Comparator |
getComparator()
Gets the comparator for this filter. |
protected void |
getCompositeData(Filter filter,
java.util.ArrayList<javax.management.openmbean.CompositeData> filterArray)
Creates an array of CompositeData objects of type s_flatCompType recursively in postfix in the following manner. |
java.lang.String |
getField()
Gets the field for this filter. |
Filter |
getLeftOperand()
Returns the left operand of this filter. |
protected javax.management.openmbean.CompositeData |
getNodeOrLeafData(Filter filter)
Get the CompositeData for a particular node or leaf |
Filter |
getOperand()
Deprecated. This method always returns null. |
Filter.Operator |
getOperator()
Gets the operator for this filter expression. |
Filter |
getRightOperand()
Returns the right operand of this filter. |
java.lang.Object |
getValue()
Gets the value for this filter. |
int |
hashCode()
|
boolean |
isLeaf()
Used to determine if this filter is an operand. |
boolean |
isParent()
Used to determine if this filter has any operands. |
Filter |
not()
Returns a new filter that is the result of NOTing the current filter. |
Filter |
or(Filter operand)
Returns a new filter that is the result of ORing the given filter with the current filter. |
Filter |
or(java.lang.String field,
Filter.Comparator comparator,
java.lang.Object value)
Returns a new filter that is the result of ORing a filter with the given field , comparator , and value
with the current filter. |
javax.management.openmbean.CompositeData |
toCompositeData(javax.management.openmbean.CompositeType ct)
For internal use only. |
static javax.management.openmbean.CompositeType |
toCompositeType()
Returns the CompositeType that describes this model specific class |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Filter(java.lang.String field, Filter.Comparator comparator, java.lang.Object value)
field
- to filter bycomparator
- comparison operatorvalue
- to compare field withpublic Filter(Filter filter)
filter
- the filter to copyMethod Detail |
---|
public java.lang.String getField()
public Filter.Comparator getComparator()
public Filter.Operator getOperator()
@Deprecated public Filter getOperand()
public Filter getLeftOperand()
null
if none exists.public Filter getRightOperand()
null
if none exists.public boolean isParent()
public boolean isLeaf()
public java.lang.Object getValue()
public Filter and(java.lang.String field, Filter.Comparator comparator, java.lang.Object value)
field
, comparator
, and value
with the current filter.
field
- operand field namecomparator
- operand comparatorvalue
- operand field value
public Filter and(Filter operand)
operand
- filter to be ANDed with the current filter
public Filter or(java.lang.String field, Filter.Comparator comparator, java.lang.Object value)
field
, comparator
, and value
with the current filter.
field
- operand field namecomparator
- operand comparatorvalue
- operand field value
public Filter or(Filter operand)
operand
- filter to be ORed with the current filter
public Filter not()
protected Filter copy(Filter oldFilter)
oldFilter
- the filter to be copied
oldFilter
public static javax.management.openmbean.CompositeType toCompositeType()
public javax.management.openmbean.CompositeData toCompositeData(javax.management.openmbean.CompositeType ct)
ct
- This parameter is there only for future compatibility reasons
with JDK 6.0. It can be ignored at this point.protected void getCompositeData(Filter filter, java.util.ArrayList<javax.management.openmbean.CompositeData> filterArray) throws javax.management.openmbean.OpenDataException
javax.management.openmbean.OpenDataException
protected javax.management.openmbean.CompositeData getNodeOrLeafData(Filter filter) throws javax.management.openmbean.OpenDataException
javax.management.openmbean.OpenDataException
public static Filter from(javax.management.openmbean.CompositeData cd) throws java.lang.IllegalArgumentException
cd
- the CompositeData
instance to convert
Filter
object
java.lang.IllegalArgumentException
protected static Filter createFilter(javax.management.openmbean.CompositeData filterData)
protected static Filter createFilter(javax.management.openmbean.CompositeData[] filterArray, int index)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
Oracle Fusion Applications Java API Reference for Oracle Enterprise Scheduler Service 11g Release 1 (11.1.2) E20742-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |