Class ExpressionSubquery
java.lang.Object
io.github.torand.fastersql.subquery.ExpressionSubquery
- All Implemented Interfaces:
Expression,Projection,Sql,Subquery
Implements a subquery to be used as projection or as operand for a predicate.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalias()Gets the column alias (label) assigned for this projection.Assigns a column alias (label) for this projection.Gets the statement parameters introduced by this fragment.query()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, waitMethods inherited from interface io.github.torand.fastersql.expression.Expression
dividedBy, dividedBy, minus, minus, mod, mod, plus, plus, times, timesMethods inherited from interface io.github.torand.fastersql.sql.Sql
aliasRefs, columnRefs
-
Constructor Details
-
ExpressionSubquery
Creates an expression subquery.- Parameters:
query- the query.
-
-
Method Details
-
sql
Description copied from interface:SqlFormats object as an SQL fragment. -
params
Description copied from interface:SqlGets the statement parameters introduced by this fragment. -
query
Description copied from interface:SubqueryGets the SELECT statement of this subquery. -
as
Description copied from interface:ProjectionAssigns a column alias (label) for this projection.- Specified by:
asin interfaceProjection- Parameters:
alias- the column alias or label.- Returns:
- the projection with specified alias assigned.
-
alias
Description copied from interface:ProjectionGets the column alias (label) assigned for this projection.- Specified by:
aliasin interfaceProjection- Returns:
- the column alias (label) assigned for this projection.
-