Class DocumentCriterion
- java.lang.Object
-
- org.bonitasoft.engine.core.document.DocumentCriterion
-
- All Implemented Interfaces:
java.io.Serializable
public class DocumentCriterion extends java.lang.Object implements java.io.Serializable- Author:
- Baptiste Mesta
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DocumentCriterion(DocumentField index, DocumentQueryBuilder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentQueryBuilderallVersion()DocumentQueryBuilderand()DocumentCriterionbetween(java.lang.Object from, java.lang.Object to)DocumentCriterionequalsTo(java.lang.Object value)DocumentFieldgetField()java.lang.ObjectgetFrom()java.lang.ObjectgetTo()java.lang.ObjectgetValue()java.util.Collection<?>getValues()DocumentCriterionin(java.util.Collection<?> values)DocumentQueryBuilderlatestVersion()DocumentQueryBuilderor()DocumentQueryBuilderrightParenthesis()
-
-
-
Constructor Detail
-
DocumentCriterion
public DocumentCriterion(DocumentField index, DocumentQueryBuilder builder)
- Parameters:
index-builder-
-
-
Method Detail
-
getField
public DocumentField getField()
- Returns:
- the fieldName
-
getValue
public java.lang.Object getValue()
- Returns:
- the value
-
getTo
public java.lang.Object getTo()
- Returns:
- the to
-
getFrom
public java.lang.Object getFrom()
- Returns:
- the from
-
equalsTo
public DocumentCriterion equalsTo(java.lang.Object value)
-
between
public DocumentCriterion between(java.lang.Object from, java.lang.Object to)
-
in
public DocumentCriterion in(java.util.Collection<?> values)
-
rightParenthesis
public DocumentQueryBuilder rightParenthesis()
-
or
public DocumentQueryBuilder or()
-
and
public DocumentQueryBuilder and()
-
allVersion
public DocumentQueryBuilder allVersion()
-
latestVersion
public DocumentQueryBuilder latestVersion()
-
getValues
public java.util.Collection<?> getValues()
- Returns:
-
-