public class SQLColumn extends Object
Modifier and Type | Field and Description |
---|---|
protected DatastoreIdentifier |
alias
Alias for the column, for use in a SELECT clause.
|
protected Column |
column
The column being referenced.
|
protected SQLTable |
table
The SQL Table that we are selecting columns from.
|
Constructor and Description |
---|
SQLColumn(SQLTable table,
Column col,
DatastoreIdentifier alias)
Constructor for a column reference.
|
Modifier and Type | Method and Description |
---|---|
DatastoreIdentifier |
getAlias() |
Column |
getColumn() |
String |
getColumnSelectString() |
SQLTable |
getTable() |
String |
toString()
Stringifier method to return this "column" in a form for use in SQL statements.
|
protected SQLTable table
protected Column column
protected DatastoreIdentifier alias
public SQLColumn(SQLTable table, Column col, DatastoreIdentifier alias)
table
- The SQLTable being selectedcol
- The columnalias
- An aliaspublic SQLTable getTable()
public Column getColumn()
public DatastoreIdentifier getAlias()
public String toString()
TABLEALIAS.MYCOLUMN AS COLUMNALIAS MYTABLE.MYCOLUMN AS COLUMNALIAS TABLEALIAS.MYCOLUMN MYTABLE.MYCOLUMNAlso applies any "select-function" defined on the Column.
public String getColumnSelectString()
Copyright © 2017. All rights reserved.