* @return an OCommandRequest object ready to be passed to the {@link #selectCommandExecute(com.orientechnologies.orient.core.command.OCommandRequest, Object[])} (OCommandRequest, String[])} method
* @throws SqlInjectionException If the query is not a select statement
*/
public static OCommandRequest selectCommandBuilder(String from, boolean count, QueryParams criteria) throws SqlInjectionException{
ODatabaseRecordTx db = DbHelper.getConnection();
OCommandRequest command = db.command(new OSQLSynchQuery<ODocument>(
selectQueryBuilder(from, count, criteria)
));
if (!command.isIdempotent()) throw new SqlInjectionException();
if (Logger.isDebugEnabled()) Logger.debug("commandBuilder: ");
if (Logger.isDebugEnabled()) Logger.debug(" " + criteria.toString());