String queryTarget = recipientCriteria.getDataSource().toString() + ClusterJosqlQueryProcessor.FLATTABLE;
String josql = "SELECT DISTINCT " + queryFields
+ " FROM " + queryTarget + " WHERE "
+ matchCondition;
ClusterJosqlQueryProcessor p = new ClusterJosqlQueryProcessor(manager);
List<Object> result = new ArrayList<Object>();
try
{
logger.info("JOSQL query: " + josql);
result = p.runJoSqlQuery(josql, null, null);
}
catch (Exception e)
{
logger.error("", e);
return selected;