Package com.im.commons.db.dml
Class SQLSelectColumn
- java.lang.Object
-
- com.im.commons.db.dml.SQLSelectColumn
-
- All Implemented Interfaces:
SQLSelectElement
,SQLStringRenderer
public final class SQLSelectColumn extends java.lang.Object implements SQLSelectElement
- Author:
- Tim Dudgeon
-
-
Constructor Summary
Constructors Constructor Description SQLSelectColumn(TableColumn tableColumn, SQLJoin join)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFromTables(java.util.Set<TableDefinition> set)
void
addJoins(java.util.Set<SQLJoin> joins)
void
appendTo(java.lang.StringBuilder buf, TermEncoder encoder)
boolean
equals(java.lang.Object obj)
java.lang.String
getColumn()
The name of the column in the ResultSet.TableDefinition
getTable()
TableColumn
getTableColumn()
int
hashCode()
-
-
-
Constructor Detail
-
SQLSelectColumn
public SQLSelectColumn(TableColumn tableColumn, SQLJoin join)
-
-
Method Detail
-
getTableColumn
public TableColumn getTableColumn()
-
getTable
public TableDefinition getTable()
-
getColumn
public java.lang.String getColumn()
Description copied from interface:SQLSelectElement
The name of the column in the ResultSet.- Specified by:
getColumn
in interfaceSQLSelectElement
- Returns:
- The column name.
-
addJoins
public void addJoins(java.util.Set<SQLJoin> joins)
- Specified by:
addJoins
in interfaceSQLSelectElement
-
appendTo
public void appendTo(java.lang.StringBuilder buf, TermEncoder encoder)
- Specified by:
appendTo
in interfaceSQLStringRenderer
-
addFromTables
public void addFromTables(java.util.Set<TableDefinition> set)
- Specified by:
addFromTables
in interfaceSQLSelectElement
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-