Package org.datanucleus.store.rdbms.sql
Class SQLColumn
java.lang.Object
org.datanucleus.store.rdbms.sql.SQLColumn
Representation of a column reference in an SQL statement.
Has a column, and an optional alias.
TODO Merge this with ColumnExpression
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSQLColumn
(SQLTable table, Column col, DatastoreIdentifier alias) Constructor for a column reference. -
Method Summary
-
Field Details
-
table
The SQL Table that we are selecting columns from. -
column
The column being referenced. -
alias
Alias for the column, for use in a SELECT clause.
-
-
Constructor Details
-
SQLColumn
Constructor for a column reference.- Parameters:
table
- The SQLTable being selectedcol
- The columnalias
- An alias
-
-
Method Details
-
getTable
-
getColumn
-
getAlias
-
getColumnSelectString
-
toString
Stringifier method to return this "column" in a form for use in SQL statements. This can be of the following form(s)TABLEALIAS.MYCOLUMN AS COLUMNALIAS MYTABLE.MYCOLUMN AS COLUMNALIAS TABLEALIAS.MYCOLUMN MYTABLE.MYCOLUMN
Also applies any "select-function" defined on the Column.
-