@@ -56,7 +56,7 @@ public abstract class AbstractFlushingEventListener {
56
56
57
57
/**
58
58
* 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
60
60
* entities and collections to their respective execution queues.
61
61
*
62
62
* @param event The flush event.
@@ -180,8 +180,7 @@ private void cascadeOnFlush(EventSource session, EntityPersister persister, Obje
180
180
}
181
181
182
182
/**
183
- * Initialize the flags of the CollectionEntry, including the
184
- * dirty check.
183
+ * Initialize the flags of the {@link CollectionEntry}, including the dirty check.
185
184
*/
186
185
private void prepareCollectionFlushes (PersistenceContext persistenceContext ) throws HibernateException {
187
186
// Initialize dirty flags for arrays + collections with composite elements
@@ -198,9 +197,11 @@ private void prepareCollectionFlushes(PersistenceContext persistenceContext) thr
198
197
}
199
198
200
199
/**
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>
204
205
*/
205
206
private int flushEntities (final FlushEvent event , final PersistenceContext persistenceContext )
206
207
throws HibernateException {
@@ -238,8 +239,8 @@ private int flushEntities(final FlushEvent event, final PersistenceContext persi
238
239
}
239
240
240
241
/**
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.
243
244
*/
244
245
private FlushEntityEvent createOrReuseEventInstance (
245
246
FlushEntityEvent possiblyValidExistingInstance ,
@@ -257,8 +258,8 @@ private FlushEntityEvent createOrReuseEventInstance(
257
258
}
258
259
259
260
/**
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.
262
263
*/
263
264
private int flushCollections (final EventSource session , final PersistenceContext persistenceContext )
264
265
throws HibernateException {
@@ -382,9 +383,11 @@ protected void performExecutions(EventSource session) {
382
383
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
383
384
384
385
/**
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>
388
391
*/
389
392
protected void postFlush (SessionImplementor session ) throws HibernateException {
390
393
LOG .trace ( "Post flush" );
0 commit comments