566 Implementing Web Applications with CM Information Integrator for Content and ODWEK
condString = "[@" + attrs[i].getName() + opStr + "\"" + dataValue +
"\"";
else
condString += " AND @" + attrs[i].getName() + opStr + "\"" +
dataValue + "\"";
}
}
// If an attribute value was provided to be searched on, we need to close
the bracket
if (!condString.equals(""))
condString += "]";
String queryString = "/" + strEntity + condString;
// Create a CMBQueryService (queryBean) on the connection, and prepare it
for sync
// searching
CMBQueryService queryBean = connection.getQueryService();
queryBean.setAsynchSearch(false);
queryBean.setQueryString(queryString, CMBBaseConstant.CMB_QS_TYPE_XPATH);
System.out.println("Performing " + queryStr ...