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
_operator
The binary operator to use.protected AdaptableDate
_value
The 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 String
build()
Build the solr query string representing the Query object.boolean
equals(Object obj)
int
hashCode()
-
-
-
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:Query
Build the solr query string representing the Query object.- Specified by:
build
in interfaceQuery
- Returns:
- the solr query string representing the Query object.
- Throws:
QuerySyntaxException
- if the query can't be built because of a syntax error.
-
-