org.jminor.common.db.criteria
Interface Criteria<T>

Type Parameters:
T - the type used as keys mapping the property values
All Known Implementing Classes:
CriteriaSet, SimpleCriteria

public interface Criteria<T>

A generic interface for objects serving as where conditions in database queries


Method Summary
 String asString()
           
 List<T> getValueKeys()
           
 List<Object> getValues()
           
 

Method Detail

asString

String asString()
Returns:
a SQL where condition string without the 'where' keyword

getValues

List<Object> getValues()
Returns:
a list of the values this criteria is based on, in the order they appear in the condition clause.

getValueKeys

List<T> getValueKeys()
Returns:
a list of T describing the values this criteria is based on, in the same order as their respective values appear in the condition clause