|
||||||||||
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(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 |
|
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(org.apache.lucene.search.Query luceneQuery, Class... entities)
createFullTextQuery
in interface FullTextSession
entities
- 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 FullTextSession
entityType
- 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 FullTextSession
entityType
- The type of the entity to delete.id
- The id of the entity to delete.public <T> void index(T entity)
index
in interface FullTextSession
entity
- The entity to index - must not be null
.
IllegalArgumentException
- if entity is null or not an @Indexed entitypublic SearchFactory getSearchFactory()
getSearchFactory
in interface FullTextSession
SearchFactory
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.Session
org.hibernate.HibernateException
public void cancelQuery() throws org.hibernate.HibernateException
cancelQuery
in interface org.hibernate.Session
org.hibernate.HibernateException
public void clear()
clear
in interface org.hibernate.Session
public Connection close() throws org.hibernate.HibernateException
close
in interface org.hibernate.Session
org.hibernate.HibernateException
public Connection connection() throws org.hibernate.HibernateException
connection
in interface org.hibernate.engine.SessionImplementor
connection
in interface org.hibernate.Session
org.hibernate.HibernateException
public boolean contains(Object object)
contains
in interface org.hibernate.Session
public 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.Session
public 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.Session
org.hibernate.HibernateException
public org.hibernate.Query createQuery(String queryString) throws org.hibernate.HibernateException
createQuery
in interface org.hibernate.Session
org.hibernate.HibernateException
public org.hibernate.SQLQuery createSQLQuery(String queryString) throws org.hibernate.HibernateException
createSQLQuery
in interface org.hibernate.Session
org.hibernate.HibernateException
public void delete(String entityName, Object object) throws org.hibernate.HibernateException
delete
in interface org.hibernate.Session
org.hibernate.HibernateException
public void delete(Object object) throws org.hibernate.HibernateException
delete
in interface org.hibernate.Session
org.hibernate.HibernateException
public void disableFilter(String filterName)
disableFilter
in interface org.hibernate.Session
public Connection disconnect() throws org.hibernate.HibernateException
disconnect
in interface org.hibernate.Session
org.hibernate.HibernateException
public 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.Session
org.hibernate.HibernateException
public void flush() throws org.hibernate.HibernateException
flush
in interface org.hibernate.engine.SessionImplementor
flush
in interface org.hibernate.Session
org.hibernate.HibernateException
public Object get(Class clazz, Serializable id) throws org.hibernate.HibernateException
get
in interface org.hibernate.Session
org.hibernate.HibernateException
public Object get(Class clazz, Serializable id, org.hibernate.LockMode lockMode) throws org.hibernate.HibernateException
get
in interface org.hibernate.Session
org.hibernate.HibernateException
public Object get(String entityName, Serializable id) throws org.hibernate.HibernateException
get
in interface org.hibernate.Session
org.hibernate.HibernateException
public Object get(String entityName, Serializable id, org.hibernate.LockMode lockMode) throws org.hibernate.HibernateException
get
in interface org.hibernate.Session
org.hibernate.HibernateException
public org.hibernate.CacheMode getCacheMode()
getCacheMode
in interface org.hibernate.engine.SessionImplementor
getCacheMode
in interface org.hibernate.Session
public org.hibernate.LockMode getCurrentLockMode(Object object) throws org.hibernate.HibernateException
getCurrentLockMode
in interface org.hibernate.Session
org.hibernate.HibernateException
public org.hibernate.Filter getEnabledFilter(String filterName)
getEnabledFilter
in interface org.hibernate.Session
public org.hibernate.Interceptor getInterceptor()
getInterceptor
in interface org.hibernate.engine.SessionImplementor
public void setAutoClear(boolean enabled)
setAutoClear
in interface org.hibernate.engine.SessionImplementor
public 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.SessionImplementor
org.hibernate.HibernateException
public Object internalLoad(String entityName, Serializable id, boolean eager, boolean nullable) throws org.hibernate.HibernateException
internalLoad
in interface org.hibernate.engine.SessionImplementor
org.hibernate.HibernateException
public Object immediateLoad(String entityName, Serializable id) throws org.hibernate.HibernateException
immediateLoad
in interface org.hibernate.engine.SessionImplementor
org.hibernate.HibernateException
public long getTimestamp()
getTimestamp
in interface org.hibernate.engine.SessionImplementor
public org.hibernate.engine.SessionFactoryImplementor getFactory()
getFactory
in interface org.hibernate.engine.SessionImplementor
public org.hibernate.jdbc.Batcher getBatcher()
getBatcher
in interface org.hibernate.engine.SessionImplementor
public List list(String query, org.hibernate.engine.QueryParameters queryParameters) throws org.hibernate.HibernateException
list
in interface org.hibernate.engine.SessionImplementor
org.hibernate.HibernateException
public Iterator iterate(String query, org.hibernate.engine.QueryParameters queryParameters) throws org.hibernate.HibernateException
iterate
in interface org.hibernate.engine.SessionImplementor
org.hibernate.HibernateException
public org.hibernate.ScrollableResults scroll(String query, org.hibernate.engine.QueryParameters queryParameters) throws org.hibernate.HibernateException
scroll
in interface org.hibernate.engine.SessionImplementor
org.hibernate.HibernateException
public org.hibernate.ScrollableResults scroll(org.hibernate.impl.CriteriaImpl criteria, org.hibernate.ScrollMode scrollMode)
scroll
in interface org.hibernate.engine.SessionImplementor
public List list(org.hibernate.impl.CriteriaImpl criteria)
list
in interface org.hibernate.engine.SessionImplementor
public List listFilter(Object collection, String filter, org.hibernate.engine.QueryParameters queryParameters) throws org.hibernate.HibernateException
listFilter
in interface org.hibernate.engine.SessionImplementor
org.hibernate.HibernateException
public Iterator iterateFilter(Object collection, String filter, org.hibernate.engine.QueryParameters queryParameters) throws org.hibernate.HibernateException
iterateFilter
in interface org.hibernate.engine.SessionImplementor
org.hibernate.HibernateException
public org.hibernate.persister.entity.EntityPersister getEntityPersister(String entityName, Object object) throws org.hibernate.HibernateException
getEntityPersister
in interface org.hibernate.engine.SessionImplementor
org.hibernate.HibernateException
public Object getEntityUsingInterceptor(org.hibernate.engine.EntityKey key) throws org.hibernate.HibernateException
getEntityUsingInterceptor
in interface org.hibernate.engine.SessionImplementor
org.hibernate.HibernateException
public void afterTransactionCompletion(boolean successful, org.hibernate.Transaction tx)
afterTransactionCompletion
in interface org.hibernate.engine.SessionImplementor
public void beforeTransactionCompletion(org.hibernate.Transaction tx)
beforeTransactionCompletion
in interface org.hibernate.engine.SessionImplementor
public Serializable getContextEntityIdentifier(Object object)
getContextEntityIdentifier
in interface org.hibernate.engine.SessionImplementor
public String bestGuessEntityName(Object object)
bestGuessEntityName
in interface org.hibernate.engine.SessionImplementor
public String guessEntityName(Object entity) throws org.hibernate.HibernateException
guessEntityName
in interface org.hibernate.engine.SessionImplementor
org.hibernate.HibernateException
public Object instantiate(String entityName, Serializable id) throws org.hibernate.HibernateException
instantiate
in interface org.hibernate.engine.SessionImplementor
org.hibernate.HibernateException
public List listCustomQuery(org.hibernate.loader.custom.CustomQuery customQuery, org.hibernate.engine.QueryParameters queryParameters) throws org.hibernate.HibernateException
listCustomQuery
in interface org.hibernate.engine.SessionImplementor
org.hibernate.HibernateException
public org.hibernate.ScrollableResults scrollCustomQuery(org.hibernate.loader.custom.CustomQuery customQuery, org.hibernate.engine.QueryParameters queryParameters) throws org.hibernate.HibernateException
scrollCustomQuery
in interface org.hibernate.engine.SessionImplementor
org.hibernate.HibernateException
public List list(org.hibernate.engine.query.sql.NativeSQLQuerySpecification spec, org.hibernate.engine.QueryParameters queryParameters) throws org.hibernate.HibernateException
list
in interface org.hibernate.engine.SessionImplementor
org.hibernate.HibernateException
public org.hibernate.ScrollableResults scroll(org.hibernate.engine.query.sql.NativeSQLQuerySpecification spec, org.hibernate.engine.QueryParameters queryParameters) throws org.hibernate.HibernateException
scroll
in interface org.hibernate.engine.SessionImplementor
org.hibernate.HibernateException
public Object getFilterParameterValue(String filterParameterName)
getFilterParameterValue
in interface org.hibernate.engine.SessionImplementor
public org.hibernate.type.Type getFilterParameterType(String filterParameterName)
getFilterParameterType
in interface org.hibernate.engine.SessionImplementor
public Map getEnabledFilters()
getEnabledFilters
in interface org.hibernate.engine.SessionImplementor
public int getDontFlushFromFind()
getDontFlushFromFind
in interface org.hibernate.engine.SessionImplementor
public org.hibernate.event.EventListeners getListeners()
getListeners
in interface org.hibernate.engine.SessionImplementor
public org.hibernate.engine.PersistenceContext getPersistenceContext()
getPersistenceContext
in interface org.hibernate.engine.SessionImplementor
public int executeUpdate(String query, org.hibernate.engine.QueryParameters queryParameters) throws org.hibernate.HibernateException
executeUpdate
in interface org.hibernate.engine.SessionImplementor
org.hibernate.HibernateException
public int executeNativeUpdate(org.hibernate.engine.query.sql.NativeSQLQuerySpecification specification, org.hibernate.engine.QueryParameters queryParameters) throws org.hibernate.HibernateException
executeNativeUpdate
in interface org.hibernate.engine.SessionImplementor
org.hibernate.HibernateException
public org.hibernate.EntityMode getEntityMode()
getEntityMode
in interface org.hibernate.engine.SessionImplementor
getEntityMode
in interface org.hibernate.Session
public String getEntityName(Object object) throws org.hibernate.HibernateException
getEntityName
in interface org.hibernate.Session
org.hibernate.HibernateException
public org.hibernate.FlushMode getFlushMode()
getFlushMode
in interface org.hibernate.engine.SessionImplementor
getFlushMode
in interface org.hibernate.Session
public Serializable getIdentifier(Object object) throws org.hibernate.HibernateException
getIdentifier
in interface org.hibernate.Session
org.hibernate.HibernateException
public org.hibernate.Query getNamedQuery(String queryName) throws org.hibernate.HibernateException
getNamedQuery
in interface org.hibernate.engine.SessionImplementor
getNamedQuery
in interface org.hibernate.Session
org.hibernate.HibernateException
public org.hibernate.Query getNamedSQLQuery(String name)
getNamedSQLQuery
in interface org.hibernate.engine.SessionImplementor
public boolean isEventSource()
isEventSource
in interface org.hibernate.engine.SessionImplementor
public void afterScrollOperation()
afterScrollOperation
in interface org.hibernate.engine.SessionImplementor
public void setFetchProfile(String name)
setFetchProfile
in interface org.hibernate.engine.SessionImplementor
public String getFetchProfile()
getFetchProfile
in interface org.hibernate.engine.SessionImplementor
public org.hibernate.jdbc.JDBCContext getJDBCContext()
getJDBCContext
in interface org.hibernate.engine.SessionImplementor
public boolean isClosed()
isClosed
in interface org.hibernate.engine.SessionImplementor
public org.hibernate.Session getSession(org.hibernate.EntityMode entityMode)
getSession
in interface org.hibernate.Session
public org.hibernate.SessionFactory getSessionFactory()
getSessionFactory
in interface org.hibernate.Session
public org.hibernate.stat.SessionStatistics getStatistics()
getStatistics
in interface org.hibernate.Session
public org.hibernate.Transaction getTransaction()
getTransaction
in interface org.hibernate.Session
public boolean isConnected()
isConnected
in interface org.hibernate.engine.SessionImplementor
isConnected
in interface org.hibernate.Session
public boolean isDirty() throws org.hibernate.HibernateException
isDirty
in interface org.hibernate.Session
org.hibernate.HibernateException
public boolean isOpen()
isOpen
in interface org.hibernate.engine.SessionImplementor
isOpen
in interface org.hibernate.Session
public Object load(String entityName, Serializable id) throws org.hibernate.HibernateException
load
in interface org.hibernate.Session
org.hibernate.HibernateException
public Object load(String entityName, Serializable id, org.hibernate.LockMode lockMode) throws org.hibernate.HibernateException
load
in interface org.hibernate.Session
org.hibernate.HibernateException
public void load(Object object, Serializable id) throws org.hibernate.HibernateException
load
in interface org.hibernate.Session
org.hibernate.HibernateException
public Object load(Class theClass, Serializable id) throws org.hibernate.HibernateException
load
in interface org.hibernate.Session
org.hibernate.HibernateException
public Object load(Class theClass, Serializable id, org.hibernate.LockMode lockMode) throws org.hibernate.HibernateException
load
in interface org.hibernate.Session
org.hibernate.HibernateException
public void lock(String entityName, Object object, org.hibernate.LockMode lockMode) throws org.hibernate.HibernateException
lock
in interface org.hibernate.Session
org.hibernate.HibernateException
public void lock(Object object, org.hibernate.LockMode lockMode) throws org.hibernate.HibernateException
lock
in interface org.hibernate.Session
org.hibernate.HibernateException
public Object merge(String entityName, Object object) throws org.hibernate.HibernateException
merge
in interface org.hibernate.Session
org.hibernate.HibernateException
public Object merge(Object object) throws org.hibernate.HibernateException
merge
in interface org.hibernate.Session
org.hibernate.HibernateException
public void persist(String entityName, Object object) throws org.hibernate.HibernateException
persist
in interface org.hibernate.Session
org.hibernate.HibernateException
public void persist(Object object) throws org.hibernate.HibernateException
persist
in interface org.hibernate.Session
org.hibernate.HibernateException
public void reconnect() throws org.hibernate.HibernateException
reconnect
in interface org.hibernate.Session
org.hibernate.HibernateException
public void reconnect(Connection connection) throws org.hibernate.HibernateException
reconnect
in interface org.hibernate.Session
org.hibernate.HibernateException
public void refresh(Object object) throws org.hibernate.HibernateException
refresh
in interface org.hibernate.Session
org.hibernate.HibernateException
public void refresh(Object object, org.hibernate.LockMode lockMode) throws org.hibernate.HibernateException
refresh
in interface org.hibernate.Session
org.hibernate.HibernateException
public void replicate(String entityName, Object object, org.hibernate.ReplicationMode replicationMode) throws org.hibernate.HibernateException
replicate
in interface org.hibernate.Session
org.hibernate.HibernateException
public void replicate(Object object, org.hibernate.ReplicationMode replicationMode) throws org.hibernate.HibernateException
replicate
in interface org.hibernate.Session
org.hibernate.HibernateException
public Serializable save(String entityName, Object object) throws org.hibernate.HibernateException
save
in interface org.hibernate.Session
org.hibernate.HibernateException
public Serializable save(Object object) throws org.hibernate.HibernateException
save
in interface org.hibernate.Session
org.hibernate.HibernateException
public void saveOrUpdate(String entityName, Object object) throws org.hibernate.HibernateException
saveOrUpdate
in interface org.hibernate.Session
org.hibernate.HibernateException
public void saveOrUpdate(Object object) throws org.hibernate.HibernateException
saveOrUpdate
in interface org.hibernate.Session
org.hibernate.HibernateException
public void setCacheMode(org.hibernate.CacheMode cacheMode)
setCacheMode
in interface org.hibernate.engine.SessionImplementor
setCacheMode
in interface org.hibernate.Session
public void setFlushMode(org.hibernate.FlushMode flushMode)
setFlushMode
in interface org.hibernate.engine.SessionImplementor
setFlushMode
in interface org.hibernate.Session
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.Session
org.hibernate.HibernateException
public void update(String entityName, Object object) throws org.hibernate.HibernateException
update
in interface org.hibernate.Session
org.hibernate.HibernateException
public void update(Object object) throws org.hibernate.HibernateException
update
in interface org.hibernate.Session
org.hibernate.HibernateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |