Package wt.query

Class TableColumn

java.lang.Object
wt.query.TableColumn
All Implemented Interfaces:
Externalizable, Serializable, ColumnExpression, wt.query.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:
  • Constructor Details

    • 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 Details

    • 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
      Specified by:
      getColumnAlias in interface OrderByExpression
      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