Package com.mckoi.database.interpret
Class SelectColumn
java.lang.Object
com.mckoi.database.interpret.SelectColumn
- All Implemented Interfaces:
StatementTreeObject
,Serializable
,Cloneable
public final class SelectColumn
extends Object
implements Serializable, StatementTreeObject, Cloneable
Represents a column selected to be in the output of a select statement.
This includes being either an aggregate function, a column or "*" which
is the entire set of columns.
- Author:
- Tobias Downer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe alias of this column string.The expression of this column.If the column represents a glob of columns (eg.The name of this column used internally to reference it.The fully resolved name that this column is given in the resulting table. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Performs a DEEP clone of this object if it is mutable, or a deep clone of its mutable members.void
prepareExpressions
(ExpressionPreparer preparer) Prepares all expressions in this statement tree object by passing the ExpressionPreparer object to the 'prepare' method of the expression.toString()
-
Field Details
-
glob_name
If the column represents a glob of columns (eg. 'Part.*' or '*') then this is set to the glob string and 'expression' is left blank. -
resolved_name
The fully resolved name that this column is given in the resulting table. -
alias
The alias of this column string. -
expression
The expression of this column. This is only NOT set when name == "*" indicating all the columns. -
internal_name
The name of this column used internally to reference it.
-
-
Constructor Details
-
SelectColumn
public SelectColumn()
-
-
Method Details
-
prepareExpressions
Description copied from interface:StatementTreeObject
Prepares all expressions in this statement tree object by passing the ExpressionPreparer object to the 'prepare' method of the expression.- Specified by:
prepareExpressions
in interfaceStatementTreeObject
- Throws:
DatabaseException
-
clone
Description copied from interface:StatementTreeObject
Performs a DEEP clone of this object if it is mutable, or a deep clone of its mutable members. If the object is immutable then it may return 'this'.- Specified by:
clone
in interfaceStatementTreeObject
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
toString
-