public class CmsCompositeQueryFragment extends java.lang.Object implements I_CmsQueryFragment
Constructor and Description |
---|
CmsCompositeQueryFragment() |
Modifier and Type | Method and Description |
---|---|
void |
add(I_CmsQueryFragment node)
Adds a new query fragment.
|
java.util.List<I_CmsQueryFragment> |
getNodes()
Returns the wrapped query fragments.
|
void |
setPrefix(java.lang.String prefix)
Sets the prefix string (will be inserted before the other fragments).
|
void |
setSeparator(java.lang.String separator)
Sets the separator which should be inserted between the constituent query fragments.
|
void |
setSuffix(java.lang.String suffix)
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 .
|
public CmsCompositeQueryFragment()
public void add(I_CmsQueryFragment node)
node
- the query fragmentpublic java.util.List<I_CmsQueryFragment> getNodes()
public void setPrefix(java.lang.String prefix)
prefix
- the prefix stringpublic void setSeparator(java.lang.String separator)
separator
- the separator stringpublic void setSuffix(java.lang.String suffix)
suffix
- the suffix stringpublic void visit(CmsStatementBuilder builder)
I_CmsQueryFragment
visit
in interface I_CmsQueryFragment
builder
- the statement builderI_CmsQueryFragment.visit(org.opencms.db.CmsStatementBuilder)