|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.db.CmsStatementBuilder
public class CmsStatementBuilder
A helper class used to accumulate SQL fragments together with the corresponding query parameters.
Constructor Summary | |
---|---|
CmsStatementBuilder()
|
Method Summary | |
---|---|
void |
add(String fragment,
List<Object> params)
Adds an SQL fragment and zero or more query parameters. |
void |
add(String fragment,
Object... params)
Adds an SQL fragment and zero or more query parameters. |
List<Object> |
getParameters()
Returns the list of accumulated query parameters. |
String |
getQuery()
Returns the accumulated query string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CmsStatementBuilder()
Method Detail |
---|
public void add(String fragment, List<Object> params)
fragment
- the SQL fragmentparams
- the query parameterspublic void add(String fragment, Object... params)
fragment
- the SQL fragmentparams
- the query parameterspublic List<Object> getParameters()
public String getQuery()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |