Package org.alfresco.opencmis.mapping
Class ParentLuceneBuilder
- java.lang.Object
-
- org.alfresco.opencmis.mapping.BaseLuceneBuilder
-
- org.alfresco.opencmis.mapping.ParentLuceneBuilder
-
- All Implemented Interfaces:
CMISPropertyLuceneBuilder
public class ParentLuceneBuilder extends BaseLuceneBuilder
Lucene Builder for CMIS parent property- Author:
- andyh
-
-
Constructor Summary
Constructors Constructor Description ParentLuceneBuilder(DictionaryService dictionaryService)
Construct
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <Q,S,E extends Throwable>
QbuildLuceneEquality(LuceneQueryParserAdaptor<Q,S,E> lqpa, Serializable value, PredicateMode mode, LuceneFunction luceneFunction)
<Q,S,E extends Throwable>
QbuildLuceneExists(LuceneQueryParserAdaptor<Q,S,E> lqpa, Boolean not)
<Q,S,E extends Throwable>
QbuildLuceneLike(LuceneQueryParserAdaptor<Q,S,E> lqpa, Serializable value, Boolean not)
String
getLuceneFieldName()
<Q,S,E extends Throwable>
StringgetLuceneSortField(LuceneQueryParserAdaptor<Q,S,E> lqpa)
-
Methods inherited from class org.alfresco.opencmis.mapping.BaseLuceneBuilder
buildLuceneGreaterThan, buildLuceneGreaterThanOrEquals, buildLuceneIn, buildLuceneInequality, buildLuceneLessThan, buildLuceneLessThanOrEquals
-
-
-
-
Constructor Detail
-
ParentLuceneBuilder
public ParentLuceneBuilder(DictionaryService dictionaryService)
Construct- Parameters:
dictionaryService
- DictionaryService
-
-
Method Detail
-
getLuceneFieldName
public String getLuceneFieldName()
- Specified by:
getLuceneFieldName
in interfaceCMISPropertyLuceneBuilder
- Overrides:
getLuceneFieldName
in classBaseLuceneBuilder
- Returns:
- the field name
-
buildLuceneEquality
public <Q,S,E extends Throwable> Q buildLuceneEquality(LuceneQueryParserAdaptor<Q,S,E> lqpa, Serializable value, PredicateMode mode, LuceneFunction luceneFunction) throws E extends Throwable
- Specified by:
buildLuceneEquality
in interfaceCMISPropertyLuceneBuilder
- Overrides:
buildLuceneEquality
in classBaseLuceneBuilder
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(LuceneQueryParserAdaptor<Q,S,E> lqpa, Boolean not) throws E extends Throwable
- Specified by:
buildLuceneExists
in interfaceCMISPropertyLuceneBuilder
- Overrides:
buildLuceneExists
in classBaseLuceneBuilder
not
- Boolean- 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(LuceneQueryParserAdaptor<Q,S,E> lqpa, Serializable value, Boolean not) throws E extends Throwable
- Specified by:
buildLuceneLike
in interfaceCMISPropertyLuceneBuilder
- Overrides:
buildLuceneLike
in classBaseLuceneBuilder
value
- Serializablenot
- Boolean- Returns:
- the query - may be null if no query is required
- Throws:
E
E extends Throwable
-
getLuceneSortField
public <Q,S,E extends Throwable> String getLuceneSortField(LuceneQueryParserAdaptor<Q,S,E> lqpa)
- Specified by:
getLuceneSortField
in interfaceCMISPropertyLuceneBuilder
- Overrides:
getLuceneSortField
in classBaseLuceneBuilder
- Parameters:
lqpa
- TODO- Returns:
- the sort field
-
-