Package overit.geocall.sql.code.fragment
Class EnclosedDoubleFragment
java.lang.Object
overit.geocall.sql.code.fragment.Fragment
overit.geocall.sql.code.fragment.EnclosedDoubleFragment
The class extends
The typical structure that is defined is (KEY) OPERATION (VALUES).
For example is used for the INSERT statement like this INSTERT INTO AUSENTE (AUSENAME, AUSESURNAME) VALUES ('Mario', 'Rossi').
Fragment and aims to enclose a Double Fragment.The typical structure that is defined is (KEY) OPERATION (VALUES).
For example is used for the INSERT statement like this INSTERT INTO AUSENTE (AUSENAME, AUSESURNAME) VALUES ('Mario', 'Rossi').
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected DoubleFragmentprotected Stringprotected StringFields inherited from class overit.geocall.sql.code.fragment.Fragment
_criterion -
Constructor Summary
ConstructorsConstructorDescriptionEnclosedDoubleFragment(DoubleFragment fragment, String left, String center, String right) Creates a new EnclosedDoubleFragment -
Method Summary
Methods inherited from class overit.geocall.sql.code.fragment.Fragment
getCriterion, overlapCriterion, replaceCriterion, toString
-
Field Details
-
_fragment
-
_left
-
_center
-
_right
-
-
Constructor Details
-
EnclosedDoubleFragment
Creates a new EnclosedDoubleFragment- Parameters:
fragment- The fragmentleft- The leftcenter- The centerright- The right
-
-
Method Details
-
appendTo
public boolean appendTo(StringBuilder sb, String header, Criterion criterion, Map<String, Object> context) Description copied from class:FragmentThis method is used to create the Fragment's SQL string.- Specified by:
appendToin classFragment- Parameters:
sb- The StringBuilder used to add the current piece (Fragment) of SQL cod, to create the complete SQL string.header- The string previus the Fragment's code.criterion- The Criterion, set by default, to apply.context- The input values to define the clauses of the sql string.- Returns:
trueif there's a Fragment to add,falseotherwise.
-