Oracle Data-aware Controls Reference

oracle.dacf.util
Class WhereClauseBuilder

java.lang.Object
  |
  +--oracle.dacf.util.WhereClauseBuilder

public class WhereClauseBuilder
extends java.lang.Object

A helper class to build Where Clause

Version:
INTERNAL

Constructor Summary
WhereClauseBuilder()
           
 
Method Summary
 java.lang.String buildWhereClause(java.lang.String columnName, int sqlType, java.lang.Object value, boolean useSpecialChars, java.lang.Object param)
          build a part of the where clause.
static boolean isEmptyString(java.lang.String s)
           
static boolean isStringWildCardSpecified(java.lang.String strValue)
          isStringWildCardSpecified
static java.lang.String parseDataValue(java.lang.Object value)
          remove relational operator if any and return the data value
static java.lang.String parseRelationalOperator(java.lang.Object value)
          figure out the relational operator specified in value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhereClauseBuilder

public WhereClauseBuilder()
Method Detail

buildWhereClause

public java.lang.String buildWhereClause(java.lang.String columnName,
                                         int sqlType,
                                         java.lang.Object value,
                                         boolean useSpecialChars,
                                         java.lang.Object param)
build a part of the where clause. make use of the column name, type and value to build the where clause (ex., ENAME like JO% )

isEmptyString

public static boolean isEmptyString(java.lang.String s)

isStringWildCardSpecified

public static boolean isStringWildCardSpecified(java.lang.String strValue)
isStringWildCardSpecified

parseRelationalOperator

public static java.lang.String parseRelationalOperator(java.lang.Object value)
figure out the relational operator specified in value
Parameters:
value -  
Returns:
relational operator specified

parseDataValue

public static java.lang.String parseDataValue(java.lang.Object value)
remove relational operator if any and return the data value
Parameters:
string - which has relational operators included in it
Returns:
string which represents the parameter value

Oracle Data-aware Controls Reference