@Test public void testToHQLString_empty() { Condition condition = new Condition(); Assert.assertEquals(condition.toHQLString(), ""); }
public String toHQLString() { String hql = buildHQLString(); if (hql == null) { return ""; } else { return "where " + hql; } }
Condition { public String toHQLString() { String hql = buildHQLString(); if (hql == null) { return ""; } else { return "where " + hql; } } }
Condition { public String toHQLString() { String hql = buildHQLString(); if (hql == null) { return ""; } else { return "where " + hql; } } Condition();  Condition(JoinedType joinedType); }
Condition { public String toHQLString() { String hql = buildHQLString(); if (hql == null) { return ""; } else { return "where " + hql; } } Condition();  Condition(JoinedType joinedType); List<Entry> getEntries(); Condition addOrder(String field, boolean asc); void addEntry(Condition condition); void addEntry(String fieldName, ConditionType conditionType, Object value); void addEntry(Entry entry); String toHQLString(); void setPageInfo(PageInfo pageInfo); PageInfo getPageInfo(); String getOrdersString(); String toHQLStringWithOrders(); JoinedType getJoinedType(); }
Condition { public String toHQLString() { String hql = buildHQLString(); if (hql == null) { return ""; } else { return "where " + hql; } } Condition();  Condition(JoinedType joinedType); List<Entry> getEntries(); Condition addOrder(String field, boolean asc); void addEntry(Condition condition); void addEntry(String fieldName, ConditionType conditionType, Object value); void addEntry(Entry entry); String toHQLString(); void setPageInfo(PageInfo pageInfo); PageInfo getPageInfo(); String getOrdersString(); String toHQLStringWithOrders(); JoinedType getJoinedType();  }