|
Ontimize 5.2072EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.db.SQLStatementBuilder.DefaultSQLConditionValuesProcessor
This class provides default implementations for the
SQLConditionValuesProcessor interface.
| Field Summary | |
protected SQLStatementHandler |
handler
|
static java.lang.String |
upperFunction
|
protected boolean |
upperLike
|
protected boolean |
upperStrings
|
| Constructor Summary | |
SQLStatementBuilder.DefaultSQLConditionValuesProcessor()
|
|
SQLStatementBuilder.DefaultSQLConditionValuesProcessor(boolean upperLike)
Creates a DefaultSQLConditionValuesProcessor where every
condition that uses LIKE is case-insensitive.
|
|
SQLStatementBuilder.DefaultSQLConditionValuesProcessor(boolean upperStrings,
boolean upperLike)
Creates a DefaultSQLConditionValuesProcessor where every
condition that uses LIKE or is a column of String type is
case-insensitive.
|
|
| Method Summary | |
java.lang.String |
createQueryConditions(java.util.Hashtable conditions,
java.util.Vector wildcards,
java.util.Vector values)
Creates the condition string for a SQL Statement. |
protected SQLStatementHandler |
getSQLStatementHandler()
|
protected static boolean |
hasParenthesis(java.lang.String sqlquery)
Checks if the string contains a parenthesis |
void |
setSQLStatementHandler(SQLStatementHandler handler)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean upperLike
protected boolean upperStrings
public static java.lang.String upperFunction
protected SQLStatementHandler handler
| Constructor Detail |
public SQLStatementBuilder.DefaultSQLConditionValuesProcessor()
public SQLStatementBuilder.DefaultSQLConditionValuesProcessor(boolean upperLike)
DefaultSQLConditionValuesProcessor where every
condition that uses LIKE is case-insensitive.
Inserts a upper function in both sides of LIKE conditions
(UPPER(Field) LIKE UPPER(Value))
upperLike - true if the LIKE condition should be case-insensitive
public SQLStatementBuilder.DefaultSQLConditionValuesProcessor(boolean upperStrings,
boolean upperLike)
DefaultSQLConditionValuesProcessor where every
condition that uses LIKE or is a column of String type is
case-insensitive.
Inserts a upper function in both sides of LIKE conditions
(UPPER(Field) LIKE UPPER(Value)) Inserts a upper function in both sides
if column type is a String (UPPER(Field) LIKE UPPER(String))
upperStrings - true if the String column type should be case-insensitiveupperLike - true if the LIKE condition should be case-insensitive| Method Detail |
protected SQLStatementHandler getSQLStatementHandler()
public void setSQLStatementHandler(SQLStatementHandler handler)
setSQLStatementHandler in interface SQLStatementBuilder.SQLConditionValuesProcessorprotected static boolean hasParenthesis(java.lang.String sqlquery)
sqlquery - string to check
public java.lang.String createQueryConditions(java.util.Hashtable conditions,
java.util.Vector wildcards,
java.util.Vector values)
createQueryConditions in interface SQLStatementBuilder.SQLConditionValuesProcessorconditions - a Hashtable specifying pairs of key-value corresponding to
the attribute (or column of a table in a database) and the
value that is formed by the condition.wildcards - column list that can use wildcardsvalues - vector where the value of each processed conditions is stored
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||