Class SetOperation
java.lang.Object
io.github.torand.fastersql.setoperation.SetOperation
- All Implemented Interfaces:
Sql
Implements a set operation.
-
Constructor Summary
ConstructorsConstructorDescriptionSetOperation(SelectStatement operand, SetOperator operator) Creates a set operation clause. -
Method Summary
Modifier and TypeMethodDescriptionGets the column aliases referenced by this fragment.all()Specifies that this is a natural set operation, i.e. not excluding duplicates.Gets the columns referenced by this fragment.operand()Gets the operand of this set operation.Gets the statement parameters introduced by this fragment.Formats object as an SQL fragment.
-
Constructor Details
-
SetOperation
Creates a set operation clause.- Parameters:
operand- the SELECT statement operand.operator- the set operator applied.
-
-
Method Details
-
all
Specifies that this is a natural set operation, i.e. not excluding duplicates.- Returns:
- the modified set operation.
-
operand
Gets the operand of this set operation.- Returns:
- the operand.
-
sql
Description copied from interface:SqlFormats object as an SQL fragment. -
params
Description copied from interface:SqlGets the statement parameters introduced by this fragment. -
columnRefs
Description copied from interface:SqlGets the columns referenced by this fragment. For validation purposes.- Specified by:
columnRefsin interfaceSql- Returns:
- the columns referenced by this fragment.
-
aliasRefs
Description copied from interface:SqlGets the column aliases referenced by this fragment. For validation purposes.
-