JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.datasource.util
Class SqlStatementTable

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

public class SqlStatementTable
extends Object
implements Serializable

Describes a table in a SQL statement. It contains qualifier, alias and name of the table. It also indicates if the table is a subquery. The text of the subquery is stored. If alias is not specified, it is default to its qualified name.

See Also:
Serialized Form

Constructor Summary
SqlStatementTable(String name, String qualifier, String alias)
          Constructs a table.
 
Method Summary
 String getAlias()
          Gets the table alias.
 String getCatalogName()
          Return the catalog name, or null if it doesn't exist
 String getQualifiedName()
          Gets the qualified table name, i.e.
 String getQualifier()
          Gets the table qualifier, i.e.
 String getSchemaName()
          Return the schema name, or null if it doesn't exist
 String getSubQuery()
          Gets the sub query.
 String getTableName()
          Gets the table name without qualifier.
 boolean isSubQuery()
           
 void setAlias(String s)
          Sets the table alias explicited defined after the keyword "AS"
 void setQualifier(String s)
          Sets the table qualifier, i.e.
 void setSubQuery(String s)
          Sets the sub query.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SqlStatementTable

public SqlStatementTable(String name,
                         String qualifier,
                         String alias)
Constructs a table.

Parameters:
name - table name
qualifier - qualifier of the table, i.e. [qualifier.]table
alias - alias of the table. If it is not specified, it is default to the qualified name.
Method Detail

getTableName

public String getTableName()
Gets the table name without qualifier.


getQualifier

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


setQualifier

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


getQualifiedName

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


getAlias

public String getAlias()
Gets the table alias. If alias is not defined explicitly, the table qualified name is used as the alias.


setAlias

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


isSubQuery

public boolean isSubQuery()

setSubQuery

public void setSubQuery(String s)
Sets the sub query.


getSubQuery

public String getSubQuery()
Gets the sub query.


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


toString

public String toString()
Overrides:
toString in class Object

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