wt.query
Class TableColumn

java.lang.Object
  extended by wt.query.TableColumn
All Implemented Interfaces:
Externalizable, Serializable, ColumnExpression, Expression, OrderByExpression, RelationalExpression

public class TableColumn
extends Object
implements ColumnExpression, Externalizable

This class represents a table column which can be used in a SQL statement. The exact table and column name specified are used directly in the SQL statement. This class should generally be used when specifying a column that is associated with an ExternalTableExpression that has been added to a query or for a column on a FROM expression with a known table alias. Using this class with some TableExpression implementations, such as ClassTableExpression, can result in invalid SQL since the actual table name can vary for descendant classes.

Supported API: true

Extendable: false

See Also:
ExternalTableExpression, Serialized Form

Field Summary
 
Fields inherited from interface wt.query.ColumnExpression
COLUMN_ALIAS
 
Constructor Summary
TableColumn(String a_tableName, String a_columnName)
          

Supported API: true
 
Method Summary
 String getColumnAlias()
          Gets the value of the attribute: columnAlias; Alias for the column expression.
 String getColumnName()
          Gets the value of the attribute: columnName; Column name in the external table.
 String getTableName()
          Gets the value of the attribute: tableName; External table name.
 void setColumnAlias(String a_ColumnAlias)
          Sets the value of the attribute: columnAlias; Alias for the column expression.
 void setColumnName(String a_ColumnName)
          Sets the value of the attribute: columnName; Column name in the external table.
 void setTableName(String a_TableName)
          Sets the value of the attribute: tableName; External table name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TableColumn

public TableColumn(String a_tableName,
                   String a_columnName)


Supported API: true

Parameters:
a_tableName - Name of the database table.
a_columnName - Name of the database column.
Method Detail

getTableName

public String getTableName()
Gets the value of the attribute: tableName; External table name.

Supported API: true

Returns:
String

setTableName

public void setTableName(String a_TableName)
                  throws WTPropertyVetoException
Sets the value of the attribute: tableName; External table name.

Supported API: true

Parameters:
a_TableName -
Throws:
WTPropertyVetoException

getColumnName

public String getColumnName()
Gets the value of the attribute: columnName; Column name in the external table.

Supported API: true

Returns:
String

setColumnName

public void setColumnName(String a_ColumnName)
                   throws WTPropertyVetoException
Sets the value of the attribute: columnName; Column name in the external table.

Supported API: true

Parameters:
a_ColumnName -
Throws:
WTPropertyVetoException

getColumnAlias

public String getColumnAlias()
Gets the value of the attribute: columnAlias; Alias for the column expression.

Supported API: true

Specified by:
getColumnAlias in interface ColumnExpression
Returns:
String

setColumnAlias

public void setColumnAlias(String a_ColumnAlias)
                    throws WTPropertyVetoException
Sets the value of the attribute: columnAlias; Alias for the column expression.

Supported API: true

Specified by:
setColumnAlias in interface ColumnExpression
Parameters:
a_ColumnAlias -
Throws:
WTPropertyVetoException