Package org.opencms.db
Class CmsCompositeQueryFragment
java.lang.Object
org.opencms.db.CmsCompositeQueryFragment
- All Implemented Interfaces:
I_CmsQueryFragment
A query fragment which aggregates the results from a list of other query fragments.
- Since:
- 8.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(I_CmsQueryFragment node) Adds a new query fragment.getNodes()
Returns the wrapped query fragments.void
Sets the prefix string (will be inserted before the other fragments).void
setSeparator
(String separator) Sets the separator which should be inserted between the constituent query fragments.void
Sets the suffix string (will be inserted after the other fragments).void
visit
(CmsStatementBuilder builder) Generates the SQL and parameters and sends them to the statement builder .
-
Constructor Details
-
CmsCompositeQueryFragment
public CmsCompositeQueryFragment()
-
-
Method Details
-
add
Adds a new query fragment.- Parameters:
node
- the query fragment
-
getNodes
Returns the wrapped query fragments.- Returns:
- a list of query fragments
-
setPrefix
Sets the prefix string (will be inserted before the other fragments).- Parameters:
prefix
- the prefix string
-
setSeparator
Sets the separator which should be inserted between the constituent query fragments.- Parameters:
separator
- the separator string
-
setSuffix
Sets the suffix string (will be inserted after the other fragments).- Parameters:
suffix
- the suffix string
-
visit
Description copied from interface:I_CmsQueryFragment
Generates the SQL and parameters and sends them to the statement builder .- Specified by:
visit
in interfaceI_CmsQueryFragment
- Parameters:
builder
- the statement builder- See Also:
-