Package org.opencms.db
Class CmsSimpleQueryFragment
java.lang.Object
org.opencms.db.CmsSimpleQueryFragment
- All Implemented Interfaces:
I_CmsQueryFragment
A simple query fragment which takes its SQL string and query parameters as
constructor arguments.
- Since:
- 8.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionCmsSimpleQueryFragment(String fragment, Object... params) Creates a new instance.CmsSimpleQueryFragment(String fragment, List<Object> params) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidvisit(CmsStatementBuilder builder) Generates the SQL and parameters and sends them to the statement builder .
-
Constructor Details
-
CmsSimpleQueryFragment
Creates a new instance.- Parameters:
fragment- the SQL fragmentparams- the query parameters
-
CmsSimpleQueryFragment
Creates a new instance.- Parameters:
fragment- the SQL fragmentparams- the query parameters
-
-
Method Details
-
visit
Description copied from interface:I_CmsQueryFragmentGenerates the SQL and parameters and sends them to the statement builder .- Specified by:
visitin interfaceI_CmsQueryFragment- Parameters:
builder- the statement builder- See Also:
-