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());
if (Logger.isDebugEnabled()) Logger.debug(" " + command.toString());
return command;
}