Package org.alfresco.opencmis.mapping
Class BaseLuceneBuilder
- java.lang.Object
-
- org.alfresco.opencmis.mapping.BaseLuceneBuilder
-
- All Implemented Interfaces:
CMISPropertyLuceneBuilder
- Direct Known Subclasses:
AbstractSimpleLuceneBuilder
,BaseTypeIdLuceneBuilder
,FixedValueLuceneBuilder
,NotSupportedLuceneBuilder
,ObjectIdLuceneBuilder
,ObjectTypeIdLuceneBuilder
,ParentLuceneBuilder
public class BaseLuceneBuilder extends Object implements CMISPropertyLuceneBuilder
Base class for all property lucene builders- Author:
- davidc
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseLuceneBuilder()
Construct
-
Method Summary
-
-
-
Method Detail
-
buildLuceneEquality
public <Q,S,E extends Throwable> Q buildLuceneEquality(QueryParserAdaptor<Q,S,E> lqpa, Serializable value, PredicateMode mode, LuceneFunction luceneFunction) throws E extends Throwable
- Specified by:
buildLuceneEquality
in interfaceCMISPropertyLuceneBuilder
value
- Serializablemode
- PredicateModeluceneFunction
- LuceneFunction- Returns:
- the query - may be null if no query is required
- Throws:
E
E extends Throwable
-
buildLuceneExists
public <Q,S,E extends Throwable> Q buildLuceneExists(QueryParserAdaptor<Q,S,E> lqpa, Boolean not) throws E extends Throwable
- Specified by:
buildLuceneExists
in interfaceCMISPropertyLuceneBuilder
not
- Boolean- Returns:
- the query - may be null if no query is required
- Throws:
E
E extends Throwable
-
buildLuceneGreaterThan
public <Q,S,E extends Throwable> Q buildLuceneGreaterThan(QueryParserAdaptor<Q,S,E> lqpa, Serializable value, PredicateMode mode, LuceneFunction luceneFunction) throws E extends Throwable
- Specified by:
buildLuceneGreaterThan
in interfaceCMISPropertyLuceneBuilder
value
- Serializablemode
- PredicateModeluceneFunction
- LuceneFunction- Returns:
- the query - may be null if no query is required
- Throws:
E
E extends Throwable
-
buildLuceneGreaterThanOrEquals
public <Q,S,E extends Throwable> Q buildLuceneGreaterThanOrEquals(QueryParserAdaptor<Q,S,E> lqpa, Serializable value, PredicateMode mode, LuceneFunction luceneFunction) throws E extends Throwable
- Specified by:
buildLuceneGreaterThanOrEquals
in interfaceCMISPropertyLuceneBuilder
value
- Serializablemode
- PredicateModeluceneFunction
- LuceneFunction- Returns:
- the query - may be null if no query is required
- Throws:
E
E extends Throwable
-
buildLuceneIn
public <Q,S,E extends Throwable> Q buildLuceneIn(QueryParserAdaptor<Q,S,E> lqpa, Collection<Serializable> values, Boolean not, PredicateMode mode) throws E extends Throwable
- Specified by:
buildLuceneIn
in interfaceCMISPropertyLuceneBuilder
not
- Booleanmode
- PredicateMode- Returns:
- the query - may be null if no query is required
- Throws:
E
E extends Throwable
-
buildLuceneInequality
public <Q,S,E extends Throwable> Q buildLuceneInequality(QueryParserAdaptor<Q,S,E> lqpa, Serializable value, PredicateMode mode, LuceneFunction luceneFunction) throws E extends Throwable
- Specified by:
buildLuceneInequality
in interfaceCMISPropertyLuceneBuilder
value
- PredicateModemode
- PredicateModeluceneFunction
- LuceneFunction- Returns:
- the query - may be null if no query is required
- Throws:
E
E extends Throwable
-
buildLuceneLessThan
public <Q,S,E extends Throwable> Q buildLuceneLessThan(QueryParserAdaptor<Q,S,E> lqpa, Serializable value, PredicateMode mode, LuceneFunction luceneFunction) throws E extends Throwable
- Specified by:
buildLuceneLessThan
in interfaceCMISPropertyLuceneBuilder
value
- Serializablemode
- PredicateModeluceneFunction
- LuceneFunction- Returns:
- the query - may be null if no query is required
- Throws:
E
E extends Throwable
-
buildLuceneLessThanOrEquals
public <Q,S,E extends Throwable> Q buildLuceneLessThanOrEquals(QueryParserAdaptor<Q,S,E> lqpa, Serializable value, PredicateMode mode, LuceneFunction luceneFunction) throws E extends Throwable
- Specified by:
buildLuceneLessThanOrEquals
in interfaceCMISPropertyLuceneBuilder
value
- Serializablemode
- PredicateModeluceneFunction
- LuceneFunction- Returns:
- the query - may be null if no query is required
- Throws:
E
E extends Throwable
-
buildLuceneLike
public <Q,S,E extends Throwable> Q buildLuceneLike(QueryParserAdaptor<Q,S,E> lqpa, Serializable value, Boolean not) throws E extends Throwable
- Specified by:
buildLuceneLike
in interfaceCMISPropertyLuceneBuilder
value
- Serializablenot
- Boolean- Returns:
- the query - may be null if no query is required
- Throws:
E
E extends Throwable
-
getLuceneFieldName
public String getLuceneFieldName()
- Specified by:
getLuceneFieldName
in interfaceCMISPropertyLuceneBuilder
- Returns:
- the field name
-
getLuceneSortField
public <Q,S,E extends Throwable> String getLuceneSortField(QueryParserAdaptor<Q,S,E> lqpa) throws E extends Throwable
- Specified by:
getLuceneSortField
in interfaceCMISPropertyLuceneBuilder
- Parameters:
lqpa
- TODO- Returns:
- the sort field
- Throws:
E
E extends Throwable
-
-