Class Match
java.lang.Object
overit.geocall.sql.code.criterion.Match
The class contains all the information needed to check if the values ??passed in input (keys and/or values) match the Decisions.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionMatch()Creates a new MatchMatch(String fieldPattern, String valuePattern, Class<?> type, Collection<?> valuesIn, Collection<?> valuesOut) protectedMatch(Match m, String fieldPattern, String valuePattern, Class<?> type, Collection<?> valuesIn, Collection<?> valuesOut) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()protected booleansetFieldPattern(String pattern) Gets aMatchobject with the field pattern that must be respected for the decision to match.Gets aMatchobject with the value's type Class that must be respected for the decision to match.setValuePattern(String pattern) Gets aMatchobject with the value pattern that must be respected for the decision to match.setValuesIn(Collection<?> valuesIn) Gets aMatchobject with the value's set (for the IN sql CLAUSE) that must be respected for the decision to match.setValuesOut(Collection<?> valuesOut) Gets aMatchobject with the value's set (for the NOT IN sql CLAUSE) that must be respected for the decision to match.
-
Field Details
-
_fieldPattern
-
_valuePattern
-
_type
-
_valuesIn
-
_valuesOut
-
-
Constructor Details
-
Match
public Match()Creates a new Match -
Match
public Match(String fieldPattern, String valuePattern, Class<?> type, Collection<?> valuesIn, Collection<?> valuesOut) -
Match
protected Match(Match m, String fieldPattern, String valuePattern, Class<?> type, Collection<?> valuesIn, Collection<?> valuesOut)
-
-
Method Details
-
setFieldPattern
Gets aMatchobject with the field pattern that must be respected for the decision to match.- Parameters:
pattern- The field pattern to set.- Returns:
- A
Matchobject
-
setValuePattern
Gets aMatchobject with the value pattern that must be respected for the decision to match.- Parameters:
pattern- The value pattern to set.- Returns:
- A
Matchobject
-
setType
Gets aMatchobject with the value's type Class that must be respected for the decision to match.- Parameters:
type- The value's type Class to set.- Returns:
- A
Matchobject
-
setValuesIn
Gets aMatchobject with the value's set (for the IN sql CLAUSE) that must be respected for the decision to match.- Parameters:
valuesIn- The value's set to set.- Returns:
- A
Matchobject
-
setValuesOut
Gets aMatchobject with the value's set (for the NOT IN sql CLAUSE) that must be respected for the decision to match.- Parameters:
valuesOut- The value's set to set.- Returns:
- A
Matchobject
-
matches
-
equals
-
hashCode
public int hashCode()
-