com.fdsapi.arrays
Class WhereClauseToken

java.lang.Object
  |
  +--com.fdsapi.arrays.WhereClauseToken

public class WhereClauseToken
extends java.lang.Object

Class that represents each token in a where clause. Examples are conditionals (col0='souza'), logical operators (and/or), and parens. The following example has 11 tokens: select * from array where (col0='steve' and col1='souza') or (col0='jeff' and col1='beck') *

View Code


Constructor Summary
WhereClauseToken(Conditional conditional)
           
WhereClauseToken(java.lang.String token)
          Creates a new instance of WhereClauseToken
 
Method Summary
 java.lang.String getAction()
           
 Conditional getConditional()
           
 java.lang.String getValidationError()
           
 java.lang.String getValue()
           
 boolean isAnd()
           
 boolean isConditional()
           
 boolean isLeftParen()
           
 boolean isNot()
           
 boolean isNull()
           
 boolean isOperator()
           
 boolean isOr()
           
 boolean isRightParen()
           
 boolean isTokenType(java.lang.String argType)
           
 boolean isValid(WhereClauseToken nextToken)
           
 void setAction(java.lang.String action)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WhereClauseToken

public WhereClauseToken(java.lang.String token)
Creates a new instance of WhereClauseToken


WhereClauseToken

public WhereClauseToken(Conditional conditional)
Method Detail

getValue

public java.lang.String getValue()

getConditional

public Conditional getConditional()

getAction

public java.lang.String getAction()

setAction

public void setAction(java.lang.String action)

isLeftParen

public boolean isLeftParen()

isRightParen

public boolean isRightParen()

isOr

public boolean isOr()

isAnd

public boolean isAnd()

isOperator

public boolean isOperator()

isNot

public boolean isNot()

isConditional

public boolean isConditional()

isNull

public boolean isNull()

isTokenType

public boolean isTokenType(java.lang.String argType)

isValid

public boolean isValid(WhereClauseToken nextToken)

getValidationError

public java.lang.String getValidationError()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object