@Transactional(readOnly=true) public class SearchBean extends AbstractStatefulBean implements ome.api.Search
Search
interface.iQuery, iUpdate, modified, sec
Constructor and Description |
---|
SearchBean()
Empty constructor required by EJB and
self configuration . |
SearchBean(Executor executor,
java.lang.Class<? extends org.apache.lucene.analysis.Analyzer> analyzer) |
Modifier and Type | Method and Description |
---|---|
void |
activate() |
int |
activeQueries() |
void |
addAction(SearchAction action) |
void |
addOrderByAsc(java.lang.String path) |
void |
addOrderByDesc(java.lang.String path) |
void |
addParameters(ome.parameters.Parameters params) |
void |
addResult(java.util.List<ome.model.IObject> result) |
void |
allTypes() |
void |
and() |
void |
byAnnotatedWith(ome.model.annotations.Annotation... examples) |
void |
byFullText(java.lang.String query) |
void |
byGroupForTags(java.lang.String group) |
void |
byHqlQuery(java.lang.String query,
ome.parameters.Parameters p) |
void |
byLuceneQueryBuilder(java.lang.String fields,
java.lang.String from,
java.lang.String to,
java.lang.String dateType,
java.lang.String query) |
void |
bySimilarTerms(java.lang.String... terms) |
void |
bySomeMustNone(java.lang.String[] some,
java.lang.String[] must,
java.lang.String[] none) |
void |
byTagForGroups(java.lang.String tag) |
void |
byUUID(java.lang.String[] uuids) |
void |
clearQueries() |
void |
close() |
java.util.Map<java.lang.String,ome.model.annotations.Annotation> |
currentMetadata() |
java.util.List<java.util.Map<java.lang.String,ome.model.annotations.Annotation>> |
currentMetadataList() |
<T extends ome.model.IObject> |
fetchAlso(java.util.Map<T,java.lang.String> fetches) |
void |
fetchAlso(java.lang.String... fetches) |
void |
fetchAnnotations(java.lang.Class... classes) |
int |
getBatchSize() |
java.lang.Class<? extends ome.api.ServiceInterface> |
getServiceInterface() |
boolean |
hasNext() |
boolean |
isAllowLeadingWildcard() |
boolean |
isCaseSensitive() |
boolean |
isMergedBatches() |
boolean |
isReturnUnloaded() |
boolean |
isUseProjections() |
void |
lastresultsAsWorkingGroup() |
ome.model.IObject |
next() |
void |
not() |
void |
notAnnotatedBy(ome.model.internal.Details d) |
void |
notOwnedBy(ome.model.internal.Details d) |
void |
onlyAnnotatedBetween(java.sql.Timestamp start,
java.sql.Timestamp stop) |
void |
onlyAnnotatedBy(ome.model.internal.Details d) |
void |
onlyAnnotatedWith(java.lang.Class... classes) |
void |
onlyCreatedBetween(java.sql.Timestamp start,
java.sql.Timestamp stop) |
void |
onlyIds(java.lang.Long... ids) |
void |
onlyModifiedBetween(java.sql.Timestamp start,
java.sql.Timestamp stop) |
void |
onlyOwnedBy(ome.model.internal.Details d) |
<T extends ome.model.IObject> |
onlyType(java.lang.Class<T> klass) |
<T extends ome.model.IObject> |
onlyTypes(java.lang.Class<T>... classes) |
void |
or() |
void |
passivate() |
protected ome.model.IObject |
pop(java.util.List<ome.model.IObject> current)
Wrapper method which should be called on all results for the user.
|
void |
remove() |
void |
resetDefaults() |
<T extends ome.model.IObject> |
results() |
void |
setAllowLeadingWildcard(boolean allowLeadingWildcard) |
void |
setAnalyzer(java.lang.Class<? extends org.apache.lucene.analysis.Analyzer> analyzer)
Injector used by Spring.
|
void |
setBatchSize(int size) |
void |
setCaseSensitive(boolean caseSensitive) |
void |
setCaseSentivice(boolean caseSensitive) |
void |
setExecutor(Executor executor)
Injector used by Spring, currently, since
SelfConfigurableService.selfConfigure() requires it. |
void |
setIdOnly() |
void |
setMaxClauseCount(java.lang.Integer maxClauseCount)
Deprecated.
|
void |
setMergedBatches(boolean merge) |
void |
setReturnUnloaded(boolean returnUnloaded) |
void |
setTimeoutSetter(TimeoutSetter timeoutSetter) |
void |
setUseProjections(boolean useProjections) |
void |
unordered() |
getBeanHelper, getCurrentEventContext, isModified, modified, selfConfigure, setQueryService, setSecuritySystem, setUpdateService
public SearchBean(Executor executor, java.lang.Class<? extends org.apache.lucene.analysis.Analyzer> analyzer)
public SearchBean()
self configuration
.public java.lang.Class<? extends ome.api.ServiceInterface> getServiceInterface()
getServiceInterface
in interface ome.system.SelfConfigurableService
public void setExecutor(Executor executor)
SelfConfigurableService.selfConfigure()
requires it.public void setTimeoutSetter(TimeoutSetter timeoutSetter)
public void setAnalyzer(java.lang.Class<? extends org.apache.lucene.analysis.Analyzer> analyzer)
@Deprecated public void setMaxClauseCount(java.lang.Integer maxClauseCount)
@Transactional(readOnly=true) public void passivate()
passivate
in interface ome.api.StatefulServiceInterface
@Transactional(readOnly=true) public void activate()
activate
in interface ome.api.StatefulServiceInterface
@Transactional(readOnly=true) public void close()
close
in interface ome.api.StatefulServiceInterface
@Transactional public void byAnnotatedWith(ome.model.annotations.Annotation... examples)
byAnnotatedWith
in interface ome.api.Search
@Transactional public void byFullText(java.lang.String query)
byFullText
in interface ome.api.Search
@Transactional public void byLuceneQueryBuilder(java.lang.String fields, java.lang.String from, java.lang.String to, java.lang.String dateType, java.lang.String query)
byLuceneQueryBuilder
in interface ome.api.Search
@Transactional public void byHqlQuery(java.lang.String query, ome.parameters.Parameters p)
byHqlQuery
in interface ome.api.Search
@Transactional public void bySomeMustNone(java.lang.String[] some, java.lang.String[] must, java.lang.String[] none)
bySomeMustNone
in interface ome.api.Search
@Transactional public void bySimilarTerms(java.lang.String... terms)
bySimilarTerms
in interface ome.api.Search
@Transactional public void byGroupForTags(java.lang.String group)
byGroupForTags
in interface ome.api.Search
@Transactional public void byTagForGroups(java.lang.String tag)
byTagForGroups
in interface ome.api.Search
@Transactional public void byUUID(java.lang.String[] uuids)
@Transactional public void or()
or
in interface ome.api.Search
@Transactional public void and()
and
in interface ome.api.Search
@Transactional public void not()
not
in interface ome.api.Search
@Transactional public boolean hasNext()
hasNext
in interface java.util.Iterator<ome.model.IObject>
hasNext
in interface ome.api.Search
@Transactional public ome.model.IObject next() throws ome.conditions.ApiUsageException
next
in interface java.util.Iterator<ome.model.IObject>
next
in interface ome.api.Search
ome.conditions.ApiUsageException
@Transactional public java.util.Map<java.lang.String,ome.model.annotations.Annotation> currentMetadata()
currentMetadata
in interface ome.api.Search
@Transactional public java.util.List<java.util.Map<java.lang.String,ome.model.annotations.Annotation>> currentMetadataList()
currentMetadataList
in interface ome.api.Search
@Transactional public <T extends ome.model.IObject> java.util.List<T> results()
results
in interface ome.api.Search
protected ome.model.IObject pop(java.util.List<ome.model.IObject> current)
values
.@Transactional public void lastresultsAsWorkingGroup()
@Transactional public void remove() throws java.lang.UnsupportedOperationException
remove
in interface java.util.Iterator<ome.model.IObject>
remove
in interface ome.api.Search
java.lang.UnsupportedOperationException
@Transactional public int activeQueries()
activeQueries
in interface ome.api.Search
@Transactional public void clearQueries()
clearQueries
in interface ome.api.Search
@Transactional public void resetDefaults()
resetDefaults
in interface ome.api.Search
@Transactional public void addOrderByAsc(java.lang.String path)
addOrderByAsc
in interface ome.api.Search
@Transactional public void addOrderByDesc(java.lang.String path)
addOrderByDesc
in interface ome.api.Search
@Transactional public void unordered()
unordered
in interface ome.api.Search
@Transactional public <T extends ome.model.IObject> void fetchAlso(java.util.Map<T,java.lang.String> fetches)
@Transactional public void fetchAnnotations(java.lang.Class... classes)
fetchAnnotations
in interface ome.api.Search
@Transactional public int getBatchSize()
getBatchSize
in interface ome.api.Search
@Transactional public boolean isCaseSensitive()
isCaseSensitive
in interface ome.api.Search
@Transactional public boolean isMergedBatches()
isMergedBatches
in interface ome.api.Search
@Transactional public void onlyAnnotatedBetween(java.sql.Timestamp start, java.sql.Timestamp stop)
onlyAnnotatedBetween
in interface ome.api.Search
@Transactional public void onlyAnnotatedBy(ome.model.internal.Details d)
onlyAnnotatedBy
in interface ome.api.Search
@Transactional public void notAnnotatedBy(ome.model.internal.Details d)
notAnnotatedBy
in interface ome.api.Search
@Transactional public void onlyAnnotatedWith(java.lang.Class... classes)
onlyAnnotatedWith
in interface ome.api.Search
@Transactional public void onlyCreatedBetween(java.sql.Timestamp start, java.sql.Timestamp stop)
onlyCreatedBetween
in interface ome.api.Search
@Transactional public void onlyOwnedBy(ome.model.internal.Details d)
onlyOwnedBy
in interface ome.api.Search
@Transactional public void onlyIds(java.lang.Long... ids)
onlyIds
in interface ome.api.Search
@Transactional public void notOwnedBy(ome.model.internal.Details d)
notOwnedBy
in interface ome.api.Search
@Transactional public void allTypes()
allTypes
in interface ome.api.Search
@Transactional public <T extends ome.model.IObject> void onlyType(java.lang.Class<T> klass)
onlyType
in interface ome.api.Search
@Transactional public <T extends ome.model.IObject> void onlyTypes(java.lang.Class<T>... classes)
onlyTypes
in interface ome.api.Search
@Transactional public void setAllowLeadingWildcard(boolean allowLeadingWildcard)
setAllowLeadingWildcard
in interface ome.api.Search
@Transactional public void setBatchSize(int size)
setBatchSize
in interface ome.api.Search
@Transactional public void setIdOnly()
@Transactional public void setMergedBatches(boolean merge)
setMergedBatches
in interface ome.api.Search
@Transactional public void fetchAlso(java.lang.String... fetches)
fetchAlso
in interface ome.api.Search
@Transactional public boolean isAllowLeadingWildcard()
isAllowLeadingWildcard
in interface ome.api.Search
@Transactional public boolean isReturnUnloaded()
isReturnUnloaded
in interface ome.api.Search
@Transactional public boolean isUseProjections()
isUseProjections
in interface ome.api.Search
@Transactional public void onlyModifiedBetween(java.sql.Timestamp start, java.sql.Timestamp stop)
onlyModifiedBetween
in interface ome.api.Search
@Transactional public void setCaseSentivice(boolean caseSensitive)
setCaseSentivice
in interface ome.api.Search
@Transactional public void setCaseSensitive(boolean caseSensitive)
setCaseSensitive
in interface ome.api.Search
@Transactional public void setReturnUnloaded(boolean returnUnloaded)
setReturnUnloaded
in interface ome.api.Search
@Transactional public void setUseProjections(boolean useProjections)
setUseProjections
in interface ome.api.Search
public void addAction(SearchAction action)
public void addResult(java.util.List<ome.model.IObject> result)
public void addParameters(ome.parameters.Parameters params)