org.jminor.framework.db.criteria
Interface EntityCriteria

All Known Subinterfaces:
EntitySelectCriteria

public interface EntityCriteria

A class encapsulating query criteria parameters for querying a set of entities.


Method Summary
 Criteria<Property.ColumnProperty> getCriteria()
           
 String getEntityID()
           
 List<Property.ColumnProperty> getValueProperties()
           
 List<Object> getValues()
           
 String getWhereClause()
           
 String getWhereClause(boolean includeWhereKeyword)
           
 

Method Detail

getEntityID

String getEntityID()
Returns:
the entity ID

getCriteria

Criteria<Property.ColumnProperty> getCriteria()
Returns:
the Criteria object

getWhereClause

String getWhereClause()
Returns:
the where clause

getWhereClause

String getWhereClause(boolean includeWhereKeyword)
Parameters:
includeWhereKeyword - if true the returned string is prefixed with the WHERE keyword, if false it is prefixed with the AND keyword
Returns:
a where clause base on this criteria

getValues

List<Object> getValues()
Returns:
the values the underlying criteria is based on, if any, in the order their respective properties are returned by getValueProperties()

getValueProperties

List<Property.ColumnProperty> getValueProperties()
Returns:
the properties of the values the underlying criteria is based on, if any, in the order their respective values are returned by getValues()