Package org.cyclos.impl.sql.postgresql
Class PostgresqlTransferSearchHandlerImpl
- java.lang.Object
-
- org.cyclos.impl.sql.postgresql.BasePostgresqlEntitySearchHandlerImpl<Transfer,AccountHistoriesOverviewQuery,AccountHistoryOverviewEntryVO>
-
- org.cyclos.impl.sql.postgresql.PostgresqlTransferSearchHandlerImpl
-
- All Implemented Interfaces:
EntitySearchHandler<Transfer,AccountHistoriesOverviewQuery,AccountHistoryOverviewEntryVO>,RemovableEntitySearchHandler<Transfer,AccountHistoriesOverviewQuery,AccountHistoryOverviewEntryVO>,TransferSearchHandler
public class PostgresqlTransferSearchHandlerImpl extends BasePostgresqlEntitySearchHandlerImpl<Transfer,AccountHistoriesOverviewQuery,AccountHistoryOverviewEntryVO> implements TransferSearchHandler
Database implementation for searching transfers
-
-
Field Summary
Fields Modifier and Type Field Description protected DataTranslationHandlerdataTranslationHandler-
Fields inherited from class org.cyclos.impl.sql.postgresql.BasePostgresqlEntitySearchHandlerImpl
beanHandler, conversionHandler, jdbcTemplate, rawEntityManagerHandler, searchHandler
-
-
Constructor Summary
Constructors Constructor Description PostgresqlTransferSearchHandlerImpl(PostgresqlSearchHandlerImpl searchHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountHistoriesOverviewStatusVOgetStatus(AccountHistoriesOverviewQuery params)Calculates the overview status for a general transfers searchcom.mysema.commons.lang.CloseableIterator<Transfer>iterateEntities(AccountHistoriesOverviewQuery params)Iterates entities which match the given querycom.mysema.commons.lang.CloseableIterator<Long>iterateIds(AccountHistoriesOverviewQuery params)Iterates ids which match the given queryvoidreindex()Reindexes all data.Page<AccountHistoryOverviewEntryVO>search(AccountHistoriesOverviewQuery params)Performs the search for a page of resultsPage<AccountHistoryEntryVO>searchAccountHistory(AccountHistoryQuery params)Searches for a specific account history-
Methods inherited from class org.cyclos.impl.sql.postgresql.BasePostgresqlEntitySearchHandlerImpl
index, indexName, reindexCustomValues, remove
-
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.search.EntitySearchHandler
index, indexName
-
-
-
-
Field Detail
-
dataTranslationHandler
@Autowired @Lazy protected DataTranslationHandler dataTranslationHandler
-
-
Constructor Detail
-
PostgresqlTransferSearchHandlerImpl
public PostgresqlTransferSearchHandlerImpl(PostgresqlSearchHandlerImpl searchHandler)
-
-
Method Detail
-
getStatus
public AccountHistoriesOverviewStatusVO getStatus(AccountHistoriesOverviewQuery params)
Description copied from interface:TransferSearchHandlerCalculates the overview status for a general transfers search- Specified by:
getStatusin interfaceTransferSearchHandler
-
iterateEntities
public com.mysema.commons.lang.CloseableIterator<Transfer> iterateEntities(AccountHistoriesOverviewQuery params)
Description copied from interface:EntitySearchHandlerIterates entities which match the given query- Specified by:
iterateEntitiesin interfaceEntitySearchHandler<Transfer,AccountHistoriesOverviewQuery,AccountHistoryOverviewEntryVO>
-
iterateIds
public com.mysema.commons.lang.CloseableIterator<Long> iterateIds(AccountHistoriesOverviewQuery params)
Description copied from interface:EntitySearchHandlerIterates ids which match the given query- Specified by:
iterateIdsin interfaceEntitySearchHandler<Transfer,AccountHistoriesOverviewQuery,AccountHistoryOverviewEntryVO>
-
reindex
public void reindex()
Description copied from interface:EntitySearchHandlerReindexes all data. This is only called by scripts, in case the admin needs to reindex the data.- Specified by:
reindexin interfaceEntitySearchHandler<Transfer,AccountHistoriesOverviewQuery,AccountHistoryOverviewEntryVO>
-
search
public Page<AccountHistoryOverviewEntryVO> search(AccountHistoriesOverviewQuery params)
Description copied from interface:EntitySearchHandlerPerforms the search for a page of results- Specified by:
searchin interfaceEntitySearchHandler<Transfer,AccountHistoriesOverviewQuery,AccountHistoryOverviewEntryVO>
-
searchAccountHistory
public Page<AccountHistoryEntryVO> searchAccountHistory(AccountHistoryQuery params)
Description copied from interface:TransferSearchHandlerSearches for a specific account history- Specified by:
searchAccountHistoryin interfaceTransferSearchHandler
-
-