|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mckoi.database.interpret.TableSelectExpression
public final class TableSelectExpression
A container object for the a table select expression, eg.
SELECT [columns]
FROM [tables]
WHERE [search_clause]
GROUP BY [column]
HAVING [search_clause]
[composite_function] [table_select_expression]
Note that a TableSelectExpression can be nested in the various clauses of this object.
| Field Summary | |
|---|---|
java.util.ArrayList |
columns
The list of columns to select from. |
boolean |
distinct
True if we only search for distinct elements. |
FromClause |
from_clause
The from clause. |
java.util.ArrayList |
group_by
The list of columns to group by. |
Variable |
group_max
The group max variable or null if no group max. |
SearchExpression |
having_clause
The having clause. |
SearchExpression |
where_clause
The where clause. |
| Constructor Summary | |
|---|---|
TableSelectExpression()
Constructor. |
|
| Method Summary | |
|---|---|
void |
chainComposite(TableSelectExpression expression,
java.lang.String composite,
boolean is_all)
Chains a new composite function to this expression. |
java.lang.Object |
clone()
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean distinct
public java.util.ArrayList columns
public FromClause from_clause
public SearchExpression where_clause
public java.util.ArrayList group_by
public Variable group_max
public SearchExpression having_clause
| Constructor Detail |
|---|
public TableSelectExpression()
| Method Detail |
|---|
public void chainComposite(TableSelectExpression expression,
java.lang.String composite,
boolean is_all)
public void prepareExpressions(ExpressionPreparer preparer)
throws DatabaseException
StatementTreeObject
prepareExpressions in interface StatementTreeObjectDatabaseException
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
StatementTreeObject
clone in interface StatementTreeObjectclone in class java.lang.Objectjava.lang.CloneNotSupportedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||