Package org.cyclos.impl.search
Class DbSearchHandlerImpl
- java.lang.Object
-
- org.cyclos.impl.search.DbSearchHandlerImpl
-
- All Implemented Interfaces:
ApplicationInitializationListener,BaseApplicationInitializationListener,CustomBean,SearchHandler
public class DbSearchHandlerImpl extends Object implements SearchHandler
A search handler that delegates all searches to the native query handler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.cyclos.impl.search.SearchHandler
SearchHandler.PerformIndexResult
-
-
Field Summary
-
Fields inherited from interface org.cyclos.impl.BaseApplicationInitializationListener
MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY
-
Fields inherited from interface org.cyclos.impl.search.SearchHandler
INDEX_BATCH_SIZE
-
-
Constructor Summary
Constructors Constructor Description DbSearchHandlerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdSearchHandlerad()Returns the handler for searching advertisementsContactSearchHandlercontact()Returns the handler for searching contactsInstallmentSearchHandlerinstallment()Returns the handler for searching installmentsbooleanisPhraseSearchSupported()Returns whether phrase searches are supported within full-text queriesbooleanisTranslationSupported()Returns whether translated values are supportedvoidonApplicationInitialization()Invoked when the application service is initializedSearchHandler.PerformIndexResultperformIndex(String index, List<Long> ids)Updates the given index for the entity with the given identifiers.RecordSearchHandlerrecord()Returns the handler for searching recordsvoidreindex()Reindexes all data.<S extends SearchHandler>
Sself()Returns the own implementationTransactionSearchHandlertransaction()Returns the handler for searching transactionsTransferSearchHandlertransfer()Returns the handler for searching transfersUserSearchHandleruser()Returns the handler for searching users-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cyclos.impl.BaseApplicationInitializationListener
applicationInitializationPriority, getInitializationId
-
-
-
-
Method Detail
-
ad
public AdSearchHandler ad()
Description copied from interface:SearchHandlerReturns the handler for searching advertisements- Specified by:
adin interfaceSearchHandler
-
contact
public ContactSearchHandler contact()
Description copied from interface:SearchHandlerReturns the handler for searching contacts- Specified by:
contactin interfaceSearchHandler
-
installment
public InstallmentSearchHandler installment()
Description copied from interface:SearchHandlerReturns the handler for searching installments- Specified by:
installmentin interfaceSearchHandler
-
isPhraseSearchSupported
public boolean isPhraseSearchSupported()
Description copied from interface:SearchHandlerReturns whether phrase searches are supported within full-text queries- Specified by:
isPhraseSearchSupportedin interfaceSearchHandler
-
isTranslationSupported
public boolean isTranslationSupported()
Description copied from interface:SearchHandlerReturns whether translated values are supported- Specified by:
isTranslationSupportedin interfaceSearchHandler
-
onApplicationInitialization
public void onApplicationInitialization()
Description copied from interface:ApplicationInitializationListenerInvoked when the application service is initialized- Specified by:
onApplicationInitializationin interfaceApplicationInitializationListener
-
performIndex
public SearchHandler.PerformIndexResult performIndex(String index, List<Long> ids)
Description copied from interface:SearchHandlerUpdates the given index for the entity with the given identifiers.- Specified by:
performIndexin interfaceSearchHandler- Returns:
- Either null, indicating a no-op, or a result with the affected rows and failures.
-
record
public RecordSearchHandler record()
Description copied from interface:SearchHandlerReturns the handler for searching records- Specified by:
recordin interfaceSearchHandler
-
reindex
public void reindex()
Description copied from interface:SearchHandlerReindexes all data. This is only called by scripts, in case the admin needs to reindex the data- Specified by:
reindexin interfaceSearchHandler
-
self
public <S extends SearchHandler> S self()
Description copied from interface:SearchHandlerReturns the own implementation- Specified by:
selfin interfaceSearchHandler
-
transaction
public TransactionSearchHandler transaction()
Description copied from interface:SearchHandlerReturns the handler for searching transactions- Specified by:
transactionin interfaceSearchHandler
-
transfer
public TransferSearchHandler transfer()
Description copied from interface:SearchHandlerReturns the handler for searching transfers- Specified by:
transferin interfaceSearchHandler
-
user
public UserSearchHandler user()
Description copied from interface:SearchHandlerReturns the handler for searching users- Specified by:
userin interfaceSearchHandler
-
-