Package org.cyclos.impl.sql.postgresql
Class PostgresqlSearchHandlerImpl
- java.lang.Object
-
- org.cyclos.impl.sql.postgresql.PostgresqlSearchHandlerImpl
-
- All Implemented Interfaces:
ApplicationInitializationListener,BaseApplicationInitializationListener,CustomBean,SearchHandler
public class PostgresqlSearchHandlerImpl extends Object implements SearchHandler
Database implementation for SearchHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.cyclos.impl.search.SearchHandler
SearchHandler.PerformIndexResult
-
-
Field Summary
Fields Modifier and Type Field Description protected BeanHandlerbeanHandlerprotected JdbcTemplatejdbcTemplateprotected PostgresqlQueryHandlerImplqueryHandlerprotected RawEntityManagerHandlerrawEntityManagerHandlerstatic StringREGCONFIG-
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 PostgresqlSearchHandlerImpl(PostgresqlQueryHandlerImpl queryHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PostgresqlAdSearchHandlerImplad()Returns the handler for searching advertisementsPostgresqlContactSearchHandlerImplcontact()Returns the handler for searching contactscom.querydsl.sql.SQLQuery<?>from(Connection connection, com.querydsl.sql.RelationalPathBase<?>... from)voidinitialize()PostgresqlInstallmentSearchHandlerImplinstallment()Returns the handler for searching installmentsbooleanisPhraseSearchSupported()Returns whether phrase searches are supportedbooleanisTranslationSupported()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.com.querydsl.sql.SQLQuery<?>query(Connection connection)PostgresqlRecordSearchHandlerImplrecord()Returns the handler for searching recordsvoidreindex()Reindexes all data.<S extends SearchHandler>
Sself()Returns the own implementationPostgresqlTransactionSearchHandlerImpltransaction()Returns the handler for searching transactionsPostgresqlTransferSearchHandlerImpltransfer()Returns the handler for searching transfersPostgresqlUserSearchHandlerImpluser()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
-
-
-
-
Field Detail
-
REGCONFIG
public static final String REGCONFIG
- See Also:
- Constant Field Values
-
beanHandler
@Autowired @Lazy protected BeanHandler beanHandler
-
rawEntityManagerHandler
@Autowired @Lazy protected RawEntityManagerHandler rawEntityManagerHandler
-
jdbcTemplate
@Autowired @Lazy protected JdbcTemplate jdbcTemplate
-
queryHandler
protected final PostgresqlQueryHandlerImpl queryHandler
-
-
Constructor Detail
-
PostgresqlSearchHandlerImpl
public PostgresqlSearchHandlerImpl(PostgresqlQueryHandlerImpl queryHandler)
-
-
Method Detail
-
ad
public PostgresqlAdSearchHandlerImpl ad()
Description copied from interface:SearchHandlerReturns the handler for searching advertisements- Specified by:
adin interfaceSearchHandler
-
contact
public PostgresqlContactSearchHandlerImpl contact()
Description copied from interface:SearchHandlerReturns the handler for searching contacts- Specified by:
contactin interfaceSearchHandler
-
from
public com.querydsl.sql.SQLQuery<?> from(Connection connection, com.querydsl.sql.RelationalPathBase<?>... from)
-
initialize
@PostConstruct public void initialize()
-
installment
public PostgresqlInstallmentSearchHandlerImpl installment()
Description copied from interface:SearchHandlerReturns the handler for searching installments- Specified by:
installmentin interfaceSearchHandler
-
isPhraseSearchSupported
public boolean isPhraseSearchSupported()
Returns whether phrase searches are supported- 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.
-
query
public com.querydsl.sql.SQLQuery<?> query(Connection connection)
-
record
public PostgresqlRecordSearchHandlerImpl 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 PostgresqlTransactionSearchHandlerImpl transaction()
Description copied from interface:SearchHandlerReturns the handler for searching transactions- Specified by:
transactionin interfaceSearchHandler
-
transfer
public PostgresqlTransferSearchHandlerImpl transfer()
Description copied from interface:SearchHandlerReturns the handler for searching transfers- Specified by:
transferin interfaceSearchHandler
-
user
public PostgresqlUserSearchHandlerImpl user()
Description copied from interface:SearchHandlerReturns the handler for searching users- Specified by:
userin interfaceSearchHandler
-
-