Package com.mckoi.database.interpret
Class ByColumn
java.lang.Object
com.mckoi.database.interpret.ByColumn
- All Implemented Interfaces:
StatementTreeObject
,Serializable
,Cloneable
Object used to represent a column in the 'order by' and 'group by'
clauses of a select statement.
- Author:
- Tobias Downer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
If 'order by' then true if sort is ascending (default).The expression that we are ordering by.The name of the column in the 'by'. -
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
-
name
The name of the column in the 'by'. -
exp
The expression that we are ordering by. -
ascending
public boolean ascendingIf 'order by' then true if sort is ascending (default).
-
-
Constructor Details
-
ByColumn
public ByColumn()
-
-
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
-