public final class FromClause extends Object implements Serializable, StatementTreeObject, Cloneable
Constructor and Description |
---|
FromClause() |
Modifier and Type | Method and Description |
---|---|
void |
addJoin(int type)
Adds a Join to the from clause.
|
void |
addJoin(int type,
Expression on_expression)
Adds a Join to the from clause.
|
void |
addPreviousJoin(int type,
Expression on_expression)
Hack, add a joining type to the previous entry from the end.
|
void |
addTable(String table_name)
Adds a table name to this FROM clause.
|
void |
addTable(String table_name,
String table_alias)
Adds a table name + alias to this FROM clause.
|
void |
addTableDeclaration(String table_name,
TableSelectExpression select,
String table_alias)
A generic form of a table declaration.
|
Collection |
allTables()
Returns a Set of FromTableDef objects that represent all the tables
that are in this from clause.
|
Object |
clone()
Performs a DEEP clone of this object if it is mutable, or a deep clone
of its mutable members.
|
JoiningSet |
getJoinSet()
Returns the JoiningSet object for the FROM clause.
|
int |
getJoinType(int n)
Returns the type of join after table 'n' in the set of tables in the
from clause.
|
Expression |
getOnExpression(int n)
Returns the ON Expression for the type of join after table 'n' in the
set.
|
void |
prepareExpressions(ExpressionPreparer preparer)
Prepares all expressions in this statement tree object by passing the
ExpressionPreparer object to the 'prepare' method of the expression.
|
public void addTable(String table_name)
public void addTable(String table_name, String table_alias)
public void addTableDeclaration(String table_name, TableSelectExpression select, String table_alias)
public void addJoin(int type)
public void addPreviousJoin(int type, Expression on_expression)
public void addJoin(int type, Expression on_expression)
public JoiningSet getJoinSet()
public int getJoinType(int n)
public Expression getOnExpression(int n)
public Collection allTables()
public void prepareExpressions(ExpressionPreparer preparer) throws DatabaseException
StatementTreeObject
prepareExpressions
in interface StatementTreeObject
DatabaseException
public Object clone() throws CloneNotSupportedException
StatementTreeObject
clone
in interface StatementTreeObject
clone
in class Object
CloneNotSupportedException
Copyright © 2015. All rights reserved.