out.append("select $object $itemID $date $state\n");
out.append("select $item $itemID $date $state\n");
    private String getListRecordsPrimaryQuery(String afterUTC,                                              String beforeUTC,                                              String dissTypeURI) {        StringBuffer out = new StringBuffer();        out.append("select $object $itemID $date $state\n");        appendCommonFromWhereAnd(out);        out.append("and    " + getStatePattern() + "\n");        appendRecordDissTypePart(dissTypeURI, out);        appendDateParts(afterUTC, beforeUTC, true, out);        appendOrder(out);        return out.toString();    }