Class Parts
java.lang.Object
overit.geocall.sql.code.criterion.Parts
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.
The structure LEFT CENTER RIGHT represent the classic clause structure FIELD OPERATION VALUE.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
EMPTY
-
_left
-
_center
-
_right
-
-
Constructor Details
-
Parts
public Parts()The class's constructor that define an empy clause. -
Parts
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
Gets the Left part of the clause.- Returns:
- The Left part of the clause.
-
getCenter
Gets the Center part of the clause.- Returns:
- The Center part of the clause.
-
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:
trueif all three parts (LEFT,CENTER and RIGHT) are null or "",falseotherwise.
-