Skip navigation links

Oracle Fusion Middleware
Workflow Services Java API Reference for Oracle SOA Suite
11g Release 1 (11.1.1)
E10660-03


oracle.bpel.services.workflow.repos
Class Predicate

java.lang.Object
  extended by oracle.bpel.services.workflow.repos.PredicateConstants
      extended by oracle.bpel.services.workflow.repos.Predicate

All Implemented Interfaces:
java.io.Serializable

public class Predicate
extends oracle.bpel.services.workflow.repos.PredicateConstants
See Also:
Serialized Form

Field Summary

 

Fields inherited from class oracle.bpel.services.workflow.repos.PredicateConstants
AND, DATATYPE_NAMES, LOWER, NUMBER_OF_OPERATORS, OP_AFTER, OP_BEFORE, OP_BEGINS, OP_CONTAINS, OP_ENDS, OP_EQ, OP_GT, OP_GTE, OP_IN, OP_IS_NOT_NULL, OP_IS_NULL, OP_LAST_N_DAYS, OP_LIKE, OP_LT, OP_LTE, OP_NEQ, OP_NEXT_N_DAYS, OP_NOT_BEGINS, OP_NOT_CONTAINS, OP_NOT_ENDS, OP_NOT_IN, OP_NOT_LIKE, OP_ON, OPERATOR_NAMES, OR, SYSDATE, UPPER, VALID_DATE_OPERATORS, VALID_DEFAULT_OPERATORS, VALID_JOIN_OPERATORS, VALID_STRING_OPERATORS

 

Constructor Summary
Predicate(Column column1, int operation, Column column2)
          Constructor to create the join predicate based on columns.
Predicate(Column column, int operation, IdentityType identityType)
          Constructor to create the simple predicate based on IdentityType value.
Predicate(Column column, int operation, IdentityType identityType, boolean ignoreCase)
          Constructor to create the simple predicate based on IdentityType value with ignore case.
Predicate(Column column, int operation, java.util.List values)
          Constructor to create the simple predicate based on list of values.
Predicate(Column column, int operation, java.util.List values, boolean ignoreCase)
          Constructor to create the simple predicate based on list of values.
Predicate(Column column, int operation, java.lang.Object value)
          Constructor to create the simple predicate based on one value.
Predicate(Column column, int operation, java.lang.Object value, boolean ignoreCase)
          Constructor to create the simple predicate based on one value with ignore case.
Predicate(Predicate pred1, int logical, Predicate pred2)
          Constructor to create the complex predicate from two predicates using logical opeartor.
Predicate(PredicateType predicateType)
          Constructor to create a predicate from PredicateType.

 

Method Summary
 void addClause(int logicalOperator, Column column1, int operation, Column column2)
          To add one more filtering criteria to existing predicate by using logical operator based on columns.
 void addClause(int logicalOperator, Column column, int operation, IdentityType identityTypeValue)
          To add one more filtering criteria to existing predicate by using logical operator based on an identityType value.
 void addClause(int logicalOperator, Column column, int operation, IdentityType identityTypeValue, boolean ignoreCase)
          To add one more filtering criteria to existing predicate by using logical operator based on an identityType value.
 void addClause(int logicalOperator, Column column, int operation, java.util.List values)
          To add one more filtering criteria to existing predicate by using logical operator based on list of values.
 void addClause(int logicalOperator, Column column, int operation, java.util.List values, boolean ignoreCase)
          To add one more filtering criteria to existing predicate by using logical operator based on list of values with ignore case.
 void addClause(int logicalOperator, Column column, int operation, java.lang.Object value)
          To add one more filtering criteria to existing predicate by using logical operator based on one value.
 void addClause(int logicalOperator, Column column, int operation, java.lang.Object value, boolean ignoreCase)
          To add one more filtering criteria to existing predicate by using logical operator based on one value with ignore case.
static Predicate createPredicate(java.util.List<PredicateClauseType> predicateClauseList, java.lang.String tableName)
          Builds Predicate from supplied List of PredicateClauseType JAXB objects, using the supplied table name where clauses do not specify a table.
