public class DelegatingFullTextSession
extends org.hibernate.engine.spi.SessionDelegatorBaseImpl
implements org.hibernate.search.FullTextSession
FullTextSession
interface that acts a wrapper around a
target FullTextSession instance, it actually delegates all the method calls directly to the
target except for the FullTextSession.createFullTextQuery(Query, Class[])
method where it
first notifies registered listeners of the creation event before returning the newly created
FullTextQuery
object. The newly created query object and entity type are passed to the
listeners wrapped in a FullTextQueryAndEntityClass
object. org.hibernate.Session.LockRequest
Constructor and Description |
---|
DelegatingFullTextSession(org.hibernate.search.FullTextSession delegate,
org.springframework.context.ApplicationEventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
org.hibernate.search.FullTextQuery |
createFullTextQuery(org.apache.lucene.search.Query luceneQuery,
Class<?>... entities) |
org.hibernate.search.FullTextQuery |
createFullTextQuery(org.hibernate.search.query.engine.spi.QueryDescriptor descriptor,
Class<?>... entities) |
org.hibernate.search.MassIndexer |
createIndexer(Class<?>... types) |
void |
flushToIndexes() |
org.hibernate.search.SearchFactory |
getSearchFactory() |
<T> void |
index(T entity) |
<T> void |
purge(Class<T> entityType,
Serializable id) |
<T> void |
purgeAll(Class<T> entityType) |
org.hibernate.search.FullTextSharedSessionBuilder |
sessionWithOptions() |
accessTransaction, addEventListeners, afterScrollOperation, afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, beginTransaction, bestGuessEntityName, buildLockOptions, buildLockRequest, byId, byId, byMultipleIds, byMultipleIds, byNaturalId, byNaturalId, bySimpleNaturalId, bySimpleNaturalId, cancelQuery, checkOpen, checkOpen, checkTransactionNeededForUpdateOperation, clear, close, connection, contains, contains, createCriteria, createCriteria, createCriteria, createCriteria, createEntityGraph, createEntityGraph, createFilter, createNamedQuery, createNamedQuery, createNamedStoredProcedureQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, createQuery, createQuery, createQuery, createQuery, createQuery, createSQLQuery, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureQuery, createStoredProcedureQuery, createStoredProcedureQuery, delegate, delete, delete, delete, detach, disableFetchProfile, disableFilter, disconnect, doReturningWork, doWork, enableFetchProfile, enableFilter, evict, execute, executeNativeUpdate, executeUpdate, find, find, find, find, flush, flushBeforeTransactionCompletion, forceFlush, generateEntityKey, get, get, get, get, get, get, getActionQueue, getCacheMode, getCacheTransactionSynchronization, getContextEntityIdentifier, getCriteriaBuilder, getCurrentLockMode, getDelegate, getDontFlushFromFind, getEnabledFilter, getEntityGraph, getEntityGraphs, getEntityManagerFactory, getEntityName, getEntityPersister, getEntityUsingInterceptor, getEventListenerManager, getExceptionConverter, getFactory, getFlushMode, getHibernateFlushMode, getIdentifier, getInterceptor, getJdbcBatchSize, getJdbcConnectionAccess, getJdbcCoordinator, getJdbcServices, getJdbcSessionContext, getJdbcTimeZone, getLoadQueryInfluencers, getLobCreator, getLobHelper, getLockMode, getLockRequest, getMetamodel, getNamedNativeQuery, getNamedProcedureCall, getNamedQuery, getNamedSQLQuery, getPersistenceContext, getPersistenceContextInternal, getProperties, getReference, getReference, getSession, getSessionFactory, getSessionIdentifier, getStatistics, getTenantIdentifier, getTimestamp, getTransaction, getTransactionCoordinator, getTransactionStartTimestamp, getTypeHelper, guessEntityName, immediateLoad, initializeCollection, instantiate, instantiate, internalLoad, isAutoCloseSessionEnabled, isClosed, isConnected, isDefaultReadOnly, isDirty, isEventSource, isFetchProfileEnabled, isFlushBeforeCompletionEnabled, isJoinedToTransaction, isOpen, isOpenOrWaitingForAutoClose, isQueryParametersValidationEnabled, isReadOnly, isTransactionInProgress, iterate, iterateFilter, joinTransaction, list, list, list, listCustomQuery, listFilter, load, load, load, load, load, load, load, lock, lock, lock, lock, markForRollbackOnly, merge, merge, merge, persist, persist, persist, persistOnFlush, reconnect, refresh, refresh, refresh, refresh, refresh, refresh, refresh, refresh, refresh, remapSqlTypeDescriptor, remove, removeOrphanBeforeUpdates, replicate, replicate, save, save, saveOrUpdate, saveOrUpdate, scroll, scroll, scroll, scrollCustomQuery, setAutoClear, setCacheMode, setDefaultReadOnly, setFlushMode, setFlushMode, setHibernateFlushMode, setJdbcBatchSize, setProperty, setReadOnly, shouldAutoClose, shouldAutoJoinTransaction, startTransactionBoundary, unwrap, update, update, useStreamForLobBinding
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addEventListeners, buildLockRequest, byId, byId, byMultipleIds, byMultipleIds, byNaturalId, byNaturalId, bySimpleNaturalId, bySimpleNaturalId, cancelQuery, clear, contains, createEntityGraph, createEntityGraph, createFilter, createNamedQuery, createQuery, createQuery, createQuery, createQuery, createSQLQuery, delete, delete, disableFetchProfile, disableFilter, disconnect, enableFetchProfile, enableFilter, evict, flush, get, get, get, get, get, get, getCacheMode, getCurrentLockMode, getEnabledFilter, getEntityGraph, getEntityGraphs, getEntityName, getFlushMode, getHibernateFlushMode, getIdentifier, getLobHelper, getReference, getSessionFactory, getStatistics, getTypeHelper, isDefaultReadOnly, isDirty, isFetchProfileEnabled, isReadOnly, load, load, load, load, load, load, load, lock, lock, merge, merge, persist, persist, reconnect, refresh, refresh, refresh, refresh, refresh, replicate, replicate, save, save, saveOrUpdate, saveOrUpdate, setCacheMode, setDefaultReadOnly, setFlushMode, setHibernateFlushMode, setReadOnly, update, update
beginTransaction, close, createCriteria, createCriteria, createCriteria, createCriteria, createQuery, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureCall, doReturningWork, doWork, getJdbcBatchSize, getNamedProcedureCall, getNamedQuery, getTenantIdentifier, getTransaction, isConnected, isOpen, setJdbcBatchSize
close, contains, createNamedQuery, createNamedStoredProcedureQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, createStoredProcedureQuery, createStoredProcedureQuery, createStoredProcedureQuery, detach, find, find, find, find, getCriteriaBuilder, getDelegate, getEntityManagerFactory, getLockMode, getMetamodel, getProperties, getReference, getTransaction, isJoinedToTransaction, isOpen, joinTransaction, lock, lock, refresh, refresh, refresh, remove, setFlushMode, setProperty, unwrap
public DelegatingFullTextSession(org.hibernate.search.FullTextSession delegate, org.springframework.context.ApplicationEventPublisher eventPublisher)
public org.hibernate.search.FullTextQuery createFullTextQuery(org.apache.lucene.search.Query luceneQuery, Class<?>... entities)
createFullTextQuery
in interface org.hibernate.search.FullTextSession
createFullTextQuery
in interface org.hibernate.search.jpa.FullTextEntityManager
FullTextSession.createFullTextQuery(Query, Class[])
public org.hibernate.search.FullTextQuery createFullTextQuery(org.hibernate.search.query.engine.spi.QueryDescriptor descriptor, Class<?>... entities)
createFullTextQuery
in interface org.hibernate.search.FullTextSession
createFullTextQuery
in interface org.hibernate.search.jpa.FullTextEntityManager
public <T> void index(T entity)
index
in interface org.hibernate.search.jpa.FullTextEntityManager
FullTextEntityManager.index(Object)
public org.hibernate.search.SearchFactory getSearchFactory()
getSearchFactory
in interface org.hibernate.search.jpa.FullTextEntityManager
FullTextEntityManager.getSearchFactory()
public <T> void purge(Class<T> entityType, Serializable id)
purge
in interface org.hibernate.search.jpa.FullTextEntityManager
FullTextEntityManager.purge(Class, Serializable)
public <T> void purgeAll(Class<T> entityType)
purgeAll
in interface org.hibernate.search.jpa.FullTextEntityManager
FullTextEntityManager.purgeAll(Class)
public void flushToIndexes()
flushToIndexes
in interface org.hibernate.search.jpa.FullTextEntityManager
FullTextEntityManager.flushToIndexes()
public org.hibernate.search.MassIndexer createIndexer(Class<?>... types)
createIndexer
in interface org.hibernate.search.jpa.FullTextEntityManager
FullTextEntityManager.createIndexer(Class[])
public org.hibernate.search.FullTextSharedSessionBuilder sessionWithOptions()
sessionWithOptions
in interface org.hibernate.search.FullTextSession
sessionWithOptions
in interface org.hibernate.Session
sessionWithOptions
in class org.hibernate.engine.spi.SessionDelegatorBaseImpl
FullTextSession.sessionWithOptions()
Copyright © 2024 OpenMRS Inc.. All rights reserved.