Package wt.query
Class TableColumn
java.lang.Object
wt.query.TableColumn
- All Implemented Interfaces:
Externalizable,Serializable,ColumnExpression,wt.query.Expression,OrderByExpression,RelationalExpression
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
Supported API: true
Extendable: false
- See Also:
-
Field Summary
Fields inherited from interface wt.query.ColumnExpression
COLUMN_ALIAS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the attribute: columnAlias; Alias for the column expression.Gets the value of the attribute: columnName; Column name in the external table.Gets the value of the attribute: tableName; External table name.voidsetColumnAlias(String a_ColumnAlias) Sets the value of the attribute: columnAlias; Alias for the column expression.voidsetColumnName(String a_ColumnName) Sets the value of the attribute: columnName; Column name in the external table.voidsetTableName(String a_TableName) Sets the value of the attribute: tableName; External table name.
-
Constructor Details
-
TableColumn
Supported API: true- Parameters:
a_tableName- Name of the database table.a_columnName- Name of the database column.
-
-
Method Details
-
getTableName
Gets the value of the attribute: tableName; External table name.
Supported API: true- Returns:
- String
-
setTableName
Sets the value of the attribute: tableName; External table name.
Supported API: true- Parameters:
a_TableName-- Throws:
WTPropertyVetoException
-
getColumnName
Gets the value of the attribute: columnName; Column name in the external table.
Supported API: true- Returns:
- String
-
setColumnName
Sets the value of the attribute: columnName; Column name in the external table.
Supported API: true- Parameters:
a_ColumnName-- Throws:
WTPropertyVetoException
-
getColumnAlias
Gets the value of the attribute: columnAlias; Alias for the column expression.
Supported API: true- Specified by:
getColumnAliasin interfaceColumnExpression- Specified by:
getColumnAliasin interfaceOrderByExpression- Returns:
- String
-
setColumnAlias
Sets the value of the attribute: columnAlias; Alias for the column expression.
Supported API: true- Specified by:
setColumnAliasin interfaceColumnExpression- Parameters:
a_ColumnAlias-- Throws:
WTPropertyVetoException
-