static void enableXMLSerialization(boolean enableXMLSerialization)
          Deprecated.  
 PredicateType getPredicateType()
          Returns the predicate JAXB object.
 java.lang.String getString()
          Return predicate as a string
 java.util.List getTables()
          Deprecated.  
 java.util.List getValues()
          Deprecated.  
 java.lang.String toString()
          Return predicate as a string

 

Methods inherited from class oracle.bpel.services.workflow.repos.PredicateConstants
getLogicalOperator, getOperationName, getOperationNumber, getOperator

 

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

 

Constructor Detail

Predicate

public Predicate(Column column,
                 int operation,
                 java.lang.Object value)
          throws WorkflowException
Constructor to create the simple predicate based on one value.
Parameters:
column - String name of the column
operation - int opertaion on the predicate
value - Object search value
Throws:
WorkflowException

Predicate

public Predicate(Column column,
                 int operation,
                 IdentityType identityType)
          throws WorkflowException
Constructor to create the simple predicate based on IdentityType value.
Parameters:
column - String name of the column
operation - int opertaion on the predicate
identityType - IdentityType
Throws:
WorkflowException

Predicate

public Predicate(Column column,
                 int operation,
                 IdentityType identityType,
                 boolean ignoreCase)
          throws WorkflowException
Constructor to create the simple predicate based on IdentityType value with ignore case.
Parameters:
column - String name of the column
operation - int opertaion on the predicate
identityType - IdentityType
ignoreCase - boolean true/false
Throws:
WorkflowException

Predicate

public Predicate(Column column,
                 int operation,
                 java.lang.Object value,
                 boolean ignoreCase)
          throws WorkflowException
Constructor to create the simple predicate based on one value with ignore case.
Parameters:
column - Column object to query against
operation - int opertaion on the predicate
value - Object search value
ignoreCase - boolean true/false
Throws:
WorkflowException

Predicate

public Predicate(Column column,
                 int operation,
                 java.util.List values)
          throws WorkflowException
Constructor to create the simple predicate based on list of values. It is used to create the predicate for IN.
Parameters:
column - Column object to query against
operation - int opertaion on the predicate
values - Object search value
Throws:
WorkflowException

Predicate

public Predicate(Column column,
                 int operation,
                 java.util.List values,
                 boolean ignoreCase)
          throws WorkflowException
Constructor to create the simple predicate based on list of values. It is used to create the predicate for IN with ignore case.
Parameters:
column - Column object to query against
operation - int opertaion on the predicate
values - List search values
ignoreCase - boolean true/false
Throws:
WorkflowException

Predicate

public Predicate(Column column1,
                 int operation,
                 Column column2)
          throws WorkflowException
Constructor to create the join predicate based on columns. It is used to create the predicate for join.
Parameters:
column1 - Column for joining
operation - int opertaion on the predicate
column2 - Column for joining
Throws:
WorkflowException

Predicate

public Predicate(Predicate pred1,
                 int logical,
                 Predicate pred2)
          throws WorkflowException
Constructor to create the complex predicate from two predicates using logical opeartor.
Parameters:
pred1 - Predicate
logical - int logical operaton like AND or OR
pred2 - Predicate
Throws:
WorkflowException

Predicate

public Predicate(PredicateType predicateType)
          throws WorkflowException
Constructor to create a predicate from PredicateType.
Parameters:
predicateType - PredicateType
Throws:
WorkflowException

Method Detail

createPredicate

public static Predicate createPredicate(java.util.List<PredicateClauseType> predicateClauseList,
                                        java.lang.String tableName)
                                 throws WorkflowException
Builds Predicate from supplied List of PredicateClauseType JAXB objects, using the supplied table name where clauses do not specify a table. If List is null or empty, returns null. Intended for internal use only, to support backwards compatibility for deprecated PredicateClauseType objects.
Parameters:
predicateClauseList - List of PredicateClauseType objects to build Predicate from.
tableName - name of table this predicate if for. If no value is specified, the table is assumed to be WFTask
Returns:
Predicate object, or null if List is null or empty.
Throws:
WorkflowException

