JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.datasource.util
Class SqlStatementColumn

java.lang.Object
  |
  +--com.klg.jclass.datasource.util.SqlStatementColumn
All Implemented Interfaces:
Serializable

public class SqlStatementColumn
extends Object
implements Serializable

Describes a column in the select clause of a SQL statement. It contains qualifier, alias and name of the column. It also indicates if the column is a table column, i.e. the column refers to a single column in a table. If it is not a table column, the text is stored. If alias is not specified, it is default to its qualified name.

See Also:
Serialized Form

Constructor Summary
SqlStatementColumn(String name, String qualifier, String alias)
          Constructs a column.
 
Method Summary
 String getAlias()
          Gets the column alias explicited defined after the keyword "AS"
 String getCatalogName()
          Return the catalog name, or null if it doesn't exist
 String getColumnName()
          Gets the column name without qualifier.
 String getQualifiedName()
          Gets the qualified column name, i.e.
 String getQualifier()
          Gets the column qualifier, i.e.
 String getSchemaName()
          Return the schema name, or null if it doesn't exist
 String getTableName()
          Return the table name or alias, or null if it doesn't exist
 String getText()
          Gets the text for a subquery, a value expression, or an aggregate function.
 boolean isTableColumn()
           
 void setAlias(String s)
          Sets the column alias explicited defined after the keyword "AS"
 void setIsTableColumn(boolean v)
          Sets isTableColumn property.
 void setQualifier(String s)
          Sets the column qualifier, i.e.
 void setText(String s)
          Sets the text for a subquery, a value expression, or an aggregate function.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SqlStatementColumn

public SqlStatementColumn(String name,
                          String qualifier,
                          String alias)
Constructs a column.

Method Detail

getColumnName

public String getColumnName()
Gets the column name without qualifier.


getQualifier

public String getQualifier()
Gets the column qualifier, i.e. prefix of column name.


setQualifier

public void setQualifier(String s)
Sets the column qualifier, i.e. prefix of column name.


getQualifiedName

public String getQualifiedName()
Gets the qualified column name, i.e. [qualifier].column.


getAlias

public String getAlias()
Gets the column alias explicited defined after the keyword "AS"


setAlias

public void setAlias(String s)
Sets the column alias explicited defined after the keyword "AS"


isTableColumn

public boolean isTableColumn()

setIsTableColumn

public void setIsTableColumn(boolean v)
Sets isTableColumn property. Indicates this is a table column in the format of [qualifier.]column. If it is false, the column can be a subquery, a value expression, or an aggregate function.


setText

public void setText(String s)
Sets the text for a subquery, a value expression, or an aggregate function.


getText

public String getText()
Gets the text for a subquery, a value expression, or an aggregate function.


toString

public String toString()
Overrides:
toString in class Object

getCatalogName

public String getCatalogName()
Return the catalog name, or null if it doesn't exist


getSchemaName

public String getSchemaName()
Return the schema name, or null if it doesn't exist


getTableName

public String getTableName()
Return the table name or alias, or null if it doesn't exist


Copyright © 2004 Quest Software Inc..
All rights reserved.