ch.elca.el4j.services.search.criterias
Class OrCriteria

java.lang.Object
  extended by ch.elca.el4j.services.search.criterias.OrCriteria
All Implemented Interfaces:
Criteria, Serializable

public class OrCriteria
extends Object
implements Criteria

Criteria that combines n Criteria with OR (i.e. one of the Criterias must be true).

Author:
Philipp Oser (POS)
See Also:
Serialized Form
File-location:
OrCriteria
Last check-in date:
2009-08-04 15:24:14 +0200 (Di, 04. Aug 2009) by swismer for revision 3882

Field Summary
protected  List<Criteria> m_criterias
           
 
Constructor Summary
OrCriteria(Criteria... criterias)
           
OrCriteria(Criteria left, Criteria right)
           
 
Method Summary
 List<Criteria> getCriterias()
           
 String getSqlWhereCondition()
          The full Criteria as SQL representation.
 String getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_criterias

protected List<Criteria> m_criterias
Constructor Detail

OrCriteria

public OrCriteria(Criteria left,
                  Criteria right)

OrCriteria

public OrCriteria(Criteria... criterias)
Method Detail

getType

public String getType()
Specified by:
getType in interface Criteria
Returns:
Returns the criteria type.

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

getCriterias

public List<Criteria> getCriterias()


Copyright © 2005-2011 ELCA. All Rights Reserved.