addClause

public void addClause(int logicalOperator,
                      Column column,
                      int operation,
                      java.lang.Object value)
               throws WorkflowException
To add one more filtering criteria to existing predicate by using logical operator based on one value.
Parameters:
logicalOperator - int Operator like AND or OR
column - Column
operation - int Operation to filter the data
value - Object search value
Throws:
WorkflowException

addClause

public void addClause(int logicalOperator,
                      Column column,
                      int operation,
                      IdentityType identityTypeValue,
                      boolean ignoreCase)
               throws WorkflowException
To add one more filtering criteria to existing predicate by using logical operator based on an identityType value.
Parameters:
logicalOperator - int Operator like AND or OR
column - Column
operation - int Operation to filter the data
identityTypeValue - IdentityType
ignoreCase - boolean true/false
Throws:
WorkflowException

addClause

public void addClause(int logicalOperator,
                      Column column,
                      int operation,
                      IdentityType identityTypeValue)
               throws WorkflowException
To add one more filtering criteria to existing predicate by using logical operator based on an identityType value.
Parameters:
logicalOperator - int Operator like AND or OR
column - Column
operation - int Operation to filter the data
identityTypeValue - IdentityType
Throws:
WorkflowException

addClause

public void addClause(int logicalOperator,
                      Column column,
                      int operation,
                      java.lang.Object value,
                      boolean ignoreCase)
               throws WorkflowException
To add one more filtering criteria to existing predicate by using logical operator based on one value with ignore case.
Parameters:
logicalOperator - int Operator like AND or OR
column - Column
operation - int Operation to filter the data
value - Object search value
ignoreCase - boolean true/false
Throws:
WorkflowException

addClause

public void addClause(int logicalOperator,
                      Column column,
                      int operation,
                      java.util.List values)
               throws WorkflowException
To add one more filtering criteria to existing predicate by using logical operator based on list of values.
Parameters:
logicalOperator - int Operator like AND or OR
column - Column
operation - int Operation to filter the data
values - List of values
Throws:
WorkflowException

addClause

public void addClause(int logicalOperator,
                      Column column,
                      int operation,
                      java.util.List values,
                      boolean ignoreCase)
               throws WorkflowException
To add one more filtering criteria to existing predicate by using logical operator based on list of values with ignore case.
Parameters:
logicalOperator - int Operator like AND or OR
column - Column
operation - int Operation to filter the data
values - List of values
ignoreCase - boolean true/false
Throws:
WorkflowException

addClause

public void addClause(int logicalOperator,
                      Column column1,
                      int operation,
                      Column column2)
               throws WorkflowException
To add one more filtering criteria to existing predicate by using logical operator based on columns.
Parameters:
logicalOperator - int Operator like AND or OR
column1 - Column
operation - int Operation to filter the data
column2 - Column
Throws:
WorkflowException

enableXMLSerialization

public static void enableXMLSerialization(boolean enableXMLSerialization)
Deprecated. 
"This is not required"

getPredicateType

public PredicateType getPredicateType()
Returns the predicate JAXB object. This could be a simple predicate object or a complex predicate object.

toString

public java.lang.String toString()
Return predicate as a string
Overrides:
toString in class java.lang.Object
Returns:
String String representation of this predicate

getString

public java.lang.String getString()
Return predicate as a string
Returns:
String String representation of this predicate

getTables

public java.util.List getTables()
Deprecated. 
This method is a no operation, it is available for backward compatability
Returns:
null

getValues

public java.util.List getValues()
Deprecated. 
This method is a no operation, it is available for backward compatability
Returns:
null

Skip navigation links

Oracle Fusion Middleware
Workflow Services Java API Reference for Oracle SOA Suite
11g Release 1 (11.1.1)
E10660-03


Copyright © 2009, Oracle and/or its affiliates. All rights reserved.