Class OperationIn
java.lang.Object
overit.geocall.sql.code.criterion.Criterion
overit.geocall.sql.code.criterion.OperationIn
- All Implemented Interfaces:
Cloneable
The class extends
This Operation could be used like this way "NAMEFIELD IN ('VALUE1','VALUE2',....)" or "NAMEFIELD NOT IN ('VALUE1','VALUE2',....)".
Criterion and aims to represent the IN (or NOT IN) operator used in the clauses definition.This Operation could be used like this way "NAMEFIELD IN ('VALUE1','VALUE2',....)" or "NAMEFIELD NOT IN ('VALUE1','VALUE2',....)".
-
Field Summary
FieldsFields inherited from class overit.geocall.sql.code.criterion.Criterion
ASSIGN_NULL, DIFFERENT, DISCARD, DISCARD_CONTROLS, DISCARD_NULLS, DISCARD_USELESS_COLLECTION, DISCARD_USELESS_LIKE, DISCARD_USELESS_SET, DISCARD_USELESS_STRING, EMPTY_SET, EQUAL, GREATER, GREATEREQUAL, IN, IS, ISNOT, ISNOTNULL, ISNULL, LESS, LESSEQUAL, LIKE, NOT_EQUAL, NOTIN, NULL_SET, REQUIRE_IS_DIFFERENT, REQUIRE_IS_EQUAL_TO, REQUIRE_IS_GREATER_THAN, REQUIRE_IS_GREATER_THAN_OR_EQUAL_TO, REQUIRE_IS_IN, REQUIRE_IS_LESS_THAN, REQUIRE_IS_LESS_THAN_OR_EQUAL_TO, REQUIRE_IS_LIKE, REQUIRE_IS_NOT_IN, REQUIRE_IS_NOT_NULL, REQUIRE_IS_NULL, RESET_EMPTY_SET, TAKE_EMPTY_COLLECTION, TAKE_EMPTY_SET, TAKE_IN, TAKE_IS_NULL, TAKE_LIKE, USELESS_COLLECTION, USELESS_LIKE, USELESS_SET, USELESS_STRING -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new OperationInOperationIn(boolean not) Creates a new OperationIn -
Method Summary
Modifier and TypeMethodDescriptiondefines the Parts of the operation with all the information to become a fragment.booleaninthashCode()protected static voidstringify(StringBuilder sb, String name, Object o) protected static voidstringify(StringBuilder sb, String name, SmallKeyList c) Methods inherited from class overit.geocall.sql.code.criterion.Criterion
fieldDepiction
-
Field Details
-
_not
protected final boolean _not
-
-
Constructor Details
-
OperationIn
public OperationIn()Creates a new OperationIn -
OperationIn
public OperationIn(boolean not) Creates a new OperationIn- Parameters:
not- Boolean value indicating the operator IN or NOT IN depending on the value
-
-
Method Details
-
define
Description copied from class:Criteriondefines the Parts of the operation with all the information to become a fragment.- Specified by:
definein classCriterion- Parameters:
name- the nome of the context fieldvalue- 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
-
stringify
-
stringify
-
equals
-
hashCode
public int hashCode()
-