类 StatelessSessionImpl
- java.lang.Object
-
- org.hibernate.internal.AbstractSharedSessionContract
-
- org.hibernate.internal.StatelessSessionImpl
-
- 所有已实现的接口:
Closeable,Serializable,AutoCloseable,LobCreationContext,SharedSessionContractImplementor,QueryProducer,QueryProducerImplementor,JdbcSessionOwner,TransactionCoordinatorBuilder.Options,SharedSessionContract,StatelessSession,WrapperOptions
public class StatelessSessionImpl extends AbstractSharedSessionContract implements StatelessSession
- 作者:
- Gavin King, Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 org.hibernate.engine.jdbc.LobCreationContext
LobCreationContext.Callback<T>
-
-
字段概要
-
从类继承的字段 org.hibernate.internal.AbstractSharedSessionContract
closed, fastSessionServices, waitingForAutoClose
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidafterOperation(boolean success)voidafterScrollOperation()voidafterTransactionBegin()A after-begin callback from the coordinator to its owner.voidafterTransactionCompletion(boolean successful, boolean delayed)An after-completion callback to the owner.voidbeforeTransactionCompletion()A before-completion callback to the owner.StringbestGuessEntityName(Object object)The best guess entity name for an entity not in an associationConnectionconnection()Returns the current JDBC connection associated with this instance.
If the session is using aggressive connection release (as in a CMT environment), it is the application's responsibility to close the connection returned by this call.CriteriacreateCriteria(Class persistentClass)CreateCriteriainstance for the given class (entity or subclasses/implementors).CriteriacreateCriteria(Class persistentClass, String alias)CreateCriteriainstance for the given class (entity or subclasses/implementors), using a specific alias.CriteriacreateCriteria(String entityName)CreateCriteriainstance for the given entity name.CriteriacreateCriteria(String entityName, String alias)CreateCriteriainstance for the given entity name, using a specific alias.voiddelete(Object entity)Delete a row.voiddelete(String entityName, Object entity)Delete a row.intexecuteNativeUpdate(NativeSQLQuerySpecification nativeSQLQuerySpecification, QueryParameters queryParameters)Execute a native SQL update or delete queryintexecuteUpdate(String query, QueryParameters queryParameters)Execute a HQL update or delete queryvoidflush()voidflushBeforeTransactionCompletion()Objectget(Class entityClass, Serializable id)Retrieve a row.Objectget(Class entityClass, Serializable id, LockMode lockMode)Retrieve a row, obtaining the specified lock mode.Objectget(String entityName, Serializable id)Retrieve a row.Objectget(String entityName, Serializable id, LockMode lockMode)Retrieve a row, obtaining the specified lock mode.CacheModegetCacheMode()SerializablegetContextEntityIdentifier(Object object)Return the identifier of the persistent object, or null if not associated with the sessionintgetDontFlushFromFind()EntityModegetEntityMode()EntityPersistergetEntityPersister(String entityName, Object object)Get the EntityPersister for any instanceObjectgetEntityUsingInterceptor(EntityKey key)Get the entity instance associated with the given Key, calling the Interceptor if necessaryLoadQueryInfluencersgetLoadQueryInfluencers()Get the load query influencers associated with this session.PersistenceContextgetPersistenceContext()Get the persistence context for this session.PersistenceContextgetPersistenceContextInternal()This is similar toSharedSessionContractImplementor.getPersistenceContext(), with two main differences: a) this version performs better as it allows for inlining and probably better prediction b) see SessionImplSharedSessionContractImplementor.getPersistenceContext(): it does some checks on the current state of the Session.StringguessEntityName(Object entity)The guessed entity name for an entity not in an associationObjectimmediateLoad(String entityName, Serializable id)Load an instance immediately.voidinitializeCollection(PersistentCollection collection, boolean writing)Initialize the collection (if not already initialized)Serializableinsert(Object entity)Insert a row.Serializableinsert(String entityName, Object entity)Insert a row.Objectinstantiate(String entityName, Serializable id)Instantiate the entity class, initializing with the given identifierObjectinternalLoad(String entityName, Serializable id, boolean eager, boolean nullable)Load an instance without checking if it was deleted.booleanisAutoCloseSessionEnabled()booleanisDefaultReadOnly()booleanisEventSource()booleanisTransactionInProgress()Does this Session have an active Hibernate transaction or is there a JTA transaction in progress?Iteratoriterate(String query, QueryParameters queryParameters)Execute an iterate() queryIteratoriterateFilter(Object collection, String filter, QueryParameters queryParameters)Iterate a filterListlist(String query, QueryParameters queryParameters)Execute a find() queryListlist(Criteria criteria)Execute a criteria queryListlistCustomQuery(CustomQuery customQuery, QueryParameters queryParameters)Execute an SQL QueryListlistFilter(Object collection, String filter, QueryParameters queryParameters)Execute a filterprotected Objectload(String entityName, Serializable identifier)voidrefresh(Object entity)Refresh the entity instance state from the database.voidrefresh(Object entity, LockMode lockMode)Refresh the entity instance state from the database.voidrefresh(String entityName, Object entity)Refresh the entity instance state from the database.voidrefresh(String entityName, Object entity, LockMode lockMode)Refresh the entity instance state from the database.ScrollableResultsImplementorscroll(String query, QueryParameters queryParameters)Execute a scroll() queryScrollableResultsImplementorscroll(Criteria criteria, ScrollMode scrollMode)Execute a criteria queryScrollableResultsImplementorscrollCustomQuery(CustomQuery customQuery, QueryParameters queryParameters)Execute an SQL QueryvoidsetAutoClear(boolean enabled)Enable/disable automatic cache clearing from after transaction completion (for EJB3)voidsetCacheMode(CacheMode cm)voidsetDefaultReadOnly(boolean readOnly)voidsetFlushMode(FlushMode fm)Set the flush mode for this session.voidsetHibernateFlushMode(FlushMode flushMode)Set the flush mode for this session.booleanshouldAutoClose()booleanshouldAutoJoinTransaction()Indicates whether an active transaction should be automatically joined.voidupdate(Object entity)Update a row.voidupdate(String entityName, Object entity)Update a row.-
从类继承的方法 org.hibernate.internal.AbstractSharedSessionContract
accessTransaction, addSharedSessionTransactionObserver, applyQuerySettingsAndHints, beginTransaction, buildQueryFromName, checkOpen, checkOpenOrWaitingForAutoClose, checkTransactionNeededForUpdateOperation, checkTransactionSynchStatus, cleanupOnClose, close, createNamedQuery, createNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, createQuery, createQuery, createQuery, createQuery, createQuery, createQuery, createQuery, createSQLQuery, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureCall, criteriaCompiler, delayedAfterCompletion, doReturningWork, doWork, errorIfClosed, execute, generateEntityKey, getCacheTransactionSynchronization, getCurrentTransaction, getEntityNameResolver, getEventListenerManager, getExceptionConverter, getFactory, getFlushMode, getHibernateFlushMode, getInterceptor, getJdbcBatchSize, getJdbcConnectionAccess, getJdbcCoordinator, getJdbcServices, getJdbcSessionContext, getJdbcTimeZone, getLobCreator, getNamedNativeQuery, getNamedProcedureCall, getNamedQuery, getNamedSQLQuery, getNativeQueryImplementor, getNativeQueryPlan, getQueryPlan, getSessionIdentifier, getTenantIdentifier, getTransaction, getTransactionCoordinator, getTransactionStartTimestamp, initQueryFromNamedDefinition, isClosed, isConnected, isOpen, isOpenOrWaitingForAutoClose, list, markForRollbackOnly, pulseTransactionCoordinator, remapSqlTypeDescriptor, removeSharedSessionTransactionObserver, resultClassChecking, resultClassChecking, scroll, setClosed, setJdbcBatchSize, shouldCloseJdbcCoordinatorOnClose, startTransactionBoundary, useStreamForLobBinding
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.query.QueryProducer
createQuery, createQuery, createQuery
-
从接口继承的方法 org.hibernate.SharedSessionContract
beginTransaction, createQuery, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureCall, doReturningWork, doWork, getJdbcBatchSize, getNamedProcedureCall, getNamedQuery, getTransaction, isConnected, isOpen, setJdbcBatchSize
-
从接口继承的方法 org.hibernate.engine.spi.SharedSessionContractImplementor
checkOpen, getConfiguredJdbcBatchSize, getFetchGraphLoadContext, getTimestamp, isQueryParametersValidationEnabled, setFetchGraphLoadContext
-
从接口继承的方法 org.hibernate.StatelessSession
close, createSQLQuery
-
-
-
-
方法详细资料
-
shouldAutoJoinTransaction
public boolean shouldAutoJoinTransaction()
从接口复制的说明:TransactionCoordinatorBuilder.OptionsIndicates whether an active transaction should be automatically joined. Only relevant for JTA-based TransactionCoordinator instances.- 指定者:
shouldAutoJoinTransaction在接口中TransactionCoordinatorBuilder.Options- 覆盖:
shouldAutoJoinTransaction在类中AbstractSharedSessionContract- 返回:
trueindicates the active transaction should be auto joined;falseindicates it should not (untilTransactionCoordinator.explicitJoin()is called).
-
insert
public Serializable insert(Object entity)
从接口复制的说明:StatelessSessionInsert a row.- 指定者:
insert在接口中StatelessSession- 参数:
entity- a new transient instance- 返回:
- The identifier of the inserted entity
-
insert
public Serializable insert(String entityName, Object entity)
从接口复制的说明:StatelessSessionInsert a row.- 指定者:
insert在接口中StatelessSession- 参数:
entityName- The entityName for the entity to be insertedentity- a new transient instance- 返回:
- the identifier of the instance
-
delete
public void delete(Object entity)
从接口复制的说明:StatelessSessionDelete a row.- 指定者:
delete在接口中StatelessSession- 参数:
entity- a detached entity instance
-
delete
public void delete(String entityName, Object entity)
从接口复制的说明:StatelessSessionDelete a row.- 指定者:
delete在接口中StatelessSession- 参数:
entityName- The entityName for the entity to be deletedentity- a detached entity instance
-
update
public void update(Object entity)
从接口复制的说明:StatelessSessionUpdate a row.- 指定者:
update在接口中StatelessSession- 参数:
entity- a detached entity instance
-
update
public void update(String entityName, Object entity)
从接口复制的说明:StatelessSessionUpdate a row.- 指定者:
update在接口中StatelessSession- 参数:
entityName- The entityName for the entity to be updatedentity- a detached entity instance
-
get
public Object get(Class entityClass, Serializable id)
从接口复制的说明:StatelessSessionRetrieve a row.- 指定者:
get在接口中StatelessSession- 参数:
entityClass- The class of the entity to retrieveid- The id of the entity to retrieve- 返回:
- a detached entity instance
-
get
public Object get(Class entityClass, Serializable id, LockMode lockMode)
从接口复制的说明:StatelessSessionRetrieve a row, obtaining the specified lock mode.- 指定者:
get在接口中StatelessSession- 参数:
entityClass- The class of the entity to retrieveid- The id of the entity to retrievelockMode- The lock mode to apply to the entity- 返回:
- a detached entity instance
-
get
public Object get(String entityName, Serializable id)
从接口复制的说明:StatelessSessionRetrieve a row.- 指定者:
get在接口中StatelessSession- 参数:
entityName- The name of the entity to retrieveid- The id of the entity to retrieve- 返回:
- a detached entity instance
-
get
public Object get(String entityName, Serializable id, LockMode lockMode)
从接口复制的说明:StatelessSessionRetrieve a row, obtaining the specified lock mode.- 指定者:
get在接口中StatelessSession- 参数:
entityName- The name of the entity to retrieveid- The id of the entity to retrievelockMode- The lock mode to apply to the entity- 返回:
- a detached entity instance
-
refresh
public void refresh(Object entity)
从接口复制的说明:StatelessSessionRefresh the entity instance state from the database.- 指定者:
refresh在接口中StatelessSession- 参数:
entity- The entity to be refreshed.
-
refresh
public void refresh(String entityName, Object entity)
从接口复制的说明:StatelessSessionRefresh the entity instance state from the database.- 指定者:
refresh在接口中StatelessSession- 参数:
entityName- The entityName for the entity to be refreshed.entity- The entity to be refreshed.
-
refresh
public void refresh(Object entity, LockMode lockMode)
从接口复制的说明:StatelessSessionRefresh the entity instance state from the database.- 指定者:
refresh在接口中StatelessSession- 参数:
entity- The entity to be refreshed.lockMode- The LockMode to be applied.
-
refresh
public void refresh(String entityName, Object entity, LockMode lockMode)
从接口复制的说明:StatelessSessionRefresh the entity instance state from the database.- 指定者:
refresh在接口中StatelessSession- 参数:
entityName- The entityName for the entity to be refreshed.entity- The entity to be refreshed.lockMode- The LockMode to be applied.
-
immediateLoad
public Object immediateLoad(String entityName, Serializable id) throws HibernateException
从接口复制的说明:SharedSessionContractImplementorLoad an instance immediately. This method is only called when lazily initializing a proxy. Do not return the proxy.- 指定者:
immediateLoad在接口中SharedSessionContractImplementor- 抛出:
HibernateException
-
initializeCollection
public void initializeCollection(PersistentCollection collection, boolean writing) throws HibernateException
从接口复制的说明:SharedSessionContractImplementorInitialize the collection (if not already initialized)
-
instantiate
public Object instantiate(String entityName, Serializable id) throws HibernateException
从接口复制的说明:SharedSessionContractImplementorInstantiate the entity class, initializing with the given identifier- 指定者:
instantiate在接口中SharedSessionContractImplementor- 抛出:
HibernateException
-
internalLoad
public Object internalLoad(String entityName, Serializable id, boolean eager, boolean nullable) throws HibernateException
从接口复制的说明:SharedSessionContractImplementorLoad an instance without checking if it was deleted. When nullable is disabled this method may create a new proxy or return an existing proxy; if it does not exist, throw an exception. When nullable is enabled, the method does not create new proxies (but might return an existing proxy); if it does not exist, return null. When eager is enabled, the object is eagerly fetched- 指定者:
internalLoad在接口中SharedSessionContractImplementor- 抛出:
HibernateException
-
iterate
public Iterator iterate(String query, QueryParameters queryParameters) throws HibernateException
从接口复制的说明:SharedSessionContractImplementorExecute an iterate() query- 指定者:
iterate在接口中SharedSessionContractImplementor- 抛出:
HibernateException
-
iterateFilter
public Iterator iterateFilter(Object collection, String filter, QueryParameters queryParameters) throws HibernateException
从接口复制的说明:SharedSessionContractImplementorIterate a filter- 指定者:
iterateFilter在接口中SharedSessionContractImplementor- 抛出:
HibernateException
-
listFilter
public List listFilter(Object collection, String filter, QueryParameters queryParameters) throws HibernateException
从接口复制的说明:SharedSessionContractImplementorExecute a filter- 指定者:
listFilter在接口中SharedSessionContractImplementor- 抛出:
HibernateException
-
isAutoCloseSessionEnabled
public boolean isAutoCloseSessionEnabled()
-
shouldAutoClose
public boolean shouldAutoClose()
-
bestGuessEntityName
public String bestGuessEntityName(Object object)
从接口复制的说明:SharedSessionContractImplementorThe best guess entity name for an entity not in an association
-
connection
public Connection connection()
从接口复制的说明:StatelessSessionReturns the current JDBC connection associated with this instance.
If the session is using aggressive connection release (as in a CMT environment), it is the application's responsibility to close the connection returned by this call. Otherwise, the application should not close the connection.- 指定者:
connection在接口中SharedSessionContractImplementor- 指定者:
connection在接口中StatelessSession- 返回:
- The connection associated with this stateless session
-
executeUpdate
public int executeUpdate(String query, QueryParameters queryParameters) throws HibernateException
从接口复制的说明:SharedSessionContractImplementorExecute a HQL update or delete query- 指定者:
executeUpdate在接口中SharedSessionContractImplementor- 抛出:
HibernateException
-
getCacheMode
public CacheMode getCacheMode()
- 指定者:
getCacheMode在接口中QueryProducerImplementor- 指定者:
getCacheMode在接口中SharedSessionContractImplementor- 覆盖:
getCacheMode在类中AbstractSharedSessionContract
-
setCacheMode
public void setCacheMode(CacheMode cm)
-
setFlushMode
public void setFlushMode(FlushMode fm)
从接口复制的说明:SharedSessionContractImplementorSet the flush mode for this session. The flush mode determines the points at which the session is flushed. Flushing is the process of synchronizing the underlying persistent store with persistable state held in memory. For a logically "read only" session, it is reasonable to set the session's flush mode toFlushMode.MANUALat the start of the session (in order to achieve some extra performance).- 指定者:
setFlushMode在接口中SharedSessionContractImplementor- 覆盖:
setFlushMode在类中AbstractSharedSessionContract- 参数:
fm- the new flush mode
-
setHibernateFlushMode
public void setHibernateFlushMode(FlushMode flushMode)
从接口复制的说明:SharedSessionContractImplementorSet the flush mode for this session. The flush mode determines the points at which the session is flushed. Flushing is the process of synchronizing the underlying persistent store with persistable state held in memory. For a logically "read only" session, it is reasonable to set the session's flush mode toFlushMode.MANUALat the start of the session (in order to achieve some extra performance).- 指定者:
setHibernateFlushMode在接口中SharedSessionContractImplementor- 覆盖:
setHibernateFlushMode在类中AbstractSharedSessionContract- 参数:
flushMode- the new flush mode
-
getDontFlushFromFind
public int getDontFlushFromFind()
-
getContextEntityIdentifier
public Serializable getContextEntityIdentifier(Object object)
从接口复制的说明:SharedSessionContractImplementorReturn the identifier of the persistent object, or null if not associated with the session
-
getEntityMode
public EntityMode getEntityMode()
-
guessEntityName
public String guessEntityName(Object entity) throws HibernateException
从接口复制的说明:SharedSessionContractImplementorThe guessed entity name for an entity not in an association
-
getEntityPersister
public EntityPersister getEntityPersister(String entityName, Object object) throws HibernateException
从接口复制的说明:SharedSessionContractImplementorGet the EntityPersister for any instance- 指定者:
getEntityPersister在接口中SharedSessionContractImplementor- 参数:
entityName- optional entity nameobject- the entity instance- 抛出:
HibernateException
-
getEntityUsingInterceptor
public Object getEntityUsingInterceptor(EntityKey key) throws HibernateException
从接口复制的说明:SharedSessionContractImplementorGet the entity instance associated with the given Key, calling the Interceptor if necessary
-
getPersistenceContext
public PersistenceContext getPersistenceContext()
从接口复制的说明:SharedSessionContractImplementorGet the persistence context for this session. See alsoSharedSessionContractImplementor.getPersistenceContextInternal()for an alternative. This method is not extremely fast: if you need to access the PersistenceContext multiple times, prefer keeping a reference to it over invoking this method multiple times.
-
setAutoClear
public void setAutoClear(boolean enabled)
从接口复制的说明:SharedSessionContractImplementorEnable/disable automatic cache clearing from after transaction completion (for EJB3)- 指定者:
setAutoClear在接口中SharedSessionContractImplementor
-
load
protected Object load(String entityName, Serializable identifier)
- 指定者:
load在类中AbstractSharedSessionContract
-
isEventSource
public boolean isEventSource()
-
isDefaultReadOnly
public boolean isDefaultReadOnly()
-
setDefaultReadOnly
public void setDefaultReadOnly(boolean readOnly) throws HibernateException
-
list
public List list(String query, QueryParameters queryParameters) throws HibernateException
从接口复制的说明:SharedSessionContractImplementorExecute a find() query- 指定者:
list在接口中SharedSessionContractImplementor- 抛出:
HibernateException
-
afterOperation
public void afterOperation(boolean success)
-
createCriteria
public Criteria createCriteria(Class persistentClass, String alias)
从接口复制的说明:SharedSessionContractCreateCriteriainstance for the given class (entity or subclasses/implementors), using a specific alias.- 指定者:
createCriteria在接口中SharedSessionContract- 参数:
persistentClass- The class, which is an entity, or has entity subclasses/implementorsalias- The alias to use- 返回:
- The criteria instance for manipulation and execution
-
createCriteria
public Criteria createCriteria(String entityName, String alias)
从接口复制的说明:SharedSessionContractCreateCriteriainstance for the given entity name, using a specific alias.- 指定者:
createCriteria在接口中SharedSessionContract- 参数:
entityName- The entity namealias- The alias to use- 返回:
- The criteria instance for manipulation and execution
-
createCriteria
public Criteria createCriteria(Class persistentClass)
从接口复制的说明:SharedSessionContractCreateCriteriainstance for the given class (entity or subclasses/implementors).- 指定者:
createCriteria在接口中SharedSessionContract- 参数:
persistentClass- The class, which is an entity, or has entity subclasses/implementors- 返回:
- The criteria instance for manipulation and execution
-
createCriteria
public Criteria createCriteria(String entityName)
从接口复制的说明:SharedSessionContractCreateCriteriainstance for the given entity name.- 指定者:
createCriteria在接口中SharedSessionContract- 参数:
entityName- The entity name- 返回:
- The criteria instance for manipulation and execution
-
scroll
public ScrollableResultsImplementor scroll(Criteria criteria, ScrollMode scrollMode)
从接口复制的说明:SharedSessionContractImplementorExecute a criteria query- 指定者:
scroll在接口中SharedSessionContractImplementor
-
list
public List list(Criteria criteria) throws HibernateException
从接口复制的说明:SharedSessionContractImplementorExecute a criteria query- 指定者:
list在接口中SharedSessionContractImplementor- 抛出:
HibernateException
-
listCustomQuery
public List listCustomQuery(CustomQuery customQuery, QueryParameters queryParameters) throws HibernateException
从接口复制的说明:SharedSessionContractImplementorExecute an SQL Query
-
scrollCustomQuery
public ScrollableResultsImplementor scrollCustomQuery(CustomQuery customQuery, QueryParameters queryParameters) throws HibernateException
从接口复制的说明:SharedSessionContractImplementorExecute an SQL Query
-
scroll
public ScrollableResultsImplementor scroll(String query, QueryParameters queryParameters) throws HibernateException
从接口复制的说明:SharedSessionContractImplementorExecute a scroll() query- 指定者:
scroll在接口中SharedSessionContractImplementor- 抛出:
HibernateException
-
afterScrollOperation
public void afterScrollOperation()
-
flush
public void flush()
- 指定者:
flush在接口中SharedSessionContractImplementor
-
getLoadQueryInfluencers
public LoadQueryInfluencers getLoadQueryInfluencers()
从接口复制的说明:SharedSessionContractImplementorGet the load query influencers associated with this session.- 指定者:
getLoadQueryInfluencers在接口中SharedSessionContractImplementor- 返回:
- the load query influencers associated with this session; should never be null.
-
getPersistenceContextInternal
public PersistenceContext getPersistenceContextInternal()
从接口复制的说明:SharedSessionContractImplementorThis is similar toSharedSessionContractImplementor.getPersistenceContext(), with two main differences: a) this version performs better as it allows for inlining and probably better prediction b) see SessionImplSharedSessionContractImplementor.getPersistenceContext(): it does some checks on the current state of the Session. Choose wisely: performance is important, correctness comes first.- 指定者:
getPersistenceContextInternal在接口中SharedSessionContractImplementor- 返回:
- the PersistenceContext associated to this session.
-
executeNativeUpdate
public int executeNativeUpdate(NativeSQLQuerySpecification nativeSQLQuerySpecification, QueryParameters queryParameters) throws HibernateException
从接口复制的说明:SharedSessionContractImplementorExecute a native SQL update or delete query
-
afterTransactionBegin
public void afterTransactionBegin()
从接口复制的说明:JdbcSessionOwnerA after-begin callback from the coordinator to its owner.- 指定者:
afterTransactionBegin在接口中JdbcSessionOwner
-
beforeTransactionCompletion
public void beforeTransactionCompletion()
从接口复制的说明:JdbcSessionOwnerA before-completion callback to the owner.
-
afterTransactionCompletion
public void afterTransactionCompletion(boolean successful, boolean delayed)从接口复制的说明:JdbcSessionOwnerAn after-completion callback to the owner.- 指定者:
afterTransactionCompletion在接口中JdbcSessionOwner- 覆盖:
afterTransactionCompletion在类中AbstractSharedSessionContract- 参数:
successful- Was the transaction successful?delayed- Is this a delayed after transaction completion call (aka after a timeout)?
-
isTransactionInProgress
public boolean isTransactionInProgress()
从接口复制的说明:SharedSessionContractImplementorDoes this Session have an active Hibernate transaction or is there a JTA transaction in progress?
-
flushBeforeTransactionCompletion
public void flushBeforeTransactionCompletion()
-
-