Class Parts

java.lang.Object
overit.geocall.sql.code.criterion.Parts

public class Parts extends Object
Thi class aims to define the structure of a three-part clause LEFT CENTER RIGHT.
The structure LEFT CENTER RIGHT represent the classic clause structure FIELD OPERATION VALUE.
  • Field Details

    • EMPTY

      public static final Parts EMPTY
    • _left

      protected final String _left
    • _center

      protected final String _center
    • _right

      protected final String _right
  • Constructor Details

    • Parts

      public Parts()
      The class's constructor that define an empy clause.
    • Parts

      public Parts(String left, String center, String right)
      The class's constructor that define the LEFT CENTER RIGHT structure of the clause.
      Parameters:
      left - The LEFT part of the clause.
      center - The CENTER part of the clause.
      right - The RIGHT part of the clause.
  • Method Details

    • getLeft

      public String getLeft()
      Gets the Left part of the clause.
      Returns:
      The Left part of the clause.
    • getCenter

      public String getCenter()
      Gets the Center part of the clause.
      Returns:
      The Center part of the clause.
    • getRight

      public String getRight()
      Gets the Right part of the clause.
      Returns:
      The Right part of the clause.
    • isEmpty

      public boolean isEmpty()
      Gets if the cluse is empty or not. If all three parts (LEFT,CENTER and RIGHT) are null or "", so the clause is empty.
      Returns:
      true if all three parts (LEFT,CENTER and RIGHT) are null or "", false otherwise.