Package overit.geocall.sql.code
Class CompoundSelect
java.lang.Object
overit.geocall.sql.code.fragment.Fragment
overit.geocall.sql.code.fragment.FragmentSequence
overit.geocall.sql.code.Sql
overit.geocall.sql.code.CompoundSelect
The class extends
The entire statement will be enclosed between '(' and ')'.
Sql and aims to create a string of sql code in which there are two select statements divided by a specific operation like UNION,UNION_ALL,EXCEPT ecc.The entire statement will be enclosed between '(' and ')'.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FragmentSequenceprotected FragmentSequencestatic final StringA Static constant that define the EXCEPT sql statement.static final StringA Static constant that define the EXCEPT ALL sql statement.static final StringA Static constant that define the INSTERSECT sql statement.static final StringA Static constant that define the INSTERSECT ALL sql statement.static final StringA Static constant that define the MINUS sql statement.static final StringA Static constant that define the MINUS ALL sql statement.static final StringA Static constant that define the UNION sql statement.static final StringA Static constant that define the UNION ALL sql statement.Fields inherited from class overit.geocall.sql.code.fragment.FragmentSequence
_fragments, _prefix, _separator, _suffixFields inherited from class overit.geocall.sql.code.fragment.Fragment
_criterion -
Constructor Summary
ConstructorsConstructorDescriptionCompoundSelect(String operation) The class's constructor that define the entire statement based on the operation given by input.
An example could be the statement "(SELECT FIELD1 FROM TABLE1 UNION ALL SELECT FIELD2 FROM TABLE2)". -
Method Summary
Methods inherited from class overit.geocall.sql.code.fragment.FragmentSequence
add, add, appendTo, clear, get, sizeMethods inherited from class overit.geocall.sql.code.fragment.Fragment
getCriterion, overlapCriterion, replaceCriterion, toString
-
Field Details
-
UNION
A Static constant that define the UNION sql statement.- See Also:
-
UNION_ALL
A Static constant that define the UNION ALL sql statement.- See Also:
-
INTERSECT
A Static constant that define the INSTERSECT sql statement.- See Also:
-
INTERSECT_ALL
A Static constant that define the INSTERSECT ALL sql statement.- See Also:
-
EXCEPT
A Static constant that define the EXCEPT sql statement.- See Also:
-
EXCEPT_ALL
A Static constant that define the EXCEPT ALL sql statement.- See Also:
-
MINUS
A Static constant that define the MINUS sql statement.- See Also:
-
MINUS_ALL
A Static constant that define the MINUS ALL sql statement.- See Also:
-
_selects
-
_orderBys
-
-
Constructor Details
-
CompoundSelect
The class's constructor that define the entire statement based on the operation given by input.
An example could be the statement "(SELECT FIELD1 FROM TABLE1 UNION ALL SELECT FIELD2 FROM TABLE2)".- Parameters:
operation- String containing the operation
-
-
Method Details
-
selects
Gets the current SELECT statemnt.- Returns:
- A
FragmentSequencethat represent the current SELECT statement.
-
orderBy
Gets the current ORDER BY statemnt.- Returns:
- A
FragmentSequencethat represent the current ORDER BY statement.
-