Class CompoundSelect


public class CompoundSelect extends Sql
The class extends 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 Details

  • Constructor Details

    • CompoundSelect

      public CompoundSelect(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)".
      Parameters:
      operation - String containing the operation
  • Method Details