planetj.database.sql
Class ValueToken

java.lang.Object
  |
  +--planetj.database.sql.SQLToken
        |
        +--planetj.database.sql.ValueToken
All Implemented Interfaces:
Serializable

public class ValueToken
extends SQLToken

Author:
PlanetJ Corporation
See Also:
Serialized Form

Field Summary
 
Fields inherited from class planetj.database.sql.SQLToken
WHITE_SPACE
 
Constructor Summary
ValueToken(String pToken, SQLStatement pStatement)
          ValueToken constructor comment.
 
Method Summary
 IDisplayParameter getDisplayParameter()
          Gets the display parameter stored in this ValueToken.
 FieldDescriptorRow getFieldDescriptor()
          Gets the FD associated with this value.
 IParameter getParameter()
          Gets the parameter stored in this ValueToken.
 boolean isDisplayParameter()
          Tests if this value is a parameter which needs to be given a value via user interaction
 boolean isFieldDescriptorValue()
          Deprecated.  
 boolean isParameter()
          Tests if this value is a parameter.
 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
 

Constructor Detail

ValueToken

public ValueToken(String pToken,
                  SQLStatement pStatement)
ValueToken constructor comment.

Parameters:
pToken - java.lang.String
Method Detail

getDisplayParameter

public IDisplayParameter getDisplayParameter()
Gets the display parameter stored in this ValueToken. If this ValueToken does not contain a display parameter value, null is returned


getFieldDescriptor

public FieldDescriptorRow getFieldDescriptor()
                                      throws CMException
Gets the FD associated with this value. If there is no such FD, null is returned

CMException

getParameter

public IParameter getParameter()
Gets the parameter stored in this ValueToken. If this ValueToken does not contain a parameter value, null is returned


isDisplayParameter

public boolean isDisplayParameter()
Tests if this value is a parameter which needs to be given a value via user interaction


isFieldDescriptorValue

public boolean isFieldDescriptorValue()
Deprecated.  

Tests if the value is a question mark followed by a number, indicating a specific FD to use


isParameter

public boolean isParameter()
Tests if this value is a parameter. If this value is a parameter, it might not be a display parameter


toString

public String toString()
Overrides:
toString in class SQLToken