if (spec.isUsingPartStamps()) { sep = whereCommon(spec.getTypes(), null, null, null, null, where, params); sep = wherePartStamps(sep, spec.getTypes(), spec.getFrom(), spec.getUntil(), where, params); } else sep = whereCommon(spec.getTypes(), spec.getFrom(), spec.getUntil(), spec.getCreationTimestampFrom(), spec.getCreationTimestampUntil(), where, params);
/** * Copy constructor. * * @param crit the criteria to copy */ public MatchCriteria(MatchCriteria crit) { this.types = copy(crit.getTypes()); String[][] tc = crit.getTagConstraint(); this.tags = new String[tc.length][]; for (int i = 0; i < tc.length; i++) this.tags[i] = copy(tc[i]); this.tagPrefixes = crit.getTagPrefixesConstraint(); this.from = crit.getFrom(); this.until = crit.getUntil(); this.creationTimestampFrom = crit.getCreationTimestampFrom(); this.creationTimestampUntil = crit.getCreationTimestampUntil(); this.usePartStamps = crit.isUsingPartStamps(); this.psk = crit.getPartSearchKey(); }