public class QueryConstructor extends Object
Constructor and Description |
---|
QueryConstructor()
This is the default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addFromStatement(String fromStatement)
This adds the from part of the broker query.
|
void |
addOrderStatement(String orderStatement)
This adds the order part of the broker query.
|
void |
addQueryParameters(Map<String,Object> queryparameters)
This adds the query parameters needed for the broker query.
|
void |
addSelectStatement(String selectStatement)
This adds the select part of the broker query.
|
void |
addWhereStatement(String whereStatement)
This adds the condition part of the broker query.
|
String |
assembleQuery()
This assembles the full broker query.
|
Map<String,Object> |
getQueryParameters()
This returns the full map of the all the parameters needed in the broker query.
|
String |
getSelectStatement()
Get current select statement state.
|
String |
toString() |
public void addSelectStatement(String selectStatement)
selectStatement
- The select part of the broker query to be addedpublic void addFromStatement(String fromStatement)
fromStatement
- The from part of the broker query to be addedpublic void addWhereStatement(String whereStatement)
whereStatement
- The condition to be added to the broker querypublic void addOrderStatement(String orderStatement)
orderStatement
- The order part of the broker query to be addedpublic void addQueryParameters(Map<String,Object> queryparameters)
queryparameters
- The query parameters needed for the broker querypublic String getSelectStatement()
public Map<String,Object> getQueryParameters()
public String assembleQuery()
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries