|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.search.impl.FullTextSessionImpl
public class FullTextSessionImpl
Lucene full text search aware session.
| Constructor Summary | |
|---|---|
FullTextSessionImpl(org.hibernate.Session session)
|
|
| Method Summary | ||
|---|---|---|
void |
afterScrollOperation()
|
|
void |
afterTransactionCompletion(boolean successful,
org.hibernate.Transaction tx)
|
|
void |
beforeTransactionCompletion(org.hibernate.Transaction tx)
|
|
org.hibernate.Transaction |
beginTransaction()
|
|
String |
bestGuessEntityName(Object object)
|
|
void |
cancelQuery()
|
|
void |
clear()
|
|
Connection |
close()
|
|
Connection |
connection()
|
|
boolean |
contains(Object object)
|
|
org.hibernate.Criteria |
createCriteria(Class persistentClass)
|
|
org.hibernate.Criteria |
createCriteria(Class persistentClass,
String alias)
|
|
org.hibernate.Criteria |
createCriteria(String entityName)
|
|
org.hibernate.Criteria |
createCriteria(String entityName,
String alias)
|
|
org.hibernate.Query |
createFilter(Object collection,
String queryString)
|
|
FullTextQuery |
createFullTextQuery(Query luceneQuery,
Class... entities)
Execute a Lucene query and retrieve managed objects of type entities (or their indexed subclasses) If entities is empty, include all indexed entities |
|
org.hibernate.Query |
createQuery(String queryString)
|
|
org.hibernate.SQLQuery |
createSQLQuery(String queryString)
|
|
org.hibernate.Query |
createSQLQuery(String sql,
String[] returnAliases,
Class[] returnClasses)
|
|
org.hibernate.Query |
createSQLQuery(String sql,
String returnAlias,
Class returnClass)
|
|
void |
delete(Object object)
|
|
int |
delete(String query)
|
|
void |
delete(String entityName,
Object object)
|
|
int |
delete(String query,
Object[] values,
org.hibernate.type.Type[] types)
|
|
int |
delete(String query,
Object value,
org.hibernate.type.Type type)
|
|
void |
disableFilter(String filterName)
|
|
Connection |
disconnect()
|
|
void |
doWork(org.hibernate.jdbc.Work work)
|
|
org.hibernate.Filter |
enableFilter(String filterName)
|
|
void |
evict(Object object)
|
|
int |
executeNativeUpdate(org.hibernate.engine.query.sql.NativeSQLQuerySpecification specification,
org.hibernate.engine.QueryParameters queryParameters)
|
|
int |
executeUpdate(String query,
org.hibernate.engine.QueryParameters queryParameters)
|
|
Collection |
filter(Object collection,
String filter)
|
|
Collection |
filter(Object collection,
String filter,
Object[] values,
org.hibernate.type.Type[] types)
|
|
Collection |
filter(Object collection,
String filter,
Object value,
org.hibernate.type.Type type)
|
|
List |
find(String query)
|
|
List |
find(String query,
Object[] values,
org.hibernate.type.Type[] types)
|
|
List |
find(String query,
Object value,
org.hibernate.type.Type type)
|
|
void |
flush()
|
|
void |
flushToIndexes()
Flush all index changes forcing Hibernate Search to apply all changes to the index not waiting for the batch limit. |
|
Object |
get(Class clazz,
Serializable id)
|
|
Object |
get(Class clazz,
Serializable id,
org.hibernate.LockMode lockMode)
|
|
Object |
get(String entityName,
Serializable id)
|
|
Object |
get(String entityName,
Serializable id,
org.hibernate.LockMode lockMode)
|
|
org.hibernate.jdbc.Batcher |
getBatcher()
|
|
org.hibernate.CacheMode |
getCacheMode()
|
|
Serializable |
getContextEntityIdentifier(Object object)
|
|
org.hibernate.LockMode |
getCurrentLockMode(Object object)
|
|
int |
getDontFlushFromFind()
|
|
org.hibernate.Filter |
getEnabledFilter(String filterName)
|
|
Map |
getEnabledFilters()
|
|
org.hibernate.EntityMode |
getEntityMode()
|
|
String |
getEntityName(Object object)
|
|
org.hibernate.persister.entity.EntityPersister |
getEntityPersister(String entityName,
Object object)
|
|
Object |
getEntityUsingInterceptor(org.hibernate.engine.EntityKey key)
|
|
org.hibernate.engine.SessionFactoryImplementor |
getFactory()
|
|
String |
getFetchProfile()
|
|
org.hibernate.type.Type |
getFilterParameterType(String filterParameterName)
|
|
Object |
getFilterParameterValue(String filterParameterName)
|
|
org.hibernate.FlushMode |
getFlushMode()
|
|
Serializable |
getIdentifier(Object object)
|
|
org.hibernate.Interceptor |
getInterceptor()
|
|
org.hibernate.jdbc.JDBCContext |
getJDBCContext()
|
|
org.hibernate.event.EventListeners |
getListeners()
|
|
org.hibernate.Query |
getNamedQuery(String queryName)
|
|
org.hibernate.Query |
getNamedSQLQuery(String name)
|
|
org.hibernate.engine.PersistenceContext |
getPersistenceContext()
|
|
SearchFactory |
getSearchFactory()
|
|
org.hibernate.Session |
getSession(org.hibernate.EntityMode entityMode)
|
|
org.hibernate.SessionFactory |
getSessionFactory()
|
|
org.hibernate.stat.SessionStatistics |
getStatistics()
|
|
long |
getTimestamp()
|
|
org.hibernate.Transaction |
getTransaction()
|
|
String |
guessEntityName(Object entity)
|
|
Object |
immediateLoad(String entityName,
Serializable id)
|
|
|
index(T entity)
(Re-)index an entity. |
|
void |
initializeCollection(org.hibernate.collection.PersistentCollection collection,
boolean writing)
|
|
Object |
instantiate(String entityName,
Serializable id)
|
|
Object |
internalLoad(String entityName,
Serializable id,
boolean eager,
boolean nullable)
|
|
boolean |
isClosed()
|
|
boolean |
isConnected()
|
|
boolean |
isDirty()
|
|
boolean |
isEventSource()
|
|
boolean |
isOpen()
|
|
boolean |
isTransactionInProgress()
|
|
Iterator |
iterate(String query)
|
|
Iterator |
iterate(String query,
Object[] values,
org.hibernate.type.Type[] types)
|
|
Iterator |
iterate(String query,
Object value,
org.hibernate.type.Type type)
|
|
Iterator |
iterate(String query,
org.hibernate.engine.QueryParameters queryParameters)
|
|
Iterator |
iterateFilter(Object collection,
String filter,
org.hibernate.engine.QueryParameters queryParameters)
|
|
List |
list(org.hibernate.impl.CriteriaImpl criteria)
|
|
List |
list(org.hibernate.engine.query.sql.NativeSQLQuerySpecification spec,
org.hibernate.engine.QueryParameters queryParameters)
|
|
List |
list(String query,
org.hibernate.engine.QueryParameters queryParameters)
|
|
List |
listCustomQuery(org.hibernate.loader.custom.CustomQuery customQuery,
org.hibernate.engine.QueryParameters queryParameters)
|
|
List |
listFilter(Object collection,
String filter,
org.hibernate.engine.QueryParameters queryParameters)
|
|
Object |
load(Class theClass,
Serializable id)
|
|
Object |
load(Class theClass,
Serializable id,
org.hibernate.LockMode lockMode)
|
|
void |
load(Object object,
Serializable id)
|
|
Object |
load(String entityName,
Serializable id)
|
|
Object |
load(String entityName,
Serializable id,
org.hibernate.LockMode lockMode)
|
|
void |
lock(Object object,
org.hibernate.LockMode lockMode)
|
|
void |
lock(String entityName,
Object object,
org.hibernate.LockMode lockMode)
|
|
Object |
merge(Object object)
|
|
Object |
merge(String entityName,
Object object)
|
|
void |
persist(Object object)
|
|
void |
persist(String entityName,
Object object)
|
|
|
purge(Class<T> entityType,
Serializable id)
Remove the entity with the type entityType and the identifier id from the index. |
|
|
purgeAll(Class<T> entityType)
Remove all entities from of particular class and all its subclasses from the index. |
|
void |
reconnect()
|
|
void |
reconnect(Connection connection)
|
|
void |
refresh(Object object)
|
|
void |
refresh(Object object,
org.hibernate.LockMode lockMode)
|
|
void |
replicate(Object object,
org.hibernate.ReplicationMode replicationMode)
|
|
void |
replicate(String entityName,
Object object,
org.hibernate.ReplicationMode replicationMode)
|
|
Serializable |
save(Object object)
|
|
void |
save(Object object,
Serializable id)
|
|
Serializable |
save(String entityName,
Object object)
|
|
void |
save(String entityName,
Object object,
Serializable id)
|
|
void |
saveOrUpdate(Object object)
|
|
void |
saveOrUpdate(String entityName,
Object object)
|
|
Object |
saveOrUpdateCopy(Object object)
|
|
Object |
saveOrUpdateCopy(Object object,
Serializable id)
|
|
Object |
saveOrUpdateCopy(String entityName,
Object object)
|
|
Object |
saveOrUpdateCopy(String entityName,
Object object,
Serializable id)
|
|
org.hibernate.ScrollableResults |
scroll(org.hibernate.impl.CriteriaImpl criteria,
org.hibernate.ScrollMode scrollMode)
|
|
org.hibernate.ScrollableResults |
scroll(org.hibernate.engine.query.sql.NativeSQLQuerySpecification spec,
org.hibernate.engine.QueryParameters queryParameters)
|
|
org.hibernate.ScrollableResults |
scroll(String query,
org.hibernate.engine.QueryParameters queryParameters)
|
|
org.hibernate.ScrollableResults |
scrollCustomQuery(org.hibernate.loader.custom.CustomQuery customQuery,
org.hibernate.engine.QueryParameters queryParameters)
|
|
void |
setAutoClear(boolean enabled)
|
|
void |
setCacheMode(org.hibernate.CacheMode cacheMode)
|
|
void |
setFetchProfile(String name)
|
|
void |
setFlushMode(org.hibernate.FlushMode flushMode)
|
|
void |
setReadOnly(Object entity,
boolean readOnly)
|
|
void |
update(Object object)
|
|
void |
update(Object object,
Serializable id)
|
|
void |
update(String entityName,
Object object)
|
|
void |
update(String entityName,
Object object,
Serializable id)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FullTextSessionImpl(org.hibernate.Session session)
| Method Detail |
|---|
public FullTextQuery createFullTextQuery(Query luceneQuery,
Class... entities)
createFullTextQuery in interface FullTextSessionentities - must be immutable for the lifetime of the query objectluceneQuery - The native Lucene query to be rn against the Lucene index.
FullTextQuery wrapping around the native Lucene wuery.public <T> void purgeAll(Class<T> entityType)
purgeAll in interface FullTextSessionentityType - The class of the entities to remove.public void flushToIndexes()
FullTextSession
flushToIndexes in interface FullTextSession
public <T> void purge(Class<T> entityType,
Serializable id)
entityType and the identifier id from the index.
If id == null all indexed entities of this type and its indexed subclasses are deleted. In this
case this method behaves like FullTextSession.purgeAll(Class).
purge in interface FullTextSessionentityType - The type of the entity to delete.id - The id of the entity to delete.public <T> void index(T entity)
index in interface FullTextSessionentity - The entity to index - must not be null.
IllegalArgumentException - if entity is null or not an @Indexed entitypublic SearchFactory getSearchFactory()
getSearchFactory in interface FullTextSessionSearchFactory instance.
public org.hibernate.Query createSQLQuery(String sql,
String returnAlias,
Class returnClass)
public org.hibernate.Query createSQLQuery(String sql,
String[] returnAliases,
Class[] returnClasses)
public int delete(String query)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public int delete(String query,
Object value,
org.hibernate.type.Type type)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public int delete(String query,
Object[] values,
org.hibernate.type.Type[] types)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public Collection filter(Object collection,
String filter)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public Collection filter(Object collection,
String filter,
Object value,
org.hibernate.type.Type type)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public Collection filter(Object collection,
String filter,
Object[] values,
org.hibernate.type.Type[] types)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public List find(String query)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public List find(String query,
Object value,
org.hibernate.type.Type type)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public List find(String query,
Object[] values,
org.hibernate.type.Type[] types)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public Iterator iterate(String query)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public Iterator iterate(String query,
Object value,
org.hibernate.type.Type type)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public Iterator iterate(String query,
Object[] values,
org.hibernate.type.Type[] types)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public void save(String entityName,
Object object,
Serializable id)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public void save(Object object,
Serializable id)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public Object saveOrUpdateCopy(String entityName,
Object object)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public Object saveOrUpdateCopy(String entityName,
Object object,
Serializable id)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public Object saveOrUpdateCopy(Object object)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public Object saveOrUpdateCopy(Object object,
Serializable id)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public void update(String entityName,
Object object,
Serializable id)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public void update(Object object,
Serializable id)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public org.hibernate.Transaction beginTransaction()
throws org.hibernate.HibernateException
beginTransaction in interface org.hibernate.Sessionorg.hibernate.HibernateException
public void cancelQuery()
throws org.hibernate.HibernateException
cancelQuery in interface org.hibernate.Sessionorg.hibernate.HibernateExceptionpublic void clear()
clear in interface org.hibernate.Session
public Connection close()
throws org.hibernate.HibernateException
close in interface org.hibernate.Sessionorg.hibernate.HibernateException
public Connection connection()
throws org.hibernate.HibernateException
connection in interface org.hibernate.engine.SessionImplementorconnection in interface org.hibernate.Sessionorg.hibernate.HibernateExceptionpublic boolean contains(Object object)
contains in interface org.hibernate.Sessionpublic org.hibernate.Criteria createCriteria(String entityName)
createCriteria in interface org.hibernate.Session
public org.hibernate.Criteria createCriteria(String entityName,
String alias)
createCriteria in interface org.hibernate.Sessionpublic org.hibernate.Criteria createCriteria(Class persistentClass)
createCriteria in interface org.hibernate.Session
public org.hibernate.Criteria createCriteria(Class persistentClass,
String alias)
createCriteria in interface org.hibernate.Session
public org.hibernate.Query createFilter(Object collection,
String queryString)
throws org.hibernate.HibernateException
createFilter in interface org.hibernate.Sessionorg.hibernate.HibernateException
public org.hibernate.Query createQuery(String queryString)
throws org.hibernate.HibernateException
createQuery in interface org.hibernate.Sessionorg.hibernate.HibernateException
public org.hibernate.SQLQuery createSQLQuery(String queryString)
throws org.hibernate.HibernateException
createSQLQuery in interface org.hibernate.Sessionorg.hibernate.HibernateException
public void delete(String entityName,
Object object)
throws org.hibernate.HibernateException
delete in interface org.hibernate.Sessionorg.hibernate.HibernateException
public void delete(Object object)
throws org.hibernate.HibernateException
delete in interface org.hibernate.Sessionorg.hibernate.HibernateExceptionpublic void disableFilter(String filterName)
disableFilter in interface org.hibernate.Session
public Connection disconnect()
throws org.hibernate.HibernateException
disconnect in interface org.hibernate.Sessionorg.hibernate.HibernateExceptionpublic org.hibernate.Filter enableFilter(String filterName)
enableFilter in interface org.hibernate.Session
public void evict(Object object)
throws org.hibernate.HibernateException
evict in interface org.hibernate.Sessionorg.hibernate.HibernateException
public void flush()
throws org.hibernate.HibernateException
flush in interface org.hibernate.engine.SessionImplementorflush in interface org.hibernate.Sessionorg.hibernate.HibernateException
public Object get(Class clazz,
Serializable id)
throws org.hibernate.HibernateException
get in interface org.hibernate.Sessionorg.hibernate.HibernateException
public Object get(Class clazz,
Serializable id,
org.hibernate.LockMode lockMode)
throws org.hibernate.HibernateException
get in interface org.hibernate.Sessionorg.hibernate.HibernateException
public Object get(String entityName,
Serializable id)
throws org.hibernate.HibernateException
get in interface org.hibernate.Sessionorg.hibernate.HibernateException
public Object get(String entityName,
Serializable id,
org.hibernate.LockMode lockMode)
throws org.hibernate.HibernateException
get in interface org.hibernate.Sessionorg.hibernate.HibernateExceptionpublic org.hibernate.CacheMode getCacheMode()
getCacheMode in interface org.hibernate.engine.SessionImplementorgetCacheMode in interface org.hibernate.Session
public org.hibernate.LockMode getCurrentLockMode(Object object)
throws org.hibernate.HibernateException
getCurrentLockMode in interface org.hibernate.Sessionorg.hibernate.HibernateExceptionpublic org.hibernate.Filter getEnabledFilter(String filterName)
getEnabledFilter in interface org.hibernate.Sessionpublic org.hibernate.Interceptor getInterceptor()
getInterceptor in interface org.hibernate.engine.SessionImplementorpublic void setAutoClear(boolean enabled)
setAutoClear in interface org.hibernate.engine.SessionImplementorpublic boolean isTransactionInProgress()
isTransactionInProgress in interface org.hibernate.engine.SessionImplementor
public void initializeCollection(org.hibernate.collection.PersistentCollection collection,
boolean writing)
throws org.hibernate.HibernateException
initializeCollection in interface org.hibernate.engine.SessionImplementororg.hibernate.HibernateException
public Object internalLoad(String entityName,
Serializable id,
boolean eager,
boolean nullable)
throws org.hibernate.HibernateException
internalLoad in interface org.hibernate.engine.SessionImplementororg.hibernate.HibernateException
public Object immediateLoad(String entityName,
Serializable id)
throws org.hibernate.HibernateException
immediateLoad in interface org.hibernate.engine.SessionImplementororg.hibernate.HibernateExceptionpublic long getTimestamp()
getTimestamp in interface org.hibernate.engine.SessionImplementor