- All Implemented Interfaces:
Relation, Sql, Subquery
Implements a subquery to be used in a FROM clause.
-
Constructor Summary
Constructors
Creates a table subquery.
-
Method Summary
Gets the table alias specified for this relation.
Specifies the table alias name of this relation.
Gets the statement parameters introduced by this fragment.
Gets the SELECT statement of this subquery.
Formats object as an SQL fragment.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TableSubquery
Creates a table subquery.
- Parameters:
query - the subquery.
-
Method Details
-
sql
Description copied from interface: Sql
Formats object as an SQL fragment.
- Specified by:
sql in interface Sql
- Parameters:
context - the context (incl. dialect).
- Returns:
- the formatted SQL fragment.
-
params
Description copied from interface: Sql
Gets the statement parameters introduced by this fragment.
- Specified by:
params in interface Sql
- Parameters:
context - the context (incl. dialect).
- Returns:
- the statement parameters.
-
query
Description copied from interface: Subquery
Gets the SELECT statement of this subquery.
- Specified by:
query in interface Subquery
- Returns:
- the SELECT statement of this subquery.
-
as
Description copied from interface: Relation
Specifies the table alias name of this relation.
- Specified by:
as in interface Relation
- Parameters:
alias - the table alias name.
- Returns:
- the modified relation.
-
alias
Description copied from interface: Relation
Gets the table alias specified for this relation.
- Specified by:
alias in interface Relation
- Returns:
- the table alias.