Package com.mckoi.database.interpret
Class FromTableDef
java.lang.Object
com.mckoi.database.interpret.FromTableDef
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a single table declaration in the from clause of a table
expression (SELECT).
- Author:
- Tobias Downer
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFromTableDef
(TableSelectExpression select) A simple sub-query table definition (not aliased).FromTableDef
(TableSelectExpression select, String table_alias) A table that is a sub-query and given an aliased name.FromTableDef
(String table_name) A simple table definition (not aliased).FromTableDef
(String table_name, String table_alias) Constructs the table def. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the object (deep clone of immutable members).getAlias()
Returns the alias for this table (or null if no alias given).getName()
Returns the name of the table.Returns the TableSelectExpression if this is a subquery table.Returns the unique key.boolean
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
(String unique_key) Sets the unique key.
-
Constructor Details
-
FromTableDef
Constructs the table def. The constructs a table that is aliased under a different name. -
FromTableDef
A simple table definition (not aliased). -
FromTableDef
A table that is a sub-query and given an aliased name. -
FromTableDef
A simple sub-query table definition (not aliased).
-
-
Method Details
-
setUniqueKey
Sets the unique key. -
getName
Returns the name of the table. -
getAlias
Returns the alias for this table (or null if no alias given). -
getUniqueKey
Returns the unique key. -
isSubQueryTable
public boolean isSubQueryTable()Returns true if this item in the FROM clause is a subquery table. -
getTableSelectExpression
Returns the TableSelectExpression if this is a subquery table. -
prepareExpressions
Prepares the expressions in this table def.- Throws:
DatabaseException
-
clone
Clones the object (deep clone of immutable members).- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-