Package org.cyclos.impl.sql.postgresql
Class PostgresqlRecordSearchHandlerImpl
- java.lang.Object
-
- org.cyclos.impl.sql.postgresql.BasePostgresqlEntitySearchHandlerImpl<Record,RecordQuery,RecordVO>
-
- org.cyclos.impl.sql.postgresql.PostgresqlRecordSearchHandlerImpl
-
- All Implemented Interfaces:
EntitySearchHandler<Record,RecordQuery,RecordVO>,RecordSearchHandler,RemovableEntitySearchHandler<Record,RecordQuery,RecordVO>
public class PostgresqlRecordSearchHandlerImpl extends BasePostgresqlEntitySearchHandlerImpl<Record,RecordQuery,RecordVO> implements RecordSearchHandler
Database implementation for searching records
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.sql.postgresql.BasePostgresqlEntitySearchHandlerImpl
beanHandler, jdbcTemplate, rawEntityManagerHandler, searchHandler
-
-
Constructor Summary
Constructors Constructor Description PostgresqlRecordSearchHandlerImpl(PostgresqlSearchHandlerImpl searchHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<RecordCountResult>counts(User user)Returns the counts of records per type, for the given usercom.mysema.commons.lang.CloseableIterator<Record>iterateEntities(RecordQuery params)Iterates entities which match the given querycom.mysema.commons.lang.CloseableIterator<Long>iterateIds(RecordQuery params)Iterates ids which match the given queryvoidreindex()Reindexes all data.Page<RecordVO>search(RecordQuery 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
-
PostgresqlRecordSearchHandlerImpl
public PostgresqlRecordSearchHandlerImpl(PostgresqlSearchHandlerImpl searchHandler)
-
-
Method Detail
-
counts
public List<RecordCountResult> counts(User user)
Description copied from interface:RecordSearchHandlerReturns the counts of records per type, for the given user- Specified by:
countsin interfaceRecordSearchHandler
-
iterateEntities
public com.mysema.commons.lang.CloseableIterator<Record> iterateEntities(RecordQuery params)
Description copied from interface:EntitySearchHandlerIterates entities which match the given query- Specified by:
iterateEntitiesin interfaceEntitySearchHandler<Record,RecordQuery,RecordVO>
-
iterateIds
public com.mysema.commons.lang.CloseableIterator<Long> iterateIds(RecordQuery params)
Description copied from interface:EntitySearchHandlerIterates ids which match the given query- Specified by:
iterateIdsin interfaceEntitySearchHandler<Record,RecordQuery,RecordVO>
-
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<Record,RecordQuery,RecordVO>
-
search
public Page<RecordVO> search(RecordQuery params)
Description copied from interface:EntitySearchHandlerPerforms the search for a page of results- Specified by:
searchin interfaceEntitySearchHandler<Record,RecordQuery,RecordVO>
-
-