14
14
/**
15
15
* Allows user code to inspect and/or change property values.
16
16
*
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
18
18
* from the database.
19
19
*
20
20
* There might be a single instance of <tt>Interceptor</tt> for a <tt>SessionFactory</tt>, or a new instance
37
37
*/
38
38
public interface Interceptor {
39
39
/**
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
41
41
* be propagated to the persistent object. Note that when this method is called, <tt>entity</tt> will be
42
42
* an empty uninitialized instance of the class.
43
43
* <p/>
@@ -85,7 +85,7 @@ boolean onFlushDirty(
85
85
Type [] types ) throws CallbackException ;
86
86
87
87
/**
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
89
89
* the SQL <tt>INSERT</tt> and propagated to the persistent object.
90
90
*
91
91
* @param entity The entity instance whose state is being inserted
@@ -101,7 +101,7 @@ boolean onFlushDirty(
101
101
boolean onSave (Object entity , Serializable id , Object [] state , String [] propertyNames , Type [] types ) throws CallbackException ;
102
102
103
103
/**
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>.
105
105
*
106
106
* @param entity The entity instance being deleted
107
107
* @param id The identifier of the entity
@@ -114,7 +114,7 @@ boolean onFlushDirty(
114
114
void onDelete (Object entity , Serializable id , Object [] state , String [] propertyNames , Type [] types ) throws CallbackException ;
115
115
116
116
/**
117
- * Called beforeQuery a collection is (re)created.
117
+ * Called before a collection is (re)created.
118
118
*
119
119
* @param collection The collection instance.
120
120
* @param key The collection key value.
@@ -124,7 +124,7 @@ boolean onFlushDirty(
124
124
void onCollectionRecreate (Object collection , Serializable key ) throws CallbackException ;
125
125
126
126
/**
127
- * Called beforeQuery a collection is deleted.
127
+ * Called before a collection is deleted.
128
128
*
129
129
* @param collection The collection instance.
130
130
* @param key The collection key value.
@@ -134,7 +134,7 @@ boolean onFlushDirty(
134
134
void onCollectionRemove (Object collection , Serializable key ) throws CallbackException ;
135
135
136
136
/**
137
- * Called beforeQuery a collection is updated.
137
+ * Called before a collection is updated.
138
138
*
139
139
* @param collection The collection instance.
140
140
* @param key The collection key value.
@@ -144,7 +144,7 @@ boolean onFlushDirty(
144
144
void onCollectionUpdate (Object collection , Serializable key ) throws CallbackException ;
145
145
146
146
/**
147
- * Called beforeQuery a flush.
147
+ * Called before a flush.
148
148
*
149
149
* @param entities The entities to be flushed.
150
150
*
@@ -153,7 +153,7 @@ boolean onFlushDirty(
153
153
void preFlush (Iterator entities ) throws CallbackException ;
154
154
155
155
/**
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
157
157
* in-memory state with the database.
158
158
*
159
159
* @param entities The entities that were flushed.
@@ -250,14 +250,14 @@ int[] findDirty(
250
250
void afterTransactionBegin (Transaction tx );
251
251
252
252
/**
253
- * Called beforeQuery a transaction is committed (but not beforeQuery rollback).
253
+ * Called before a transaction is committed (but not before rollback).
254
254
*
255
255
* @param tx The Hibernate transaction facade object
256
256
*/
257
257
void beforeTransactionCompletion (Transaction tx );
258
258
259
259
/**
260
- * Called afterQuery a transaction is committed or rolled back.
260
+ * Called after a transaction is committed or rolled back.
261
261
*
262
262
* @param tx The Hibernate transaction facade object
263
263
*/
0 commit comments