public class ReactiveStatelessSessionImpl extends StatelessSessionImpl implements ReactiveStatelessSession
ReactiveStatelessSession
implemented by extension of the StatelessSessionImpl
in Hibernate core. Extension was preferred to delegation because there are places where Hibernate core compares the identity of session instances.Constructor and Description |
---|
ReactiveStatelessSessionImpl(SessionFactoryImpl factory, SessionCreationOptions options, ReactiveConnection proxyConnection) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isOpen
getFactory
public ReactiveStatelessSessionImpl(SessionFactoryImpl factory, SessionCreationOptions options, ReactiveConnection proxyConnection)
public PersistenceContext getPersistenceContext()
public Dialect getDialect()
getDialect
in interface ReactiveQueryExecutor
public SharedSessionContractImplementor getSharedContract()
getSharedContract
in interface ReactiveQueryExecutor
public PersistenceContext getPersistenceContextInternal()
public ReactiveConnection getReactiveConnection()
ReactiveConnectionSupplier
ReactiveConnection
that is associated with the current session.getReactiveConnection
in interface ReactiveConnectionSupplier
public void checkTransactionNeededForUpdateOperation(String exceptionMessage)
public <T> CompletionStage<T> reactiveGet(Class<T> entityClass, Object id)
reactiveGet
in interface ReactiveStatelessSession
public <T> CompletionStage<T> reactiveGet(Class<T> entityClass, Object id, LockMode lockMode)
reactiveGet
in interface ReactiveStatelessSession
public ReactiveEntityPersister getEntityPersister(String entityName, Object object) throws HibernateException
HibernateException
public CompletionStage<Void> reactiveInsert(Object entity)
reactiveInsert
in interface ReactiveStatelessSession
public CompletionStage<Void> reactiveDelete(Object entity)
reactiveDelete
in interface ReactiveStatelessSession
public CompletionStage<Void> reactiveUpdate(Object entity)
reactiveUpdate
in interface ReactiveStatelessSession
public CompletionStage<Void> reactiveRefresh(Object entity)
reactiveRefresh
in interface ReactiveStatelessSession
public CompletionStage<Void> reactiveRefresh(Object entity, LockMode lockMode)
reactiveRefresh
in interface ReactiveStatelessSession
public <R> ReactiveQueryImpl<R> createReactiveQuery(String queryString)
createReactiveQuery
in interface ReactiveStatelessSession
public <R> ReactiveQuery<R> createReactiveQuery(String queryString, Class<R> resultType)
createReactiveQuery
in interface ReactiveStatelessSession
public <T> ReactiveNativeQuery<T> createReactiveNativeQuery(String sqlString)
createReactiveNativeQuery
in interface ReactiveStatelessSession
public <T> ReactiveNativeQuery<T> createReactiveNativeQuery(String sqlString, Class<T> resultClass)
createReactiveNativeQuery
in interface ReactiveStatelessSession
public <T> ReactiveNativeQuery<T> createReactiveNativeQuery(String sqlString, String resultSetMapping)
createReactiveNativeQuery
in interface ReactiveStatelessSession
public <T> CompletionStage<List<T>> reactiveList(String query, QueryParameters parameters)
reactiveList
in interface ReactiveQueryExecutor
public <T> CompletionStage<List<T>> reactiveList(NativeSQLQuerySpecification spec, QueryParameters parameters)
reactiveList
in interface ReactiveQueryExecutor
protected ReactiveHQLQueryPlan getQueryPlan(String query, boolean shallow) throws HibernateException
HibernateException
public CompletionStage<Integer> executeReactiveUpdate(String query, QueryParameters parameters)
executeReactiveUpdate
in interface ReactiveQueryExecutor
public CompletionStage<Integer> executeReactiveUpdate(NativeSQLQuerySpecification specification, QueryParameters parameters)
executeReactiveUpdate
in interface ReactiveQueryExecutor
public void addBulkCleanupAction(BulkOperationCleanupAction action)
addBulkCleanupAction
in interface ReactiveQueryExecutor
public List<?> listCustomQuery(CustomQuery customQuery, QueryParameters queryParameters)
public <T> ResultSetMapping<T> getResultSetMapping(Class<T> resultType, String mappingName)
getResultSetMapping
in interface ReactiveQueryExecutor
public void close()
close
in interface ReactiveStatelessSession