Skip to content

Commit 4c34bfd

Browse files
committed
javadoc fixups
1 parent cbf4ac8 commit 4c34bfd

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

hibernate-core/src/main/java/org/hibernate/event/internal/AbstractFlushingEventListener.java

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public abstract class AbstractFlushingEventListener {
5656

5757
/**
5858
* Coordinates the processing necessary to get things ready for executions
59-
* as db calls by preping the session caches and moving the appropriate
59+
* as db calls by preparing the session caches and moving the appropriate
6060
* entities and collections to their respective execution queues.
6161
*
6262
* @param event The flush event.
@@ -180,8 +180,7 @@ private void cascadeOnFlush(EventSource session, EntityPersister persister, Obje
180180
}
181181

182182
/**
183-
* Initialize the flags of the CollectionEntry, including the
184-
* dirty check.
183+
* Initialize the flags of the {@link CollectionEntry}, including the dirty check.
185184
*/
186185
private void prepareCollectionFlushes(PersistenceContext persistenceContext) throws HibernateException {
187186
// Initialize dirty flags for arrays + collections with composite elements
@@ -198,9 +197,11 @@ private void prepareCollectionFlushes(PersistenceContext persistenceContext) thr
198197
}
199198

200199
/**
201-
* 1. detect any dirty entities
202-
* 2. schedule any entity updates
203-
* 3. search out any reachable collections
200+
* <ol>
201+
* <li> detect any dirty entities
202+
* <li> schedule any entity updates
203+
* <li> search out any reachable collections
204+
* </ol>
204205
*/
205206
private int flushEntities(final FlushEvent event, final PersistenceContext persistenceContext)
206207
throws HibernateException {
@@ -238,8 +239,8 @@ private int flushEntities(final FlushEvent event, final PersistenceContext persi
238239
}
239240

240241
/**
241-
* Reuses a FlushEntityEvent for a new purpose, if possible;
242-
* if not possible a new actual instance is returned.
242+
* Reuses a {@link FlushEntityEvent} for a new purpose, if possible;
243+
* or if not possible, a new actual instance is returned.
243244
*/
244245
private FlushEntityEvent createOrReuseEventInstance(
245246
FlushEntityEvent possiblyValidExistingInstance,
@@ -257,8 +258,8 @@ private FlushEntityEvent createOrReuseEventInstance(
257258
}
258259

259260
/**
260-
* process any unreferenced collections and then inspect all known collections,
261-
* scheduling creates/removes/updates
261+
* Process any unreferenced collections and then inspect all known collections,
262+
* scheduling creates/removes/updates.
262263
*/
263264
private int flushCollections(final EventSource session, final PersistenceContext persistenceContext)
264265
throws HibernateException {
@@ -382,9 +383,11 @@ protected void performExecutions(EventSource session) {
382383
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
383384

384385
/**
385-
* 1. Recreate the collection key -> collection map
386-
* 2. rebuild the collection entries
387-
* 3. call Interceptor.postFlush()
386+
* <ol>
387+
* <li> Recreate the collection key to collection mapping
388+
* <li> rebuild the collection entries
389+
* <li> call {@link Interceptor#postFlush}
390+
* </ol>
388391
*/
389392
protected void postFlush(SessionImplementor session) throws HibernateException {
390393
LOG.trace( "Post flush" );

0 commit comments

Comments
 (0)