Class SelectSetOpStatement
java.lang.Object
io.github.torand.fastersql.statement.SelectSetOpStatement
- All Implemented Interfaces:
Sql,PreparableStatement
Implements a SELECT statement with set operations.
-
Method Summary
Modifier and TypeMethodDescriptionexcept(SelectStatement operand) Creates an EXCEPT set operation between this and the specified statement.exceptAll(SelectStatement operand) Creates an EXCEPT ALL set operation between this and the specified statement.intersect(SelectStatement operand) Creates an INTERSECT set operation between this and the specified statement.intersectAll(SelectStatement operand) Creates an INTERSECT ALL set operation between this and the specified statement.Adds one or more ORDER clauses.Gets the statement parameters introduced by this fragment.Formats object as an SQL fragment.toString()union(SelectStatement operand) Creates a UNION set operation between this and the specified statement.unionAll(SelectStatement operand) Creates a UNION ALL set operation between this and the specified statement.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.torand.fastersql.statement.PreparableStatement
toStringMethods inherited from interface io.github.torand.fastersql.sql.Sql
aliasRefs, columnRefs
-
Method Details
-
orderBy
Adds one or more ORDER clauses.- Parameters:
orders- the ORDER clauses.- Returns:
- the modified statement.
-
union
Creates a UNION set operation between this and the specified statement.- Parameters:
operand- the set operation operand.- Returns:
- the modified statement.
-
unionAll
Creates a UNION ALL set operation between this and the specified statement.- Parameters:
operand- the set operation operand.- Returns:
- the modified statement.
-
intersect
Creates an INTERSECT set operation between this and the specified statement. Note that INTERSECT has precedence over UNION and EXCEPT.- Parameters:
operand- the set operation operand.- Returns:
- the modified statement.
-
intersectAll
Creates an INTERSECT ALL set operation between this and the specified statement. Note that INTERSECT has precedence over UNION and EXCEPT.- Parameters:
operand- the set operation operand.- Returns:
- the modified statement.
-
except
Creates an EXCEPT set operation between this and the specified statement.- Parameters:
operand- the set operation operand.- Returns:
- the modified statement.
-
exceptAll
Creates an EXCEPT ALL set operation between this and the specified statement.- Parameters:
operand- the set operation operand.- Returns:
- the modified statement.
-
sql
Description copied from interface:SqlFormats object as an SQL fragment. -
params
Description copied from interface:SqlGets the statement parameters introduced by this fragment. -
toString
-