Package org.cyclos.impl.search
Interface EntitySearchHandler<E extends NetworkedEntity,Q extends QueryParameters,R>
-
- Type Parameters:
E- The entity typeQ- The query parameters typeR- The result type on search, generally a VO
- All Known Subinterfaces:
AdSearchHandler,ContactSearchHandler,InstallmentSearchHandler,RecordSearchHandler,TransactionSearchHandler,TransferSearchHandler,UserSearchHandler
public interface EntitySearchHandler<E extends NetworkedEntity,Q extends QueryParameters,R>Interface for searching over a specific entity
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description DataIterator<E>exportEntities(Q query)Iterates entities which match the given query, applying the maximum resultsvoidindex(E entity)Indexes the given entityStringindexName()Returns the name of the external index, or null if external indexing isn't usedcom.mysema.commons.lang.CloseableIterator<E>iterateEntities(Q query)Deprecated.Will be removed in 4.17.com.mysema.commons.lang.CloseableIterator<Long>iterateIds(Q query)Deprecated.Will be removed in 4.17.longreindex()Reindexes all data.voidremove(Long id)Removes an entity by idPage<R>search(Q query)Performs the search for a page of resultsPage<E>searchEntities(Q query)Performs the search for a page of entities
-
-
-
Method Detail
-
exportEntities
DataIterator<E> exportEntities(Q query)
Iterates entities which match the given query, applying the maximum results
-
index
void index(E entity)
Indexes the given entity
-
indexName
String indexName()
Returns the name of the external index, or null if external indexing isn't used
-
iterateEntities
@Deprecated com.mysema.commons.lang.CloseableIterator<E> iterateEntities(Q query)
Deprecated.Will be removed in 4.17. UseexportEntities(QueryParameters)instead;Iterates entities which match the given query
-
iterateIds
@Deprecated com.mysema.commons.lang.CloseableIterator<Long> iterateIds(Q query)
Deprecated.Will be removed in 4.17.Iterates ids which match the given query
-
reindex
long reindex()
Reindexes all data. This is only called by scripts, in case the admin needs to reindex the data.
-
remove
void remove(Long id)
Removes an entity by id
-
-