planetj.database.sql
Class AbstractExpressionToken

java.lang.Object
  |
  +--planetj.database.sql.SQLToken
        |
        +--planetj.database.sql.AbstractExpressionToken
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ExpressionToken, InsertExpressionToken, SetExpressionToken

public abstract class AbstractExpressionToken
extends SQLToken

!!DA (6/11/2003 8:15:21 AM) documentation needed

Author:
PlanetJ Corporation
See Also:
Serialized Form

Field Summary
static String className
          Class name.
 
Fields inherited from class planetj.database.sql.SQLToken
WHITE_SPACE
 
Constructor Summary
AbstractExpressionToken()
          ExpressionToken constructor comment.
AbstractExpressionToken(String pToken, TableStatement pStatement)
          ExpressionToken constructor comment.
 
Method Summary
 List getComparisonNames()
          Gets a List containing the names of the columns in the SQLComparisons.
 List getComparisons()
          Gets a List containing the SQLComparisons which comprise this ExpressionToken
 ValidationExceptionCollection getValidationExceptions()
          Deprecated. (6/11/2003 8:18:59 AM) This method will not allow setting the Field's default value from a user property. Replaced by getValidationExceptions(ExecutingContext)
 ValidationExceptionCollection getValidationExceptions(ExecutingContext ec)
          Be careful when you call this method because it is derived and spins through all the Fields of all the SQLComparisons in this expression token.
 boolean isContainsDisplayParameters()
          Tests if this expression token contains one or more comparisons which have a display parameter for one or more of their values
 boolean isValueParameterPresent(int index)
          Tests if at least one of this ExpressionToken's comparisons has a parameter for a value (i.e.
 void setToken(String pToken)
           
 String toString()
           
 
Methods inherited from class planetj.database.sql.SQLToken
getStatement, getToken, isTokenParameter, isTokenWhiteSpace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

className

public static final String className
Class name.

Constructor Detail

AbstractExpressionToken

public AbstractExpressionToken()
ExpressionToken constructor comment.


AbstractExpressionToken

public AbstractExpressionToken(String pToken,
                               TableStatement pStatement)
ExpressionToken constructor comment.

Parameters:
pToken - java.lang.String
Method Detail

getComparisonNames

public List getComparisonNames()
Gets a List containing the names of the columns in the SQLComparisons.


getComparisons

public List getComparisons()
Gets a List containing the SQLComparisons which comprise this ExpressionToken


getValidationExceptions

public ValidationExceptionCollection getValidationExceptions()
                                                      throws CMException
Deprecated. (6/11/2003 8:18:59 AM) This method will not allow setting the Field's default value from a user property. Replaced by getValidationExceptions(ExecutingContext)

Be careful when you call this method because it is derived and spins through all the Fields of all the SQLComparisons in this expression token. This will return a collection of al; the Exceptions of each Field.

Returns:
collection of validation exceptions.
CMException

getValidationExceptions

public ValidationExceptionCollection getValidationExceptions(ExecutingContext ec)
                                                      throws CMException
Be careful when you call this method because it is derived and spins through all the Fields of all the SQLComparisons in this expression token. This will return a collection of al; the Exceptions of each Field.

Parameters:
ec - context in which code is executing.
Returns:
collection of validation exceptions.
CMException

isContainsDisplayParameters

public boolean isContainsDisplayParameters()
Tests if this expression token contains one or more comparisons which have a display parameter for one or more of their values


isValueParameterPresent

public boolean isValueParameterPresent(int index)
Tests if at least one of this ExpressionToken's comparisons has a parameter for a value (i.e. the value hasn't been specified yet)


setToken

public void setToken(String pToken)
Overrides:
setToken in class SQLToken

toString

public String toString()
Overrides:
toString in class SQLToken