@Test public void testDistinct() { final CriteriaBuilder cb = new CriteriaBuilder(OnmsAlarm.class); cb.alias("node", "node"); assertFalse(cb.toCriteria().isDistinct()); cb.distinct(); assertTrue(cb.toCriteria().isDistinct()); cb.distinct(false); assertFalse(cb.toCriteria().isDistinct()); }
public boolean isDistinct() { return m_distinct; }
Criteria implements Cloneable { public boolean isDistinct() { return m_distinct; } }
Criteria implements Cloneable { public boolean isDistinct() { return m_distinct; } Criteria(final Class<?> clazz); }
Criteria implements Cloneable { public boolean isDistinct() { return m_distinct; } Criteria(final Class<?> clazz); void visit(final CriteriaVisitor visitor); Class<?> getCriteriaClass(); Collection<Order> getOrders(); void setOrders(final Collection<? extends Order> orderCollection); Collection<Fetch> getFetchTypes(); void setFetchTypes(final Collection<? extends Fetch> fetchTypes); Collection<Alias> getAliases(); void setAliases(final Collection<? extends Alias> aliases); Collection<Restriction> getRestrictions(); void setRestrictions(Collection<? extends Restriction> restrictions); void addRestriction(final Restriction restriction); boolean isDistinct(); void setDistinct(final boolean distinct); Integer getLimit(); void setLimit(final Integer limit); Integer getOffset(); void setOffset(final Integer offset); Class<?> getType(final String path); @Override String toString(); @Override Criteria clone(); }
Criteria implements Cloneable { public boolean isDistinct() { return m_distinct; } Criteria(final Class<?> clazz); void visit(final CriteriaVisitor visitor); Class<?> getCriteriaClass(); Collection<Order> getOrders(); void setOrders(final Collection<? extends Order> orderCollection); Collection<Fetch> getFetchTypes(); void setFetchTypes(final Collection<? extends Fetch> fetchTypes); Collection<Alias> getAliases(); void setAliases(final Collection<? extends Alias> aliases); Collection<Restriction> getRestrictions(); void setRestrictions(Collection<? extends Restriction> restrictions); void addRestriction(final Restriction restriction); boolean isDistinct(); void setDistinct(final boolean distinct); Integer getLimit(); void setLimit(final Integer limit); Integer getOffset(); void setOffset(final Integer offset); Class<?> getType(final String path); @Override String toString(); @Override Criteria clone();  }