code: @Override
      public String getDataQuery(QueryFilter filter) {
          String query = getQuery();
          String whereClause = filter.getWhereClause();
          String result = null;
          if (whereClause != null && whereClause.length() > 0) {
              result = query.replaceAll(SUBSTITUTION_STRING, " AND " + whereClause);	
          } else {
              result = query.replaceAll(SUBSTITUTION_STRING, "");
          }
          return result;
      }
docs: /* (non-Javadoc)
  @see org.talend.esb.sam.server.persistence.dialects.DatabaseDialect#getDataQuery(org.talend.esb.sam.server.persistence.dialects.QueryFilter)