|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.database.interpret.FromTableDef
public final class FromTableDef
Describes a single table declaration in the from clause of a table expression (SELECT).
Constructor Summary | |
---|---|
FromTableDef(java.lang.String table_name)
A simple table definition (not aliased). |
|
FromTableDef(java.lang.String table_name,
java.lang.String table_alias)
Constructs the table def. |
|
FromTableDef(TableSelectExpression select)
A simple sub-query table definition (not aliased). |
|
FromTableDef(TableSelectExpression select,
java.lang.String table_alias)
A table that is a sub-query and given an aliased name. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones the object (deep clone of immutable members). |
java.lang.String |
getAlias()
Returns the alias for this table (or null if no alias given). |
java.lang.String |
getName()
Returns the name of the table. |
TableSelectExpression |
getTableSelectExpression()
Returns the TableSelectExpression if this is a subquery table. |
java.lang.String |
getUniqueKey()
Returns the unique key. |
boolean |
isSubQueryTable()
Returns true if this item in the FROM clause is a subquery table. |
void |
prepareExpressions(ExpressionPreparer preparer)
Prepares the expressions in this table def. |
void |
setUniqueKey(java.lang.String unique_key)
Sets the unique key. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FromTableDef(java.lang.String table_name, java.lang.String table_alias)
public FromTableDef(java.lang.String table_name)
public FromTableDef(TableSelectExpression select, java.lang.String table_alias)
public FromTableDef(TableSelectExpression select)
Method Detail |
---|
public void setUniqueKey(java.lang.String unique_key)
public java.lang.String getName()
public java.lang.String getAlias()
public java.lang.String getUniqueKey()
public boolean isSubQueryTable()
public TableSelectExpression getTableSelectExpression()
public void prepareExpressions(ExpressionPreparer preparer) throws DatabaseException
DatabaseException
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |