Package overit.geocall.sql.code
Class Values
java.lang.Object
overit.geocall.sql.code.fragment.DoubleFragment
overit.geocall.sql.code.fragment.DoubleFragmentSequence
overit.geocall.sql.code.Values
The class extends
This class defina a specific structure with which the values must be created, for example separated by a comma.
DoubleFragmentSequence and aims to define a sql's fragment to represent the values in the INSERT and in the UPDATE sql's statement.This class defina a specific structure with which the values must be created, for example separated by a comma.
-
Field Summary
Fields inherited from class overit.geocall.sql.code.fragment.DoubleFragmentSequence
_fragments, _separator1, _separator2Fields inherited from class overit.geocall.sql.code.fragment.DoubleFragment
_criterion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a value to the value's list used in the current sql's fragment.Adds a value to the value's list used in the current sql's fragment and replace the current criterion withthe new one passed by parameter.Adds a field's array to the value's list used in the current sql's fragment.Adds a field's array to the value's list used in the current sql's fragment and replace the current criterion withthe new one passed by parameter.Methods inherited from class overit.geocall.sql.code.fragment.DoubleFragmentSequence
add, appendTo, clearMethods inherited from class overit.geocall.sql.code.fragment.DoubleFragment
addCriterion, getCriterion, replaceCriterion, toString
-
Constructor Details
-
Values
Creates a new Values- Parameters:
separator- The separator
-
-
Method Details
-
addValue
Adds a value to the value's list used in the current sql's fragment.- Parameters:
field- The field to add.- Returns:
- The list with the filed plus the value added.
-
addValue
Adds a value to the value's list used in the current sql's fragment and replace the current criterion withthe new one passed by parameter.- Parameters:
criterion- The new criterion to replace the oldest.field- The field to add.- Returns:
- The list with the filed plus the value added.
-
addValues
Adds a field's array to the value's list used in the current sql's fragment.- Parameters:
fieldRe- The field's array to add.- Returns:
- The list with the filed plus the values added.
-
addValues
Adds a field's array to the value's list used in the current sql's fragment and replace the current criterion withthe new one passed by parameter.- Parameters:
criterion- The new criterion to replace the oldest.fieldRe- The field's array to add.- Returns:
- The list with the filed plus the values added.
-