Package overit.geocall.sql.code
Class Condition
java.lang.Object
overit.geocall.sql.code.fragment.Fragment
overit.geocall.sql.code.fragment.FragmentSequence
overit.geocall.sql.code.Condition
- Direct Known Subclasses:
AndCondition,OrCondition
The class extends
FragmentSequence and aims to add a new Clause or Condition to a Fragment.-
Field Summary
Fields inherited from class overit.geocall.sql.code.fragment.FragmentSequence
_fragments, _prefix, _separator, _suffixFields inherited from class overit.geocall.sql.code.fragment.Fragment
_criterion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a Clause to a Fragment for a specific field given by input.Adds a Clause to a Fragment with a criterion that must be respected by a field given by input.addClauses(String... fieldRe) Adds a Clause to a Fragment for a specific field's array given by input.addClauses(Criterion criterion, String... fieldRe) Adds a Clause to a Fragment with a criterion that must be respected by a field's array given by input.Add a condition enclosed in round brackets.Methods inherited from class overit.geocall.sql.code.fragment.FragmentSequence
add, add, appendTo, clear, get, sizeMethods inherited from class overit.geocall.sql.code.fragment.Fragment
getCriterion, overlapCriterion, replaceCriterion, toString
-
Constructor Details
-
Condition
Creates a new Condition- Parameters:
prefix- The prefixseparator- The separatorsuffix- The suffix
-
Condition
Creates a new Condition- Parameters:
separator- The separator
-
-
Method Details
-
addClause
Adds a Clause to a Fragment with a criterion that must be respected by a field given by input.- Parameters:
criterion- The criterion with which the Fragment is created.field- The name of the field that must comply with the pattern defined by the criterion, for matching the rule.- Returns:
- A Fragment with a criterion that must be respected by a field given by input.
-
addClause
Adds a Clause to a Fragment for a specific field given by input.- Parameters:
field- The name of the field.- Returns:
- A Fragment with Clause set for a specific field given by input.
-
addClauses
Adds a Clause to a Fragment with a criterion that must be respected by a field's array given by input.- Parameters:
criterion- The criterion with which the Fragment is created.fieldRe- The field's array that must comply with the pattern defined by the criterion, for matching the rule.- Returns:
- A Fragment with a criterion that must be respected by a field's array given by input.
-
addClauses
Adds a Clause to a Fragment for a specific field's array given by input.- Parameters:
fieldRe- The field's array.- Returns:
- A Fragment with Clause set for a specific field's array given by input.
-
addCondition
Add a condition enclosed in round brackets.- Parameters:
c- The condition to add.- Returns:
- A Fragment with Condition c, enclosed in round brackets.
-