Class Operation

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

public class Operation extends Criterion
The class extends Criterion and aims to represent the operator used in the clauses definition.
For example in the clause "NAMEFIELD = ?VALUE" it's used the equal operation, in the clause "NAMEFIELD <= ?VALUE" it's used the less equal operation, and so on.
  • Field Details

    • _operation

      protected final String _operation
  • Constructor Details

    • Operation

      public Operation(String operation)
      Creates a new Operation
      Parameters:
      operation - The operation
  • 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