planetj.database.sql
Class ColumnToken

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

public class ColumnToken
extends SQLToken

Author:
PlanetJ Corporation
See Also:
Serialized Form

Field Summary
 
Fields inherited from class planetj.database.sql.SQLToken
WHITE_SPACE
 
Constructor Summary
ColumnToken(String pToken, SQLStatement pStatement)
          ColumnToken constructor comment.
 
Method Summary
 String getCompleteToken()
           
 FieldDescriptorRow getFieldDescriptor()
          Gets the FieldDescriptor for this database column referenced by this token
 FieldDescriptorRow getFieldDescriptor(String pSystemAlias)
          Gets the FieldDescriptor for this database column referenced by this token
 String getLibraryName()
          Insert the method's description here.
 String getName()
           
 Table getTable(String pSystemAlias)
          Gets the Table in which the column referenced by this ColumnToken exists.
 String getTableName()
          Gets the name of the table the column exists in.
 void setCompleteToken(String token)
           
 void setDisplayColumnName(String pName)
           
 ColumnToken setFieldDescriptor(FieldDescriptorRow pFDRow)
          Sets the FieldDescriptor for this database column referenced by this token.
 void setToken(String token)
           
 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

ColumnToken

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

Parameters:
pToken - String to create this token from.
Method Detail

getFieldDescriptor

public FieldDescriptorRow getFieldDescriptor()
                                      throws CMException
Gets the FieldDescriptor for this database column referenced by this token

CMException
See Also:
setFieldDescriptor

getFieldDescriptor

public FieldDescriptorRow getFieldDescriptor(String pSystemAlias)
                                      throws CMException
Gets the FieldDescriptor for this database column referenced by this token

CMException
See Also:
setFieldDescriptor

getLibraryName

public String getLibraryName()
Insert the method's description here. Creation date: (1/31/03 3:39:24 PM)

Returns:
java.lang.String

setDisplayColumnName

public void setDisplayColumnName(String pName)

getName

public String getName()

getTable

public Table getTable(String pSystemAlias)
               throws CMException
Gets the Table in which the column referenced by this ColumnToken exists.

CMException

getTableName

public String getTableName()
Gets the name of the table the column exists in. Null is returned if the table name is not specified.

Returns:
name of table column exists in.

getCompleteToken

public String getCompleteToken()

setCompleteToken

public void setCompleteToken(String token)

setFieldDescriptor

public ColumnToken setFieldDescriptor(FieldDescriptorRow pFDRow)
                               throws CMException
Sets the FieldDescriptor for this database column referenced by this token. This can be used to adjust or change the FD associated with this columnToken. For example, when performing a SQL such as: select ..... where concat(a,b) = ? we don't know what to use for the column token of the concat(a,b) if if a or b is used the desired external name, length, etc will not be appropriate since we are concating 2 fields... This method will allow a DerivedFieldDescriptor to be created and set for this column...

CMException

setToken

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

toString

public String toString()
Overrides:
toString in class SQLToken