Package org.ametys.cms.search.query
Class DublinCoreDateQuery
- java.lang.Object
 - 
- org.ametys.cms.search.query.DublinCoreDateQuery
 
 
- 
- All Implemented Interfaces:
 Query
public class DublinCoreDateQuery extends Object implements Query
Query on the Dublin Core date metadata. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface org.ametys.cms.search.query.Query
Query.LogicalOperator, Query.Operator 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description protected Query.Operator_operatorThe binary operator to use.protected AdaptableDate_valueThe value to test. 
- 
Constructor Summary
Constructors Constructor Description DublinCoreDateQuery(LocalDate value)Create a query on the Dublin Core date metadata with EQ operator.DublinCoreDateQuery(LocalDate value, Query.Operator operator)Create a query on the Dublin Core date metadata.DublinCoreDateQuery(AdaptableDate value)Create a query on the Dublin Core date metadata with EQ operator.DublinCoreDateQuery(AdaptableDate value, Query.Operator operator)Create a query on the Dublin Core date metadata. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbuild()Build the solr query string representing the Query object.booleanequals(Object obj)inthashCode() 
 - 
 
- 
- 
Field Detail
- 
_value
protected AdaptableDate _value
The value to test. 
- 
_operator
protected Query.Operator _operator
The binary operator to use. 
 - 
 
- 
Constructor Detail
- 
DublinCoreDateQuery
public DublinCoreDateQuery(LocalDate value)
Create a query on the Dublin Core date metadata with EQ operator.- Parameters:
 value- The value to test.
 
- 
DublinCoreDateQuery
public DublinCoreDateQuery(AdaptableDate value)
Create a query on the Dublin Core date metadata with EQ operator.- Parameters:
 value- The value to test.
 
- 
DublinCoreDateQuery
public DublinCoreDateQuery(LocalDate value, Query.Operator operator)
Create a query on the Dublin Core date metadata.- Parameters:
 value- The value to test.operator- The binary operator to use, can be one of EQ, NE, GT, GE, LT and LE.
 
- 
DublinCoreDateQuery
public DublinCoreDateQuery(AdaptableDate value, Query.Operator operator)
Create a query on the Dublin Core date metadata.- Parameters:
 value- The value to test.operator- The binary operator to use, can be one of EQ, NE, GT, GE, LT and LE.
 
 - 
 
- 
Method Detail
- 
build
public String build() throws QuerySyntaxException
Description copied from interface:QueryBuild the solr query string representing the Query object.- Specified by:
 buildin interfaceQuery- Returns:
 - the solr query string representing the Query object.
 - Throws:
 QuerySyntaxException- if the query can't be built because of a syntax error.
 
 - 
 
 -