|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.fdsapi.arrays.WhereClauseTokens
Class that validates and gives a rules table for building both ArrayFilter and ArraySQL classes.
Having a separate class to do this makes for much easier testing. This class can be tested
indpendent of all the many other objects it takes to build ArrayFilters and the array of data it returns
can easily be eyeballed for accuracy. Without this class testing ArrayFilter would be much more difficult.
*
View Code
Author: Steve Souza
Nov 7, 2004
| Constructor Summary | |
WhereClauseTokens()
|
|
| Method Summary | |
void |
addAnd()
|
void |
addConditional(Conditional cond)
|
void |
addLeftParen()
|
void |
addNot()
|
void |
addOr()
|
void |
addRightParen()
|
java.lang.Object[][] |
getCreateData()
|
static boolean |
getThrowValidationExceptions()
Returns true if syntax exceptions will throw a RuntimeException |
WhereClauseToken[] |
getTokens()
|
java.lang.String |
getValidationError()
Returns a message of what the syntax validation error was if one occured |
static void |
main(java.lang.String[] args)
|
static void |
setThrowValidationExceptions(boolean throwExceptions)
if true syntax errors will throw a RuntimeException |
java.lang.String |
toString()
|
boolean |
validate()
Note by default this method throws a RuntimeException if there is a syntax error in the ArraySQL. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public WhereClauseTokens()
| Method Detail |
public static void setThrowValidationExceptions(boolean throwExceptions)
public static boolean getThrowValidationExceptions()
public void addConditional(Conditional cond)
public void addLeftParen()
public void addRightParen()
public void addAnd()
public void addOr()
public void addNot()
public WhereClauseToken[] getTokens()
public java.lang.Object[][] getCreateData()
public boolean validate()
public java.lang.String getValidationError()
public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||