Skip to content

Commit cbd5c69

Browse files
committed
[hibernate#950] Minor fixes to the javadoc
1 parent c16b9ec commit cbd5c69

File tree

2 files changed

+67
-3
lines changed

2 files changed

+67
-3
lines changed

hibernate-reactive-core/src/main/java/org/hibernate/reactive/mutiny/Mutiny.java

+35-3
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,7 @@ interface StatelessSession extends Closeable {
13941394
*
13951395
* @param association a lazy-loaded association
13961396
*
1397-
* @return the fetched association, via a {@code CompletionStage}
1397+
* @return the fetched association, via a {@code Uni}
13981398
*
13991399
* @see org.hibernate.Hibernate#initialize(Object)
14001400
*/
@@ -1688,6 +1688,14 @@ interface SessionFactory extends AutoCloseable {
16881688
* Perform work using a {@link Session reactive session} within an
16891689
* associated {@link Transaction transaction}.
16901690
* <p>
1691+
* <il>
1692+
* <li>If there is already a session associated with the
1693+
* current reactive stream, then the work will be executed using that
1694+
* session.
1695+
* <li>Otherwise, if there is no session associated with the
1696+
* current stream, a new stateless session will be created.
1697+
* </il>
1698+
* <p>
16911699
* The session will be {@link Session#flush() flushed} and closed
16921700
* automatically, and the transaction committed automatically.
16931701
*
@@ -1703,6 +1711,14 @@ interface SessionFactory extends AutoCloseable {
17031711
* Perform work using a {@link StatelessSession reactive session} within an
17041712
* associated {@link Transaction transaction}.
17051713
* <p>
1714+
* <il>
1715+
* <li>If there is already a stateless session associated with the
1716+
* current reactive stream, then the work will be executed using that
1717+
* session.
1718+
* <li>Otherwise, if there is no stateless session associated with the
1719+
* current stream, a new stateless session will be created.
1720+
* </il>
1721+
* <p>
17061722
* The session will be closed automatically and the transaction committed automatically.
17071723
*
17081724
* @param work a function which accepts the stateless session and returns
@@ -1736,10 +1752,10 @@ interface SessionFactory extends AutoCloseable {
17361752
* <p>
17371753
* <il>
17381754
* <li>If there is already a stateless session associated with the
1739-
* current reactive stream, then the work will be executed using that
1755+
* current reactive stream and given tenant id, then the work will be executed using that
17401756
* session.
17411757
* <li>Otherwise, if there is no stateless session associated with the
1742-
* current stream, a new stateless session will be created.
1758+
* current stream and given tenant id, a new stateless session will be created.
17431759
* </il>
17441760
* <p>
17451761
* The session will be closed automatically.
@@ -1754,6 +1770,14 @@ interface SessionFactory extends AutoCloseable {
17541770
* Perform work using a {@link Session reactive session} for a
17551771
* specified tenant within an associated {@link Transaction transaction}.
17561772
* <p>
1773+
* <il>
1774+
* <li>If there is already a session associated with the
1775+
* current reactive stream and given tenant id, then the work will be executed using that
1776+
* session.
1777+
* <li>Otherwise, if there is no session associated with the
1778+
* current stream and given tenant id, a new stateless session will be created.
1779+
* </il>
1780+
* <p>
17571781
* The session will be {@link Session#flush() flushed} and closed
17581782
* automatically, and the transaction committed automatically.
17591783
*
@@ -1770,6 +1794,14 @@ interface SessionFactory extends AutoCloseable {
17701794
* Perform work using a {@link StatelessSession reactive session} for a
17711795
* specified tenant within an associated {@link Transaction transaction}.
17721796
* <p>
1797+
* <il>
1798+
* <li>If there is already a stateless session associated with the
1799+
* current reactive stream and given tenant id, then the work will be executed using that
1800+
* session.
1801+
* <li>Otherwise, if there is no stateless session associated with the
1802+
* current stream and given tenant id, a new stateless session will be created.
1803+
* </il>
1804+
* <p>
17731805
* The session will be closed automatically and the transaction committed automatically.
17741806
*
17751807
* @param tenantId the id of the tenant

hibernate-reactive-core/src/main/java/org/hibernate/reactive/stage/Stage.java

+32
Original file line numberDiff line numberDiff line change
@@ -1682,6 +1682,14 @@ interface SessionFactory extends AutoCloseable {
16821682
* Perform work using a {@link Session reactive session} within an
16831683
* associated {@link Transaction transaction}.
16841684
* <p>
1685+
* <il>
1686+
* <li>If there is already a stateless session associated with the
1687+
* current reactive stream, then the work will be executed using that
1688+
* session.
1689+
* <li>Otherwise, if there is no stateless session associated with the
1690+
* current stream, a new stateless session will be created.
1691+
* </il>
1692+
* <p>
16851693
* The session will be {@link Session#flush() flushed} and closed
16861694
* automatically, and the transaction committed automatically.
16871695
*
@@ -1697,6 +1705,14 @@ interface SessionFactory extends AutoCloseable {
16971705
* Perform work using a {@link Session reactive session} for a
16981706
* specified tenant within an associated {@link Transaction transaction}.
16991707
* <p>
1708+
* <il>
1709+
* <li>If there is already a session associated with the
1710+
* current reactive stream and the given tenant, then the work will be executed using that
1711+
* session.
1712+
* <li>Otherwise, if there is no stateless session associated with the
1713+
* current stream and the given tenant, a new stateless session will be created.
1714+
* </il>
1715+
* <p>
17001716
* The session will be {@link Session#flush() flushed} and closed
17011717
* automatically, and the transaction committed automatically.
17021718
*
@@ -1713,6 +1729,14 @@ interface SessionFactory extends AutoCloseable {
17131729
* Perform work using a {@link StatelessSession reactive session} within an
17141730
* associated {@link Transaction transaction}.
17151731
* <p>
1732+
* <il>
1733+
* <li>If there is already a stateless session associated with the
1734+
* current reactive stream, then the work will be executed using that
1735+
* session.
1736+
* <li>Otherwise, if there is no stateless session associated with the
1737+
* current stream, a new stateless session will be created.
1738+
* </il>
1739+
* <p>
17161740
* The session will be closed automatically, and the transaction committed automatically.
17171741
*
17181742
* @param work a function which accepts the stateless session and returns
@@ -1727,6 +1751,14 @@ interface SessionFactory extends AutoCloseable {
17271751
* Perform work using a {@link StatelessSession reactive session} within an
17281752
* associated {@link Transaction transaction}.
17291753
* <p>
1754+
* <il>
1755+
* <li>If there is already a stateless session associated with the
1756+
* current reactive stream and the given tenant, then the work will be executed using that
1757+
* session.
1758+
* <li>Otherwise, if there is no stateless session associated with the
1759+
* current stream, a new stateless session will be created.
1760+
* </il>
1761+
* <p>
17301762
* The session will be closed automatically, and the transaction committed automatically.
17311763
*
17321764
* @param tenantId the id of the tenant

0 commit comments

Comments
 (0)