|
||||||||||
| 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.hibernate.Session |
|---|
org.hibernate.Session.LockRequest |
| Nested classes/interfaces inherited from interface org.hibernate.engine.jdbc.LobCreationContext |
|---|
org.hibernate.engine.jdbc.LobCreationContext.Callback<T> |
| Constructor Summary | |
|---|---|
FullTextSessionImpl(org.hibernate.Session session)
|
|
| Method Summary | ||
|---|---|---|
void |
afterScrollOperation()
|
|
void |
applyNonFlushedChanges(org.hibernate.engine.spi.NonFlushedChanges nonFlushedChanges)
|
|
org.hibernate.Transaction |
beginTransaction()
|
|
String |
bestGuessEntityName(Object object)
|
|
org.hibernate.Session.LockRequest |
buildLockRequest(org.hibernate.LockOptions lockOptions)
|
|
org.hibernate.IdentifierLoadAccess |
byId(Class entityClass)
|
|
org.hibernate.IdentifierLoadAccess |
byId(String entityName)
|
|
org.hibernate.NaturalIdLoadAccess |
byNaturalId(Class entityClass)
|
|
org.hibernate.NaturalIdLoadAccess |
byNaturalId(String entityName)
|
|
org.hibernate.SimpleNaturalIdLoadAccess |
bySimpleNaturalId(Class entityClass)
|
|
org.hibernate.SimpleNaturalIdLoadAccess |
bySimpleNaturalId(String entityName)
|
|
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(org.apache.lucene.search.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 |
|
MassIndexer |
createIndexer(Class<?>... types)
Creates a MassIndexer to rebuild the indexes of some or all indexed entity types. |
|
org.hibernate.Query |
createQuery(String queryString)
|
|
org.hibernate.SQLQuery |
createSQLQuery(String queryString)
|
|
void |
delete(Object object)
|
|
void |
delete(String entityName,
Object object)
|
|
void |
disableFetchProfile(String name)
|
|
void |
disableFilter(String filterName)
|
|
void |
disableTransactionAutoJoin()
|
|
Connection |
disconnect()
|
|
|
doReturningWork(org.hibernate.jdbc.ReturningWork<T> work)
|
|
void |
doWork(org.hibernate.jdbc.Work work)
|
|
void |
enableFetchProfile(String name)
|
|
org.hibernate.Filter |
enableFilter(String filterName)
|
|
void |
evict(Object object)
|
|
|
execute(org.hibernate.engine.jdbc.LobCreationContext.Callback<T> callback)
|
|
int |
executeNativeUpdate(org.hibernate.engine.query.spi.sql.NativeSQLQuerySpecification specification,
org.hibernate.engine.spi.QueryParameters queryParameters)
|
|
int |
executeUpdate(String query,
org.hibernate.engine.spi.QueryParameters queryParameters)
|
|
void |
flush()
|
|
void |
flushToIndexes()
Flush all index changes forcing Hibernate Search to apply all changes to the index not waiting for the batch limit. |
|
org.hibernate.cache.spi.CacheKey |
generateCacheKey(Serializable id,
org.hibernate.type.Type type,
String entityOrRoleName)
|
|
org.hibernate.engine.spi.EntityKey |
generateEntityKey(Serializable id,
org.hibernate.persister.entity.EntityPersister persister)
|
|
Object |
get(Class clazz,
Serializable id)
|
|
Object |
get(Class clazz,
Serializable id,
org.hibernate.LockMode lockMode)
|
|
Object |
get(Class clazz,
Serializable id,
org.hibernate.LockOptions lockOptions)
|
|
Object |
get(String entityName,
Serializable id)
|
|
Object |
get(String entityName,
Serializable id,
org.hibernate.LockMode lockMode)
|
|
Object |
get(String entityName,
Serializable id,
org.hibernate.LockOptions lockOptions)
|
|
org.hibernate.CacheMode |
getCacheMode()
|
|
Serializable |
getContextEntityIdentifier(Object object)
|
|
org.hibernate.LockMode |
getCurrentLockMode(Object object)
|
|
int |
getDontFlushFromFind()
|
|
org.hibernate.Filter |
getEnabledFilter(String filterName)
|
|
Map |
getEnabledFilters()
|
|
String |
getEntityName(Object object)
|
|
org.hibernate.persister.entity.EntityPersister |
getEntityPersister(String entityName,
Object object)
|
|
Object |
getEntityUsingInterceptor(org.hibernate.engine.spi.EntityKey key)
|
|
org.hibernate.engine.spi.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.engine.jdbc.spi.JdbcConnectionAccess |
getJdbcConnectionAccess()
|
|
org.hibernate.engine.spi.LoadQueryInfluencers |
getLoadQueryInfluencers()
|
|
org.hibernate.LobHelper |
getLobHelper()
|
|
org.hibernate.Query |
getNamedQuery(String queryName)
|
|
org.hibernate.Query |
getNamedSQLQuery(String name)
|
|
org.hibernate.engine.spi.NonFlushedChanges |
getNonFlushedChanges()
|
|
org.hibernate.engine.spi.PersistenceContext |
getPersistenceContext()
|
|
SearchFactory |
getSearchFactory()
|
|
org.hibernate.SessionFactory |
getSessionFactory()
|
|
org.hibernate.stat.SessionStatistics |
getStatistics()
|
|
String |
getTenantIdentifier()
|
|
long |
getTimestamp()
|
|
org.hibernate.Transaction |
getTransaction()
|
|
org.hibernate.engine.transaction.spi.TransactionCoordinator |
getTransactionCoordinator()
|
|
org.hibernate.TypeHelper |
getTypeHelper()
|
|
String |
guessEntityName(Object entity)
|
|
Object |
immediateLoad(String entityName,
Serializable id)
|
|
|
index(T entity)
(Re-)index an entity. |
|
void |
initializeCollection(org.hibernate.collection.spi.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 |
isDefaultReadOnly()
|
|
boolean |
isDirty()
|
|
boolean |
isEventSource()
|
|
boolean |
isFetchProfileEnabled(String name)
|
|
boolean |
isOpen()
|
|
boolean |
isReadOnly(Object entityOrProxy)
|
|
boolean |
isTransactionInProgress()
|
|
Iterator |
iterate(String query,
org.hibernate.engine.spi.QueryParameters queryParameters)
|
|
Iterator |
iterateFilter(Object collection,
String filter,
org.hibernate.engine.spi.QueryParameters queryParameters)
|
|
List |
list(org.hibernate.Criteria criteria)
|
|
List |
list(org.hibernate.engine.query.spi.sql.NativeSQLQuerySpecification spec,
org.hibernate.engine.spi.QueryParameters queryParameters)
|
|
List |
list(String query,
org.hibernate.engine.spi.QueryParameters queryParameters)
|
|
List |
listCustomQuery(org.hibernate.loader.custom.CustomQuery customQuery,
org.hibernate.engine.spi.QueryParameters queryParameters)
|
|
List |
listFilter(Object collection,
String filter,
org.hibernate.engine.spi.QueryParameters queryParameters)
|
|
Object |
load(Class theClass,
Serializable id)
|
|
Object |
load(Class theClass,
Serializable id,
org.hibernate.LockMode lockMode)
|
|
Object |
load(Class theClass,
Serializable id,
org.hibernate.LockOptions lockOptions)
|
|
void |
load(Object object,
Serializable id)
|
|
Object |
load(String entityName,
Serializable id)
|
|
Object |
load(String entityName,
Serializable id,
org.hibernate.LockMode lockMode)
|
|
Object |
load(String entityName,
Serializable id,
org.hibernate.LockOptions lockOptions)
|
|
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(Connection connection)
|
|
void |
refresh(Object object)
|
|
void |
refresh(Object object,
org.hibernate.LockMode lockMode)
|
|
void |
refresh(Object object,
org.hibernate.LockOptions lockOptions)
|
|
void |
refresh(String entityName,
Object object)
|
|
void |
refresh(String entityName,
Object object,
org.hibernate.LockOptions lockOptions)
|
|
void |
replicate(Object object,
org.hibernate.ReplicationMode replicationMode)
|
|
void |
replicate(String entityName,
Object object,
org.hibernate.ReplicationMode replicationMode)
|
|
Serializable |
save(Object object)
|
|
Serializable |
save(String entityName,
Object object)
|
|
void |
saveOrUpdate(Object object)
|
|
void |
saveOrUpdate(String entityName,
Object object)
|
|
org.hibernate.ScrollableResults |
scroll(org.hibernate.Criteria criteria,
org.hibernate.ScrollMode scrollMode)
|
|
org.hibernate.ScrollableResults |
scroll(org.hibernate.engine.query.spi.sql.NativeSQLQuerySpecification spec,
org.hibernate.engine.spi.QueryParameters queryParameters)
|
|
org.hibernate.ScrollableResults |
scroll(String query,
org.hibernate.engine.spi.QueryParameters queryParameters)
|
|
org.hibernate.ScrollableResults |
scrollCustomQuery(org.hibernate.loader.custom.CustomQuery customQuery,
org.hibernate.engine.spi.QueryParameters queryParameters)
|
|
FullTextSharedSessionBuilder |
sessionWithOptions()
|
|
void |
setAutoClear(boolean enabled)
|
|
void |
setCacheMode(org.hibernate.CacheMode cacheMode)
|
|
void |
setDefaultReadOnly(boolean readOnly)
|
|
void |
setFetchProfile(String name)
|
|
void |
setFlushMode(org.hibernate.FlushMode flushMode)
|
|
void |
setReadOnly(Object entity,
boolean readOnly)
|
|
void |
update(Object object)
|
|
void |
update(String entityName,
Object object)
|
|
| 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(org.apache.lucene.search.Query luceneQuery,
Class<?>... entities)
createFullTextQuery in interface FullTextSessionentities - must be immutable for the lifetime of the query objectluceneQuery - The native Lucene query to be run against the Lucene index.
FullTextQuery wrapping around the native Lucene query.public <T> void purgeAll(Class<T> entityType)
EntityIndexingInterceptor registered on the entity type will be ignored.
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).
Any EntityIndexingInterceptor registered on the entity will be ignored:
this method forces a purge operation.
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 MassIndexer createIndexer(Class<?>... types)
FullTextSessionEntityIndexingInterceptor registered on the entity types are applied: each instance will trigger
an EntityIndexingInterceptor#onAdd(Object) event from where you can customize the indexing operation.
createIndexer in interface FullTextSessiontypes - optionally restrict the operation to selected types
public SearchFactory getSearchFactory()
getSearchFactory in interface FullTextSessionSearchFactory instance.public String getTenantIdentifier()
getTenantIdentifier in interface org.hibernate.engine.spi.SessionImplementorgetTenantIdentifier in interface org.hibernate.SharedSessionContract
public org.hibernate.Transaction beginTransaction()
throws org.hibernate.HibernateException
beginTransaction in interface org.hibernate.SharedSessionContractorg.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.HibernateExceptionpublic boolean contains(Object object)
contains in interface org.hibernate.Sessionpublic org.hibernate.Criteria createCriteria(String entityName)
createCriteria in interface org.hibernate.SharedSessionContract
public org.hibernate.Criteria createCriteria(String entityName,
String alias)
createCriteria in interface org.hibernate.SharedSessionContractpublic org.hibernate.Criteria createCriteria(Class persistentClass)
createCriteria in interface org.hibernate.SharedSessionContract
public org.hibernate.Criteria createCriteria(Class persistentClass,
String alias)
createCriteria in interface org.hibernate.SharedSessionContract
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.SharedSessionContractorg.hibernate.HibernateException
public org.hibernate.SQLQuery createSQLQuery(String queryString)
throws org.hibernate.HibernateException
createSQLQuery in interface org.hibernate.SharedSessionContractorg.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.HibernateExceptionpublic FullTextSharedSessionBuilder sessionWithOptions()
FullTextSession
sessionWithOptions in interface FullTextSessionsessionWithOptions in interface org.hibernate.Session
public void flush()
throws org.hibernate.HibernateException
flush in interface org.hibernate.engine.spi.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(Class clazz,
Serializable id,
org.hibernate.LockOptions lockOptions)
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.HibernateException
public Object get(String entityName,
Serializable id,
org.hibernate.LockOptions lockOptions)
throws org.hibernate.HibernateException
get in interface org.hibernate.Sessionorg.hibernate.HibernateExceptionpublic org.hibernate.CacheMode getCacheMode()
getCacheMode in interface org.hibernate.engine.spi.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.engine.jdbc.spi.JdbcConnectionAccess getJdbcConnectionAccess()
getJdbcConnectionAccess in interface org.hibernate.engine.spi.SessionImplementor
public org.hibernate.engine.spi.EntityKey generateEntityKey(Serializable id,
org.hibernate.persister.entity.EntityPersister persister)
generateEntityKey in interface org.hibernate.engine.spi.SessionImplementor
public org.hibernate.cache.spi.CacheKey generateCacheKey(Serializable id,
org.hibernate.type.Type type,
String entityOrRoleName)
generateCacheKey in interface org.hibernate.engine.spi.SessionImplementorpublic org.hibernate.Interceptor getInterceptor()
getInterceptor in interface org.hibernate.engine.spi.SessionImplementorpublic void setAutoClear(boolean enabled)
setAutoClear in interface org.hibernate.engine.spi.SessionImplementorpublic void disableTransactionAutoJoin()
disableTransactionAutoJoin in interface org.hibernate.engine.spi.SessionImplementorpublic boolean isTransactionInProgress()
isTransactionInProgress in interface org.hibernate.engine.spi.SessionImplementor
public void initializeCollection(org.hibernate.collection.spi.PersistentCollection collection,
boolean writing)
throws org.hibernate.HibernateException
initializeCollection in interface org.hibernate.engine.spi.SessionImplementororg.hibernate.HibernateException
public Object internalLoad(String entityName,
Serializable id,
boolean eager,
boolean nullable)
throws org.hibernate.HibernateException
internalLoad in interface org.hibernate.engine.spi.SessionImplementororg.hibernate.HibernateException
public Object immediateLoad(String entityName,
Serializable id)
throws org.hibernate.HibernateException
immediateLoad in interface org.hibernate.engine.spi.SessionImplementororg.hibernate.HibernateExceptionpublic long getTimestamp()
getTimestamp in interface org.hibernate.engine.spi.SessionImplementorpublic org.hibernate.engine.spi.SessionFactoryImplementor getFactory()
getFactory in interface org.hibernate.engine.spi.SessionImplementor
public List list(String query,
org.hibernate.engine.spi.QueryParameters queryParameters)
throws org.hibernate.HibernateException
list in interface org.hibernate.engine.spi.SessionImplementororg.hibernate.HibernateException
public Iterator iterate(String query,
org.hibernate.engine.spi.QueryParameters queryParameters)
throws org.hibernate.HibernateException
iterate in interface org.hibernate.engine.spi.SessionImplementororg.hibernate.HibernateException
public org.hibernate.ScrollableResults scroll(String query,
org.hibernate.engine.spi.QueryParameters queryParameters)
throws org.hibernate.HibernateException
scroll in interface org.hibernate.engine.spi.SessionImplementororg.hibernate.HibernateException
public org.hibernate.ScrollableResults scroll(org.hibernate.Criteria criteria,
org.hibernate.ScrollMode scrollMode)
scroll in interface org.hibernate.engine.spi.SessionImplementorpublic List list(org.hibernate.Criteria criteria)
list in interface org.hibernate.engine.spi.SessionImplementor
public List listFilter(Object collection,
String filter,
org.hibernate.engine.spi.QueryParameters queryParameters)
throws org.hibernate.HibernateException
listFilter in interface org.hibernate.engine.spi.SessionImplementororg.hibernate.HibernateException
public Iterator iterateFilter(Object collection,
String filter,
org.hibernate.engine.spi.QueryParameters queryParameters)
throws org.hibernate.HibernateException
iterateFilter in interface org.hibernate.engine.spi.SessionImplementororg.hibernate.HibernateException
public org.hibernate.persister.entity.EntityPersister getEntityPersister(String entityName,
Object object)
throws org.hibernate.HibernateException
getEntityPersister in interface org.hibernate.engine.spi.SessionImplementororg.hibernate.HibernateException
public Object getEntityUsingInterceptor(org.hibernate.engine.spi.EntityKey key)
throws org.hibernate.HibernateException
getEntityUsingInterceptor in interface org.hibernate.engine.spi.SessionImplementororg.hibernate.HibernateExceptionpublic Serializable getContextEntityIdentifier(Object object)
getContextEntityIdentifier in interface org.hibernate.engine.spi.SessionImplementorpublic String bestGuessEntityName(Object object)
bestGuessEntityName in interface org.hibernate.engine.spi.SessionImplementor
public String guessEntityName(Object entity)
throws org.hibernate.HibernateException
guessEntityName in interface org.hibernate.engine.spi.SessionImplementororg.hibernate.HibernateException
public Object instantiate(String entityName,
Serializable id)
throws org.hibernate.HibernateException
instantiate in interface org.hibernate.engine.spi.SessionImplementororg.hibernate.HibernateException
public List listCustomQuery(org.hibernate.loader.custom.CustomQuery customQuery,
org.hibernate.engine.spi.QueryParameters queryParameters)
throws org.hibernate.HibernateException
listCustomQuery in interface org.hibernate.engine.spi.SessionImplementororg.hibernate.HibernateException
public org.hibernate.ScrollableResults scrollCustomQuery(org.hibernate.loader.custom.CustomQuery customQuery,
org.hibernate.engine.spi.QueryParameters queryParameters)
throws org.hibernate.HibernateException
scrollCustomQuery in interface org.hibernate.engine.spi.SessionImplementororg.hibernate.HibernateException
public List list(org.hibernate.engine.query.spi.sql.NativeSQLQuerySpecification spec,
org.hibernate.engine.spi.QueryParameters queryParameters)
throws org.hibernate.HibernateException
list in interface org.hibernate.engine.spi.SessionImplementororg.hibernate.HibernateException
public org.hibernate.ScrollableResults scroll(org.hibernate.engine.query.spi.sql.NativeSQLQuerySpecification spec,
org.hibernate.engine.spi.QueryParameters queryParameters)
throws org.hibernate.HibernateException
scroll in interface org.hibernate.engine.spi.SessionImplementororg.hibernate.HibernateExceptionpublic Object getFilterParameterValue(String filterParameterName)
getFilterParameterValue in interface org.hibernate.engine.spi.SessionImplementorpublic org.hibernate.type.Type getFilterParameterType(String filterParameterName)
getFilterParameterType in interface org.hibernate.engine.spi.SessionImplementorpublic Map getEnabledFilters()
getEnabledFilters in interface org.hibernate.engine.spi.SessionImplementorpublic int getDontFlushFromFind()
getDontFlushFromFind in interface org.hibernate.engine.spi.SessionImplementorpublic org.hibernate.engine.spi.PersistenceContext getPersistenceContext()
getPersistenceContext in interface org.hibernate.engine.spi.SessionImplementor
public int executeUpdate(String query,
org.hibernate.engine.spi.QueryParameters queryParameters)
throws org.hibernate.HibernateException
executeUpdate in interface org.hibernate.engine.spi.SessionImplementororg.hibernate.HibernateException
public int executeNativeUpdate(org.hibernate.engine.query.spi.sql.NativeSQLQuerySpecification specification,
org.hibernate.engine.spi.QueryParameters queryParameters)
throws org.hibernate.HibernateException
executeNativeUpdate in interface org.hibernate.engine.spi.SessionImplementororg.hibernate.HibernateException
public org.hibernate.engine.spi.NonFlushedChanges getNonFlushedChanges()
throws org.hibernate.HibernateException
getNonFlushedChanges in interface org.hibernate.engine.spi.SessionImplementororg.hibernate.HibernateException
public void applyNonFlushedChanges(org.hibernate.engine.spi.NonFlushedChanges nonFlushedChanges)
throws org.hibernate.HibernateException
applyNonFlushedChanges in interface org.hibernate.engine.spi.SessionImplementororg.hibernate.HibernateException
public String getEntityName(Object object)
throws org.hibernate.HibernateException
getEntityName in interface org.hibernate.Sessionorg.hibernate.HibernateExceptionpublic org.hibernate.FlushMode getFlushMode()
getFlushMode in interface org.hibernate.engine.spi.SessionImplementorgetFlushMode in interface org.hibernate.Session
public Serializable getIdentifier(Object object)
throws org.hibernate.HibernateException
getIdentifier in interface org.hibernate.Sessionorg.hibernate.HibernateException
public org.hibernate.Query getNamedQuery(String queryName)
throws org.hibernate.HibernateException
getNamedQuery in interface org.hibernate.engine.spi.SessionImplementorgetNamedQuery in interface org.hibernate.SharedSessionContractorg.hibernate.HibernateExceptionpublic org.hibernate.Query getNamedSQLQuery(String name)
getNamedSQLQuery in interface org.hibernate.engine.spi.SessionImplementorpublic boolean isEventSource()
isEventSource in interface org.hibernate.engine.spi.SessionImplementorpublic void afterScrollOperation()
afterScrollOperation in interface org.hibernate.engine.spi.SessionImplementorpublic void setFetchProfile(String name)
setFetchProfile in interface org.hibernate.engine.spi.SessionImplementorpublic org.hibernate.engine.transaction.spi.TransactionCoordinator getTransactionCoordinator()
getTransactionCoordinator in interface org.hibernate.engine.spi.SessionImplementorpublic String getFetchProfile()
getFetchProfile in interface org.hibernate.engine.spi.SessionImplementorpublic boolean isClosed()
isClosed in interface org.hibernate.engine.spi.SessionImplementorpublic org.hibernate.engine.spi.LoadQueryInfluencers getLoadQueryInfluencers()
getLoadQueryInfluencers in interface org.hibernate.engine.spi.SessionImplementorpublic org.hibernate.SessionFactory getSessionFactory()
getSessionFactory in interface org.hibernate.Sessionpublic org.hibernate.stat.SessionStatistics getStatistics()
getStatistics in interface org.hibernate.Sessionpublic boolean isReadOnly(Object entityOrProxy)
isReadOnly in interface org.hibernate.Sessionpublic org.hibernate.Transaction getTransaction()
getTransaction in interface org.hibernate.SharedSessionContractpublic boolean isConnected()
isConnected in interface org.hibernate.engine.spi.SessionImplementorisConnected in interface org.hibernate.Session
public boolean isDirty()
throws org.hibernate.HibernateException
isDirty in interface org.hibernate.Sessionorg.hibernate.HibernateExceptionpublic boolean isDefaultReadOnly()
isDefaultReadOnly in interface org.hibernate.Sessionpublic boolean isOpen()
isOpen in interface org.hibernate.engine.spi.SessionImplementorisOpen in interface org.hibernate.Session
public Object load(String entityName,
Serializable id)
throws org.hibernate.HibernateException
load in interface org.hibernate.Sessionorg.hibernate.HibernateException
public Object load(String entityName,
Serializable id,
org.hibernate.LockMode lockMode)
throws org.hibernate.HibernateException
load in interface org.hibernate.Sessionorg.hibernate.HibernateException
public Object load(String entityName,
Serializable id,
org.hibernate.LockOptions lockOptions)
throws org.hibernate.HibernateException
load in interface org.hibernate.Sessionorg.hibernate.HibernateException
public void load(Object object,
Serializable id)
throws org.hibernate.HibernateException
load in interface org.hibernate.Sessionorg.hibernate.HibernateException
public Object load(Class theClass,
Serializable id)
throws org.hibernate.HibernateException
load in interface org.hibernate.Sessionorg.hibernate.HibernateException
public Object load(Class theClass,
Serializable id,
org.hibernate.LockMode lockMode)
throws org.hibernate.HibernateException
load in interface org.hibernate.Sessionorg.hibernate.HibernateException
public Object load(Class theClass,
Serializable id,
org.hibernate.LockOptions lockOptions)
throws org.hibernate.HibernateException
load in interface org.hibernate.Sessionorg.hibernate.HibernateException
public void lock(String entityName,
Object object,
org.hibernate.LockMode lockMode)
throws org.hibernate.HibernateException
lock in interface org.hibernate.Sessionorg.hibernate.HibernateExceptionpublic org.hibernate.Session.LockRequest buildLockRequest(org.hibernate.LockOptions lockOptions)
buildLockRequest in interface org.hibernate.Session
public void lock(Object object,
org.hibernate.LockMode lockMode)
throws org.hibernate.HibernateException
lock in interface org.hibernate.Sessionorg.hibernate.HibernateException
public Object merge(String entityName,
Object object)
throws org.hibernate.HibernateException
merge in interface org.hibernate.Sessionorg.hibernate.HibernateException
public Object merge(Object object)
throws org.hibernate.HibernateException
merge in interface org.hibernate.Sessionorg.hibernate.HibernateException
public void persist(String entityName,
Object object)
throws org.hibernate.HibernateException
persist in interface org.hibernate.Sessionorg.hibernate.HibernateException
public void persist(Object object)
throws org.hibernate.HibernateException
persist in interface org.hibernate.Sessionorg.hibernate.HibernateException
public void reconnect(Connection connection)
throws org.hibernate.HibernateException
reconnect in interface org.hibernate.Sessionorg.hibernate.HibernateException
public void refresh(Object object)
throws org.hibernate.HibernateException
refresh in interface org.hibernate.Sessionorg.hibernate.HibernateException
public void refresh(String entityName,
Object object)
throws org.hibernate.HibernateException
refresh in interface org.hibernate.Sessionorg.hibernate.HibernateException
public void refresh(Object object,
org.hibernate.LockMode lockMode)
throws org.hibernate.HibernateException
refresh in interface org.hibernate.Sessionorg.hibernate.HibernateException
public void refresh(Object object,
org.hibernate.LockOptions lockOptions)
throws org.hibernate.HibernateException
refresh in interface org.hibernate.Sessionorg.hibernate.HibernateException
public void refresh(String entityName,
Object object,
org.hibernate.LockOptions lockOptions)
throws org.hibernate.HibernateException
refresh in interface org.hibernate.Sessionorg.hibernate.HibernateException
public void replicate(String entityName,
Object object,
org.hibernate.ReplicationMode replicationMode)
throws org.hibernate.HibernateException
replicate in interface org.hibernate.Sessionorg.hibernate.HibernateException
public void replicate(Object object,
org.hibernate.ReplicationMode replicationMode)
throws org.hibernate.HibernateException
replicate in interface org.hibernate.Sessionorg.hibernate.HibernateException
public Serializable save(String entityName,
Object object)
throws org.hibernate.HibernateException
save in interface org.hibernate.Sessionorg.hibernate.HibernateException
public Serializable save(Object object)
throws org.hibernate.HibernateException
save in interface org.hibernate.Sessionorg.hibernate.HibernateException
public void saveOrUpdate(String entityName,
Object object)
throws org.hibernate.HibernateException
saveOrUpdate in interface org.hibernate.Sessionorg.hibernate.HibernateException
public void saveOrUpdate(Object object)
throws org.hibernate.HibernateException
saveOrUpdate in interface org.hibernate.Sessionorg.hibernate.HibernateExceptionpublic void setCacheMode(org.hibernate.CacheMode cacheMode)
setCacheMode in interface org.hibernate.engine.spi.SessionImplementorsetCacheMode in interface org.hibernate.Sessionpublic void setDefaultReadOnly(boolean readOnly)
setDefaultReadOnly in interface org.hibernate.Sessionpublic void setFlushMode(org.hibernate.FlushMode flushMode)
setFlushMode in interface org.hibernate.engine.spi.SessionImplementorsetFlushMode in interface org.hibernate.Sessionpublic Connection connection()
connection in interface org.hibernate.engine.spi.SessionImplementor
public void setReadOnly(Object entity,
boolean readOnly)
setReadOnly in interface org.hibernate.Session
public void doWork(org.hibernate.jdbc.Work work)
throws org.hibernate.HibernateException
doWork in interface org.hibernate.Sessionorg.hibernate.HibernateException
public <T> T doReturningWork(org.hibernate.jdbc.ReturningWork<T> work)
throws org.hibernate.HibernateException
doReturningWork in interface org.hibernate.Sessionorg.hibernate.HibernateException
public void update(String entityName,
Object object)
throws org.hibernate.HibernateException
update in interface org.hibernate.Sessionorg.hibernate.HibernateException
public void update(Object object)
throws org.hibernate.HibernateException
update in interface org.hibernate.Sessionorg.hibernate.HibernateException
public boolean isFetchProfileEnabled(String name)
throws org.hibernate.UnknownProfileException
isFetchProfileEnabled in interface org.hibernate.Sessionorg.hibernate.UnknownProfileException
public void enableFetchProfile(String name)
throws org.hibernate.UnknownProfileException
enableFetchProfile in interface org.hibernate.Sessionorg.hibernate.UnknownProfileException
public void disableFetchProfile(String name)
throws org.hibernate.UnknownProfileException
disableFetchProfile in interface org.hibernate.Sessionorg.hibernate.UnknownProfileExceptionpublic org.hibernate.TypeHelper getTypeHelper()
getTypeHelper in interface org.hibernate.Sessionpublic org.hibernate.LobHelper getLobHelper()
getLobHelper in interface org.hibernate.Sessionpublic <T> T execute(org.hibernate.engine.jdbc.LobCreationContext.Callback<T> callback)
execute in interface org.hibernate.engine.jdbc.LobCreationContextpublic org.hibernate.IdentifierLoadAccess byId(String entityName)
byId in interface org.hibernate.Sessionpublic org.hibernate.IdentifierLoadAccess byId(Class entityClass)
byId in interface org.hibernate.Sessionpublic org.hibernate.NaturalIdLoadAccess byNaturalId(String entityName)
byNaturalId in interface org.hibernate.Sessionpublic org.hibernate.NaturalIdLoadAccess byNaturalId(Class entityClass)
byNaturalId in interface org.hibernate.Sessionpublic org.hibernate.SimpleNaturalIdLoadAccess bySimpleNaturalId(String entityName)
bySimpleNaturalId in interface org.hibernate.Sessionpublic org.hibernate.SimpleNaturalIdLoadAccess bySimpleNaturalId(Class entityClass)
bySimpleNaturalId in interface org.hibernate.Session
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||