public class FullTextSessionImpl extends Object implements FullTextSession, org.hibernate.engine.spi.SessionImplementor
| Constructor and Description |
|---|
FullTextSessionImpl(org.hibernate.Session session) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventListeners(org.hibernate.SessionEventListener... listeners) |
void |
afterScrollOperation() |
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() |
<T> T |
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) |
<T> T |
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.SessionEventListenerManager |
getEventListenerManager() |
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.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) |
<T> void |
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) |
<T> void |
purge(Class<T> entityType,
Serializable id)
Remove the entity with the type
entityType and the identifier id from the index. |
<T> void |
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) |
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()
FullTextSessionflushToIndexes in interface FullTextSessionpublic <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 typespublic SearchFactory getSearchFactory()
getSearchFactory in interface FullTextSessionSearchFactory instance.public String getTenantIdentifier()
getTenantIdentifier in interface org.hibernate.engine.spi.SessionImplementorgetTenantIdentifier in interface org.hibernate.SharedSessionContractpublic org.hibernate.Transaction beginTransaction()
beginTransaction in interface org.hibernate.SharedSessionContractpublic void cancelQuery()
cancelQuery in interface org.hibernate.Sessionpublic void clear()
clear in interface org.hibernate.Sessionpublic Connection close()
close in interface org.hibernate.Sessionpublic boolean contains(Object object)
contains in interface org.hibernate.Sessionpublic org.hibernate.Criteria createCriteria(String entityName)
createCriteria in interface org.hibernate.SharedSessionContractpublic 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.SharedSessionContractpublic org.hibernate.Criteria createCriteria(Class persistentClass, String alias)
createCriteria in interface org.hibernate.SharedSessionContractpublic org.hibernate.Query createFilter(Object collection, String queryString)
createFilter in interface org.hibernate.Sessionpublic org.hibernate.Query createQuery(String queryString)
createQuery in interface org.hibernate.SharedSessionContractpublic org.hibernate.SQLQuery createSQLQuery(String queryString)
createSQLQuery in interface org.hibernate.SharedSessionContractpublic void delete(String entityName, Object object)
delete in interface org.hibernate.Sessionpublic void delete(Object object)
delete in interface org.hibernate.Sessionpublic void disableFilter(String filterName)
disableFilter in interface org.hibernate.Sessionpublic Connection disconnect()
disconnect in interface org.hibernate.Sessionpublic org.hibernate.Filter enableFilter(String filterName)
enableFilter in interface org.hibernate.Sessionpublic void evict(Object object)
evict in interface org.hibernate.Sessionpublic FullTextSharedSessionBuilder sessionWithOptions()
FullTextSessionsessionWithOptions in interface FullTextSessionsessionWithOptions in interface org.hibernate.Sessionpublic void flush()
flush in interface org.hibernate.engine.spi.SessionImplementorflush in interface org.hibernate.Sessionpublic Object get(Class clazz, Serializable id)
get in interface org.hibernate.Sessionpublic Object get(Class clazz, Serializable id, org.hibernate.LockMode lockMode)
get in interface org.hibernate.Sessionpublic Object get(Class clazz, Serializable id, org.hibernate.LockOptions lockOptions)
get in interface org.hibernate.Sessionpublic Object get(String entityName, Serializable id)
get in interface org.hibernate.Sessionpublic Object get(String entityName, Serializable id, org.hibernate.LockMode lockMode)
get in interface org.hibernate.Sessionpublic Object get(String entityName, Serializable id, org.hibernate.LockOptions lockOptions)
get in interface org.hibernate.Sessionpublic org.hibernate.CacheMode getCacheMode()
getCacheMode in interface org.hibernate.engine.spi.SessionImplementorgetCacheMode in interface org.hibernate.Sessionpublic org.hibernate.LockMode getCurrentLockMode(Object object)
getCurrentLockMode in interface org.hibernate.Sessionpublic 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.SessionImplementorpublic org.hibernate.engine.spi.EntityKey generateEntityKey(Serializable id, org.hibernate.persister.entity.EntityPersister persister)
generateEntityKey in interface org.hibernate.engine.spi.SessionImplementorpublic 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.SessionImplementorpublic void initializeCollection(org.hibernate.collection.spi.PersistentCollection collection,
boolean writing)
initializeCollection in interface org.hibernate.engine.spi.SessionImplementorpublic Object internalLoad(String entityName, Serializable id, boolean eager, boolean nullable)
internalLoad in interface org.hibernate.engine.spi.SessionImplementorpublic Object immediateLoad(String entityName, Serializable id)
immediateLoad in interface org.hibernate.engine.spi.SessionImplementorpublic long getTimestamp()
getTimestamp in interface org.hibernate.engine.spi.SessionImplementorpublic org.hibernate.engine.spi.SessionFactoryImplementor getFactory()
getFactory in interface org.hibernate.engine.spi.SessionImplementorpublic List list(String query, org.hibernate.engine.spi.QueryParameters queryParameters)
list in interface org.hibernate.engine.spi.SessionImplementorpublic Iterator iterate(String query, org.hibernate.engine.spi.QueryParameters queryParameters)
iterate in interface org.hibernate.engine.spi.SessionImplementorpublic org.hibernate.ScrollableResults scroll(String query, org.hibernate.engine.spi.QueryParameters queryParameters)
scroll in interface org.hibernate.engine.spi.SessionImplementorpublic 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.SessionImplementorpublic List listFilter(Object collection, String filter, org.hibernate.engine.spi.QueryParameters queryParameters)
listFilter in interface org.hibernate.engine.spi.SessionImplementorpublic Iterator iterateFilter(Object collection, String filter, org.hibernate.engine.spi.QueryParameters queryParameters)
iterateFilter in interface org.hibernate.engine.spi.SessionImplementorpublic org.hibernate.persister.entity.EntityPersister getEntityPersister(String entityName, Object object)
getEntityPersister in interface org.hibernate.engine.spi.SessionImplementorpublic Object getEntityUsingInterceptor(org.hibernate.engine.spi.EntityKey key)
getEntityUsingInterceptor in interface org.hibernate.engine.spi.SessionImplementorpublic Serializable getContextEntityIdentifier(Object object)
getContextEntityIdentifier in interface org.hibernate.engine.spi.SessionImplementorpublic String bestGuessEntityName(Object object)
bestGuessEntityName in interface org.hibernate.engine.spi.SessionImplementorpublic String guessEntityName(Object entity)
guessEntityName in interface org.hibernate.engine.spi.SessionImplementorpublic Object instantiate(String entityName, Serializable id)
instantiate in interface org.hibernate.engine.spi.SessionImplementorpublic List listCustomQuery(org.hibernate.loader.custom.CustomQuery customQuery, org.hibernate.engine.spi.QueryParameters queryParameters)
listCustomQuery in interface org.hibernate.engine.spi.SessionImplementorpublic org.hibernate.ScrollableResults scrollCustomQuery(org.hibernate.loader.custom.CustomQuery customQuery,
org.hibernate.engine.spi.QueryParameters queryParameters)
scrollCustomQuery in interface org.hibernate.engine.spi.SessionImplementorpublic List list(org.hibernate.engine.query.spi.sql.NativeSQLQuerySpecification spec, org.hibernate.engine.spi.QueryParameters queryParameters)
list in interface org.hibernate.engine.spi.SessionImplementorpublic org.hibernate.ScrollableResults scroll(org.hibernate.engine.query.spi.sql.NativeSQLQuerySpecification spec,
org.hibernate.engine.spi.QueryParameters queryParameters)
scroll in interface org.hibernate.engine.spi.SessionImplementorpublic 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.SessionImplementorpublic int executeUpdate(String query, org.hibernate.engine.spi.QueryParameters queryParameters)
executeUpdate in interface org.hibernate.engine.spi.SessionImplementorpublic int executeNativeUpdate(org.hibernate.engine.query.spi.sql.NativeSQLQuerySpecification specification,
org.hibernate.engine.spi.QueryParameters queryParameters)
executeNativeUpdate in interface org.hibernate.engine.spi.SessionImplementorpublic String getEntityName(Object object)
getEntityName in interface org.hibernate.Sessionpublic org.hibernate.FlushMode getFlushMode()
getFlushMode in interface org.hibernate.engine.spi.SessionImplementorgetFlushMode in interface org.hibernate.Sessionpublic Serializable getIdentifier(Object object)
getIdentifier in interface org.hibernate.Sessionpublic org.hibernate.Query getNamedQuery(String queryName)
getNamedQuery in interface org.hibernate.engine.spi.SessionImplementorgetNamedQuery in interface org.hibernate.SharedSessionContractpublic 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.Sessionpublic boolean isDirty()
isDirty in interface org.hibernate.Sessionpublic boolean isDefaultReadOnly()
isDefaultReadOnly in interface org.hibernate.Sessionpublic boolean isOpen()
isOpen in interface org.hibernate.engine.spi.SessionImplementorisOpen in interface org.hibernate.Sessionpublic Object load(String entityName, Serializable id)
load in interface org.hibernate.Sessionpublic Object load(String entityName, Serializable id, org.hibernate.LockMode lockMode)
load in interface org.hibernate.Sessionpublic Object load(String entityName, Serializable id, org.hibernate.LockOptions lockOptions)
load in interface org.hibernate.Sessionpublic void load(Object object, Serializable id)
load in interface org.hibernate.Sessionpublic Object load(Class theClass, Serializable id)
load in interface org.hibernate.Sessionpublic Object load(Class theClass, Serializable id, org.hibernate.LockMode lockMode)
load in interface org.hibernate.Sessionpublic Object load(Class theClass, Serializable id, org.hibernate.LockOptions lockOptions)
load in interface org.hibernate.Sessionpublic void lock(String entityName, Object object, org.hibernate.LockMode lockMode)
lock in interface org.hibernate.Sessionpublic org.hibernate.Session.LockRequest buildLockRequest(org.hibernate.LockOptions lockOptions)
buildLockRequest in interface org.hibernate.Sessionpublic void lock(Object object, org.hibernate.LockMode lockMode)
lock in interface org.hibernate.Sessionpublic Object merge(String entityName, Object object)
merge in interface org.hibernate.Sessionpublic void persist(String entityName, Object object)
persist in interface org.hibernate.Sessionpublic void persist(Object object)
persist in interface org.hibernate.Sessionpublic void reconnect(Connection connection)
reconnect in interface org.hibernate.Sessionpublic void refresh(Object object)
refresh in interface org.hibernate.Sessionpublic void refresh(String entityName, Object object)
refresh in interface org.hibernate.Sessionpublic void refresh(Object object, org.hibernate.LockMode lockMode)
refresh in interface org.hibernate.Sessionpublic void refresh(Object object, org.hibernate.LockOptions lockOptions)
refresh in interface org.hibernate.Sessionpublic void refresh(String entityName, Object object, org.hibernate.LockOptions lockOptions)
refresh in interface org.hibernate.Sessionpublic void replicate(String entityName, Object object, org.hibernate.ReplicationMode replicationMode)
replicate in interface org.hibernate.Sessionpublic void replicate(Object object, org.hibernate.ReplicationMode replicationMode)
replicate in interface org.hibernate.Sessionpublic Serializable save(String entityName, Object object)
save in interface org.hibernate.Sessionpublic Serializable save(Object object)
save in interface org.hibernate.Sessionpublic void saveOrUpdate(String entityName, Object object)
saveOrUpdate in interface org.hibernate.Sessionpublic void saveOrUpdate(Object object)
saveOrUpdate in interface org.hibernate.Sessionpublic 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.SessionImplementorpublic void setReadOnly(Object entity, boolean readOnly)
setReadOnly in interface org.hibernate.Sessionpublic void doWork(org.hibernate.jdbc.Work work)
doWork in interface org.hibernate.Sessionpublic <T> T doReturningWork(org.hibernate.jdbc.ReturningWork<T> work)
doReturningWork in interface org.hibernate.Sessionpublic void update(String entityName, Object object)
update in interface org.hibernate.Sessionpublic void update(Object object)
update in interface org.hibernate.Sessionpublic boolean isFetchProfileEnabled(String name)
isFetchProfileEnabled in interface org.hibernate.Sessionpublic void enableFetchProfile(String name)
enableFetchProfile in interface org.hibernate.Sessionpublic void disableFetchProfile(String name)
disableFetchProfile in interface org.hibernate.Sessionpublic 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.Sessionpublic void addEventListeners(org.hibernate.SessionEventListener... listeners)
addEventListeners in interface org.hibernate.Sessionpublic org.hibernate.engine.spi.SessionEventListenerManager getEventListenerManager()
getEventListenerManager in interface org.hibernate.engine.spi.SessionImplementorCopyright © 2006–2013 Hibernate. All rights reserved.