Class OperationIsNull

java.lang.Object
overit.geocall.sql.code.criterion.Criterion
overit.geocall.sql.code.criterion.OperationIsNull
All Implemented Interfaces:
Cloneable

public class OperationIsNull extends Criterion
The class extends Criterion and aims to represent the IS-NULL (or IS NOT NULL) operator used in the clauses definition.
This Operation could be used like this way "NAMEFIELD IS NOT NULL" or "NAMEFIELD IS NULL".
  • Field Details

    • _not

      protected final boolean _not
  • Constructor Details

    • OperationIsNull

      public OperationIsNull()
      Creates a new OperationIsNull
    • OperationIsNull

      public OperationIsNull(boolean not)
      Creates a new OperationIsNull
      Parameters:
      not - Boolean value indicating the operator IN or NOT IN depending on the value
  • Method Details

    • define

      public Parts define(String name, Object value)
      Description copied from class: Criterion
      defines the Parts of the operation with all the information to become a fragment.
      Specified by:
      define in class Criterion
      Parameters:
      name - the nome of the context field
      value - the current value of the context field
      Returns:
      return null if the Criterion don't find an information, a Parts otherwise. Then Parts con also contain empty strings if the decision is to discard the name and the value
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object