Class Clause
java.lang.Object
overit.geocall.sql.code.criterion.Criterion
overit.geocall.sql.code.criterion.Clause
- All Implemented Interfaces:
Cloneable
The class extends
This class is really usefull when you need to create a Decision with a non-predefined criterion, a customized criterion.
For example a clause could be defined like "NAMEFIELD >= value".
Criterion and aims to define a clause expressed by pure sql code. This class is really usefull when you need to create a Decision with a non-predefined criterion, a customized criterion.
For example a clause could be defined like "NAMEFIELD >= value".
-
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
Constructors -
Method Summary
Methods inherited from class overit.geocall.sql.code.criterion.Criterion
fieldDepiction
-
Field Details
-
_clause
-
-
Constructor Details
-
Clause
This methos is the class's constructor and aims to sets the sql code's string.- Parameters:
clause- The Sql code's String to be set, to create the clause.
-
-
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
-
equals
-
hashCode
public int hashCode()
-