ch.elca.el4j.services.search.criterias
Class AndCriteria
java.lang.Object
ch.elca.el4j.services.search.criterias.AndCriteria
- All Implemented Interfaces:
- Criteria, Serializable
public class AndCriteria
- extends Object
- implements Criteria
Criteria that combines n Criteria with AND (i.e. all
Criterias must be true).
- Author:
- Philipp Oser (POS)
- See Also:
- Serialized Form
- File-location:
- AndCriteria
- Last check-in date:
- 2009-08-04 13:59:45 +0200 (Di, 04. Aug 2009) by swismer for revision 3873
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_criterias
protected List<Criteria> m_criterias
AndCriteria
public AndCriteria(Criteria left,
Criteria right)
AndCriteria
public AndCriteria(Criteria... criterias)
add
public void add(Criteria c)
getSqlWhereCondition
public String getSqlWhereCondition()
- The full Criteria as SQL representation. This does not
mean that we want to break encapsulation (Criteria should
be independent of the database) but SQL is a representation
that is easy to understand.
- Specified by:
getSqlWhereCondition
in interface Criteria
- Returns:
- an SQL string as it could occur in a SQL WHERE clause
getType
public String getType()
-
- Specified by:
getType
in interface Criteria
- Returns:
- Returns the criteria type.
getCriterias
public List<Criteria> getCriterias()
Copyright © 2005-2011 ELCA. All Rights Reserved.