Skip to content

Commit 3a813dc

Browse files
RichardBradleyvladmihalcea
authored andcommitted
HHH-11646 revert errant after -> afterQuery search and replace
1 parent 1752da0 commit 3a813dc

File tree

354 files changed

+715
-715
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

354 files changed

+715
-715
lines changed

hibernate-c3p0/src/main/java/org/hibernate/c3p0/internal/C3P0MessageLogger.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* The jboss-logging {@link MessageLogger} for the hibernate-c3p0 module. It reserves message ids ranging from
2323
* 10001 to 15000 inclusively.
2424
* <p/>
25-
* New messages must be added afterQuery the last message defined to ensure message codes are unique.
25+
* New messages must be added after the last message defined to ensure message codes are unique.
2626
*/
2727
@MessageLogger(projectCode = "HHH")
2828
public interface C3P0MessageLogger extends ConnectionPoolingLogger {

hibernate-core/src/main/java/org/hibernate/BasicQueryContract.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ default CommonQueryContract setFlushMode(FlushMode flushMode) {
189189
* @see org.hibernate.engine.spi.PersistenceContext#isDefaultReadOnly()
190190
*
191191
* The read-only/modifiable setting has no impact on entities/proxies returned by the
192-
* query that existed in the session beforeQuery the query was executed.
192+
* query that existed in the session before the query was executed.
193193
*
194194
* @return {@code true} if the entities and proxies loaded by the query will be put
195195
* in read-only mode; {@code false} otherwise (they will be modifiable)
@@ -216,7 +216,7 @@ default CommonQueryContract setFlushMode(FlushMode flushMode) {
216216
* proxy has, regardless of the session's current setting.
217217
*
218218
* The read-only/modifiable setting has no impact on entities/proxies
219-
* returned by the query that existed in the session beforeQuery the query was executed.
219+
* returned by the query that existed in the session before the query was executed.
220220
*
221221
* @return {@code this}, for method chaining
222222
*

hibernate-core/src/main/java/org/hibernate/CallbackException.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* Intended to be thrown from {@link org.hibernate.classic.Lifecycle} and {@link Interceptor} callbacks.
1111
* <p/>
12-
* IMPL NOTE : This is a legacy exception type from back in the day beforeQuery Hibernate moved to a untyped (runtime)
12+
* IMPL NOTE : This is a legacy exception type from back in the day before Hibernate moved to a untyped (runtime)
1313
* exception strategy.
1414
*
1515
* @author Gavin King

hibernate-core/src/main/java/org/hibernate/ConnectionReleaseMode.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
*/
1919
public enum ConnectionReleaseMode{
2020
/**
21-
* Indicates that JDBC connection should be aggressively released afterQuery each
21+
* Indicates that JDBC connection should be aggressively released after each
2222
* SQL statement is executed. In this mode, the application <em>must</em>
2323
* explicitly close all iterators and scrollable results. This mode may
2424
* only be used with a JTA datasource.
2525
*/
2626
AFTER_STATEMENT,
2727

2828
/**
29-
* Indicates that JDBC connections should be released afterQuery each transaction
29+
* Indicates that JDBC connections should be released after each transaction
3030
* ends (works with both JTA-registered synch and HibernateTransaction API).
3131
* This mode may not be used with an application server JTA datasource.
3232
* <p/>

hibernate-core/src/main/java/org/hibernate/Criteria.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ public interface Criteria extends CriteriaSpecification {
403403
* @see org.hibernate.engine.spi.PersistenceContext#isDefaultReadOnly()
404404
*
405405
* The read-only/modifiable setting has no impact on entities/proxies returned by the
406-
* Criteria that existed in the session beforeQuery the Criteria was executed.
406+
* Criteria that existed in the session before the Criteria was executed.
407407
*
408408
* @return true, entities and proxies loaded by the criteria will be put in read-only mode
409409
* false, entities and proxies loaded by the criteria will be put in modifiable mode
@@ -433,7 +433,7 @@ public interface Criteria extends CriteriaSpecification {
433433
* proxy has, regardless of the session's current setting.
434434
*
435435
* The read-only/modifiable setting has no impact on entities/proxies
436-
* returned by the criteria that existed in the session beforeQuery the criteria was executed.
436+
* returned by the criteria that existed in the session before the criteria was executed.
437437
*
438438
* @param readOnly true, entities and proxies loaded by the criteria will be put in read-only mode
439439
* false, entities and proxies loaded by the criteria will be put in modifiable mode

hibernate-core/src/main/java/org/hibernate/CustomEntityDirtinessStrategy.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public interface CustomEntityDirtinessStrategy {
4747

4848
/**
4949
* Callback used by Hibernate to signal that the entity dirty flag should be cleared. Generally this
50-
* happens afterQuery previous dirty changes were written to the database.
50+
* happens after previous dirty changes were written to the database.
5151
*
5252
* @param entity The entity to reset
5353
* @param persister The persister corresponding to the given entity

hibernate-core/src/main/java/org/hibernate/Filter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public interface Filter {
6464

6565
/**
6666
* Perform validation of the filter state. This is used to verify the
67-
* state of the filter afterQuery its enablement and beforeQuery its use.
67+
* state of the filter after its enablement and before its use.
6868
*
6969
* @throws HibernateException If the state is not currently valid.
7070
*/

hibernate-core/src/main/java/org/hibernate/FlushMode.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ public enum FlushMode {
3434
COMMIT(5 ),
3535

3636
/**
37-
* The {@link Session} is sometimes flushed beforeQuery query execution
37+
* The {@link Session} is sometimes flushed before query execution
3838
* in order to ensure that queries never return stale state. This
3939
* is the default flush mode.
4040
*/
4141
AUTO(10 ),
4242

4343
/**
44-
* The {@link Session} is flushed beforeQuery every query. This is
44+
* The {@link Session} is flushed before every query. This is
4545
* almost always unnecessary and inefficient.
4646
*/
4747
ALWAYS(20 );
@@ -70,7 +70,7 @@ public boolean lessThan(FlushMode other) {
7070
*
7171
* @return true/false
7272
*
73-
* @deprecated Just use equality check against {@link #MANUAL}. Legacy from beforeQuery this was an enum
73+
* @deprecated Just use equality check against {@link #MANUAL}. Legacy from before this was an enum
7474
*/
7575
@Deprecated
7676
public static boolean isManualFlushMode(FlushMode mode) {

hibernate-core/src/main/java/org/hibernate/Interceptor.java

+11-11
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* Allows user code to inspect and/or change property values.
1616
*
17-
* Inspection occurs beforeQuery property values are written and afterQuery they are read
17+
* Inspection occurs before property values are written and after they are read
1818
* from the database.
1919
*
2020
* There might be a single instance of <tt>Interceptor</tt> for a <tt>SessionFactory</tt>, or a new instance
@@ -37,7 +37,7 @@
3737
*/
3838
public interface Interceptor {
3939
/**
40-
* Called just beforeQuery an object is initialized. The interceptor may change the <tt>state</tt>, which will
40+
* Called just before an object is initialized. The interceptor may change the <tt>state</tt>, which will
4141
* be propagated to the persistent object. Note that when this method is called, <tt>entity</tt> will be
4242
* an empty uninitialized instance of the class.
4343
* <p/>
@@ -85,7 +85,7 @@ boolean onFlushDirty(
8585
Type[] types) throws CallbackException;
8686

8787
/**
88-
* Called beforeQuery an object is saved. The interceptor may modify the <tt>state</tt>, which will be used for
88+
* Called before an object is saved. The interceptor may modify the <tt>state</tt>, which will be used for
8989
* the SQL <tt>INSERT</tt> and propagated to the persistent object.
9090
*
9191
* @param entity The entity instance whose state is being inserted
@@ -101,7 +101,7 @@ boolean onFlushDirty(
101101
boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) throws CallbackException;
102102

103103
/**
104-
* Called beforeQuery an object is deleted. It is not recommended that the interceptor modify the <tt>state</tt>.
104+
* Called before an object is deleted. It is not recommended that the interceptor modify the <tt>state</tt>.
105105
*
106106
* @param entity The entity instance being deleted
107107
* @param id The identifier of the entity
@@ -114,7 +114,7 @@ boolean onFlushDirty(
114114
void onDelete(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) throws CallbackException;
115115

116116
/**
117-
* Called beforeQuery a collection is (re)created.
117+
* Called before a collection is (re)created.
118118
*
119119
* @param collection The collection instance.
120120
* @param key The collection key value.
@@ -124,7 +124,7 @@ boolean onFlushDirty(
124124
void onCollectionRecreate(Object collection, Serializable key) throws CallbackException;
125125

126126
/**
127-
* Called beforeQuery a collection is deleted.
127+
* Called before a collection is deleted.
128128
*
129129
* @param collection The collection instance.
130130
* @param key The collection key value.
@@ -134,7 +134,7 @@ boolean onFlushDirty(
134134
void onCollectionRemove(Object collection, Serializable key) throws CallbackException;
135135

136136
/**
137-
* Called beforeQuery a collection is updated.
137+
* Called before a collection is updated.
138138
*
139139
* @param collection The collection instance.
140140
* @param key The collection key value.
@@ -144,7 +144,7 @@ boolean onFlushDirty(
144144
void onCollectionUpdate(Object collection, Serializable key) throws CallbackException;
145145

146146
/**
147-
* Called beforeQuery a flush.
147+
* Called before a flush.
148148
*
149149
* @param entities The entities to be flushed.
150150
*
@@ -153,7 +153,7 @@ boolean onFlushDirty(
153153
void preFlush(Iterator entities) throws CallbackException;
154154

155155
/**
156-
* Called afterQuery a flush that actually ends in execution of the SQL statements required to synchronize
156+
* Called after a flush that actually ends in execution of the SQL statements required to synchronize
157157
* in-memory state with the database.
158158
*
159159
* @param entities The entities that were flushed.
@@ -250,14 +250,14 @@ int[] findDirty(
250250
void afterTransactionBegin(Transaction tx);
251251

252252
/**
253-
* Called beforeQuery a transaction is committed (but not beforeQuery rollback).
253+
* Called before a transaction is committed (but not before rollback).
254254
*
255255
* @param tx The Hibernate transaction facade object
256256
*/
257257
void beforeTransactionCompletion(Transaction tx);
258258

259259
/**
260-
* Called afterQuery a transaction is committed or rolled back.
260+
* Called after a transaction is committed or rolled back.
261261
*
262262
* @param tx The Hibernate transaction facade object
263263
*/

hibernate-core/src/main/java/org/hibernate/LazyInitializationException.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* Indicates an attempt to access not-yet-fetched data outside of a session context.
1515
*
16-
* For example, when an uninitialized proxy or collection is accessed afterQuery the session was closed.
16+
* For example, when an uninitialized proxy or collection is accessed after the session was closed.
1717
*
1818
* @see Hibernate#initialize(java.lang.Object)
1919
* @see Hibernate#isInitialized(java.lang.Object)

hibernate-core/src/main/java/org/hibernate/Query.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ default Query<R> setHibernateFlushMode(FlushMode flushMode) {
245245
* @see org.hibernate.engine.spi.PersistenceContext#isDefaultReadOnly()
246246
*
247247
* The read-only/modifiable setting has no impact on entities/proxies returned by the
248-
* query that existed in the session beforeQuery the query was executed.
248+
* query that existed in the session before the query was executed.
249249
*
250250
* @return {@code true} if the entities and proxies loaded by the query will be put
251251
* in read-only mode; {@code false} otherwise (they will be modifiable)
@@ -272,7 +272,7 @@ default Query<R> setHibernateFlushMode(FlushMode flushMode) {
272272
* proxy has, regardless of the session's current setting.
273273
*
274274
* The read-only/modifiable setting has no impact on entities/proxies
275-
* returned by the query that existed in the session beforeQuery the query was executed.
275+
* returned by the query that existed in the session before the query was executed.
276276
*
277277
* @return {@code this}, for method chaining
278278
*

hibernate-core/src/main/java/org/hibernate/ScrollableResults.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ public interface ScrollableResults extends AutoCloseable {
7575
boolean first();
7676

7777
/**
78-
* Go to a location just beforeQuery first result, This is the location of the cursor on a newly returned
78+
* Go to a location just before first result, This is the location of the cursor on a newly returned
7979
* scrollable result.
8080
*/
8181
void beforeFirst();
8282

8383
/**
84-
* Go to a location just afterQuery the last result.
84+
* Go to a location just after the last result.
8585
*/
8686
void afterLast();
8787

hibernate-core/src/main/java/org/hibernate/Session.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
* <br>
7474
* If the <tt>Session</tt> throws an exception, the transaction must be rolled back
7575
* and the session discarded. The internal state of the <tt>Session</tt> might not
76-
* be consistent with the database afterQuery the exception occurs.
76+
* be consistent with the database after the exception occurs.
7777
*
7878
* @see SessionFactory
7979
*
@@ -90,7 +90,7 @@ public interface Session extends SharedSessionContract, EntityManager, Hibernate
9090

9191
/**
9292
* Force this session to flush. Must be called at the end of a
93-
* unit of work, beforeQuery committing the transaction and closing the
93+
* unit of work, before committing the transaction and closing the
9494
* session (depending on {@link #setFlushMode(FlushMode)},
9595
* {@link Transaction#commit()} calls this method).
9696
* <p/>
@@ -601,8 +601,8 @@ public interface Session extends SharedSessionContract, EntityManager, Hibernate
601601
* For example
602602
* <ul>
603603
* <li>where a database trigger alters the object state upon insert or update
604-
* <li>afterQuery executing direct SQL (eg. a mass update) in the same session
605-
* <li>afterQuery inserting a <tt>Blob</tt> or <tt>Clob</tt>
604+
* <li>after executing direct SQL (eg. a mass update) in the same session
605+
* <li>after inserting a <tt>Blob</tt> or <tt>Clob</tt>
606606
* </ul>
607607
*
608608
* @param object a persistent or detached instance
@@ -616,8 +616,8 @@ public interface Session extends SharedSessionContract, EntityManager, Hibernate
616616
* For example
617617
* <ul>
618618
* <li>where a database trigger alters the object state upon insert or update
619-
* <li>afterQuery executing direct SQL (eg. a mass update) in the same session
620-
* <li>afterQuery inserting a <tt>Blob</tt> or <tt>Clob</tt>
619+
* <li>after executing direct SQL (eg. a mass update) in the same session
620+
* <li>after inserting a <tt>Blob</tt> or <tt>Clob</tt>
621621
* </ul>
622622
*
623623
* @param entityName a persistent class

hibernate-core/src/main/java/org/hibernate/SessionBuilder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public interface SessionBuilder<T extends SessionBuilder> {
129129
T flushMode(FlushMode flushMode);
130130

131131
/**
132-
* Should the session be automatically flushed during the "beforeQuery completion" phase of transaction handling.
132+
* Should the session be automatically flushed during the "before completion" phase of transaction handling.
133133
*
134134
* @param flushBeforeCompletion Should the session be automatically flushed
135135
*

hibernate-core/src/main/java/org/hibernate/SessionFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public interface SessionFactory extends EntityManagerFactory, HibernateEntityMan
115115
* connection pools, etc).
116116
* <p/>
117117
* It is the responsibility of the application to ensure that there are no
118-
* open {@link Session sessions} beforeQuery calling this method as the impact
118+
* open {@link Session sessions} before calling this method as the impact
119119
* on those {@link Session sessions} is indeterminate.
120120
* <p/>
121121
* No-ops if already {@link #isClosed closed}.

hibernate-core/src/main/java/org/hibernate/Transaction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public interface Transaction extends EntityTransaction {
5050
/**
5151
* Set the transaction timeout for any transaction started by a subsequent call to {@link #begin} on this instance.
5252
*
53-
* @param seconds The number of seconds beforeQuery a timeout.
53+
* @param seconds The number of seconds before a timeout.
5454
*/
5555
void setTimeout(int seconds);
5656

hibernate-core/src/main/java/org/hibernate/action/internal/AbstractEntityInsertAction.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ public void afterDeserialize(SharedSessionContractImplementor session) {
161161
}
162162

163163
/**
164-
* Handle sending notifications needed for natural-id beforeQuery saving
164+
* Handle sending notifications needed for natural-id before saving
165165
*/
166166
protected void handleNaturalIdPreSaveNotifications() {
167-
// beforeQuery save, we need to add a local (transactional) natural id cross-reference
167+
// before save, we need to add a local (transactional) natural id cross-reference
168168
getSession().getPersistenceContext().getNaturalIdHelper().manageLocalNaturalIdCrossReference(
169169
getPersister(),
170170
getId(),
@@ -175,7 +175,7 @@ protected void handleNaturalIdPreSaveNotifications() {
175175
}
176176

177177
/**
178-
* Handle sending notifications needed for natural-id afterQuery saving
178+
* Handle sending notifications needed for natural-id after saving
179179
*
180180
* @param generatedId The generated entity identifier
181181
*/
@@ -190,7 +190,7 @@ public void handleNaturalIdPostSaveNotifications(Serializable generatedId) {
190190
CachedNaturalIdValueSource.INSERT
191191
);
192192
}
193-
// afterQuery save, we need to manage the shared cache entries
193+
// after save, we need to manage the shared cache entries
194194
getSession().getPersistenceContext().getNaturalIdHelper().manageSharedNaturalIdCrossReference(
195195
getPersister(),
196196
generatedId,

hibernate-core/src/main/java/org/hibernate/action/internal/CollectionAction.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ protected PersistentCollection getCollection() {
5454
}
5555

5656
/**
57-
* Reconnect to session afterQuery deserialization...
57+
* Reconnect to session after deserialization...
5858
*
5959
* @param session The session being deserialized
6060
*/
@@ -72,7 +72,7 @@ public void afterDeserialize(SharedSessionContractImplementor session) {
7272

7373
@Override
7474
public final void beforeExecutions() throws CacheException {
75-
// we need to obtain the lock beforeQuery any actions are executed, since this may be an inverse="true"
75+
// we need to obtain the lock before any actions are executed, since this may be an inverse="true"
7676
// bidirectional association and it is one of the earlier entity actions which actually updates
7777
// the database (this action is responsible for second-level cache invalidation only)
7878
if ( persister.hasCache() ) {

hibernate-core/src/main/java/org/hibernate/action/internal/CollectionRemoveAction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public CollectionRemoveAction(
5151
throw new AssertionFailure("collection == null");
5252
}
5353
this.emptySnapshot = emptySnapshot;
54-
// the loaded owner will be set to null afterQuery the collection is removed,
54+
// the loaded owner will be set to null after the collection is removed,
5555
// so capture its value as the affected owner so it is accessible to
5656
// both pre- and post- events
5757
this.affectedOwner = session.getPersistenceContext().getLoadedCollectionOwnerOrNull( collection );

hibernate-core/src/main/java/org/hibernate/action/internal/EntityAction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public int compareTo(Object other) {
156156
}
157157

158158
/**
159-
* Reconnect to session afterQuery deserialization...
159+
* Reconnect to session after deserialization...
160160
*
161161
* @param session The session being deserialized
162162
*/

hibernate-core/src/main/java/org/hibernate/action/internal/EntityDeleteAction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public EntityDeleteAction(
6060
this.isCascadeDeleteEnabled = isCascadeDeleteEnabled;
6161
this.state = state;
6262

63-
// beforeQuery remove we need to remove the local (transactional) natural id cross-reference
63+
// before remove we need to remove the local (transactional) natural id cross-reference
6464
naturalIdValues = session.getPersistenceContext().getNaturalIdHelper().removeLocalNaturalIdCrossReference(
6565
getPersister(),
6666
getId(),

0 commit comments

Comments
 (0)