Package org.cyclos.impl.sql.postgresql
Class PostgresqlAdSearchHandlerImpl
- java.lang.Object
-
- org.cyclos.impl.sql.postgresql.BasePostgresqlEntitySearchHandlerImpl<BasicAd,BasicAdQuery,BasicAdVO>
-
- org.cyclos.impl.sql.postgresql.PostgresqlAdSearchHandlerImpl
-
- All Implemented Interfaces:
AdSearchHandler,EntitySearchHandler<BasicAd,BasicAdQuery,BasicAdVO>,RemovableEntitySearchHandler<BasicAd,BasicAdQuery,BasicAdVO>
public class PostgresqlAdSearchHandlerImpl extends BasePostgresqlEntitySearchHandlerImpl<BasicAd,BasicAdQuery,BasicAdVO> implements AdSearchHandler
Database implementation for searching advertisements
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.sql.postgresql.BasePostgresqlEntitySearchHandlerImpl
beanHandler, conversionHandler, jdbcTemplate, rawEntityManagerHandler, searchHandler
-
-
Constructor Summary
Constructors Constructor Description PostgresqlAdSearchHandlerImpl(PostgresqlSearchHandlerImpl searchHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.mysema.commons.lang.CloseableIterator<BasicAd>iterateEntities(BasicAdQuery params)Iterates entities which match the given querycom.mysema.commons.lang.CloseableIterator<Long>iterateIds(BasicAdQuery params)Iterates ids which match the given queryvoidreindex()Reindexes all data.Page<BasicAdVO>search(BasicAdQuery params)Performs the search for a page of results-
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
-
Methods inherited from interface org.cyclos.impl.search.RemovableEntitySearchHandler
remove
-
-
-
-
Constructor Detail
-
PostgresqlAdSearchHandlerImpl
public PostgresqlAdSearchHandlerImpl(PostgresqlSearchHandlerImpl searchHandler)
-
-
Method Detail
-
iterateEntities
public com.mysema.commons.lang.CloseableIterator<BasicAd> iterateEntities(BasicAdQuery params)
Description copied from interface:EntitySearchHandlerIterates entities which match the given query- Specified by:
iterateEntitiesin interfaceEntitySearchHandler<BasicAd,BasicAdQuery,BasicAdVO>
-
iterateIds
public com.mysema.commons.lang.CloseableIterator<Long> iterateIds(BasicAdQuery params)
Description copied from interface:EntitySearchHandlerIterates ids which match the given query- Specified by:
iterateIdsin interfaceEntitySearchHandler<BasicAd,BasicAdQuery,BasicAdVO>
-
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<BasicAd,BasicAdQuery,BasicAdVO>
-
search
public Page<BasicAdVO> search(BasicAdQuery params)
Description copied from interface:EntitySearchHandlerPerforms the search for a page of results- Specified by:
searchin interfaceEntitySearchHandler<BasicAd,BasicAdQuery,BasicAdVO>
-
-