18
18
*
19
19
* @author Steve Ebersole
20
20
*/
21
- @ SuppressWarnings ( {"UnusedDeclaration" })
22
21
public interface Cache extends jakarta .persistence .Cache {
23
22
/**
24
23
* Access to the SessionFactory this Cache is bound to.
@@ -44,7 +43,7 @@ public interface Cache extends jakarta.persistence.Cache {
44
43
* @return True if the underlying cache contains corresponding data; false
45
44
* otherwise.
46
45
*/
47
- boolean containsEntity (Class entityClass , Object identifier );
46
+ boolean containsEntity (Class <?> entityClass , Object identifier );
48
47
49
48
/**
50
49
* Determine whether the cache contains data for the given entity "instance".
@@ -67,7 +66,7 @@ public interface Cache extends jakarta.persistence.Cache {
67
66
*
68
67
* @since 5.3
69
68
*/
70
- void evictEntityData (Class entityClass , Object identifier );
69
+ void evictEntityData (Class <?> entityClass , Object identifier );
71
70
72
71
/**
73
72
* Evicts the entity data for a particular entity "instance".
@@ -87,7 +86,7 @@ public interface Cache extends jakarta.persistence.Cache {
87
86
*
88
87
* @since 5.3
89
88
*/
90
- void evictEntityData (Class entityClass );
89
+ void evictEntityData (Class <?> entityClass );
91
90
92
91
/**
93
92
* Evicts all entity data from the given region (i.e. for all entities of
@@ -118,7 +117,7 @@ public interface Cache extends jakarta.persistence.Cache {
118
117
*
119
118
* @since 5.3
120
119
*/
121
- void evictNaturalIdData (Class entityClass );
120
+ void evictNaturalIdData (Class <?> entityClass );
122
121
123
122
/**
124
123
* Evict cached data for the given entity's natural-id
@@ -155,7 +154,6 @@ public interface Cache extends jakarta.persistence.Cache {
155
154
*
156
155
* @return True if the underlying cache contains corresponding data; false otherwise.
157
156
*/
158
- @ SuppressWarnings ( {"UnusedDeclaration" })
159
157
boolean containsCollection (String role , Object ownerIdentifier );
160
158
161
159
@@ -268,10 +266,10 @@ default void evictAllRegions() {
268
266
* @param entityClass The entity class.
269
267
* @param identifier The entity identifier
270
268
*
271
- * @deprecated Use {@link Cache#evictEntityData(Class, Serializable )} instead
269
+ * @deprecated Use {@link Cache#evictEntityData(Class, Object )} instead
272
270
*/
273
271
@ Deprecated
274
- default void evictEntity (Class entityClass , Object identifier ) {
272
+ default void evictEntity (Class <?> entityClass , Object identifier ) {
275
273
evictEntityData ( entityClass , identifier );
276
274
}
277
275
@@ -281,7 +279,7 @@ default void evictEntity(Class entityClass, Object identifier) {
281
279
* @param entityName The entity name.
282
280
* @param identifier The entity identifier
283
281
*
284
- * @deprecated Use {@link Cache#evictEntityData(String, Serializable )} instead
282
+ * @deprecated Use {@link Cache#evictEntityData(String, Object )} instead
285
283
*/
286
284
@ Deprecated
287
285
default void evictEntity (String entityName , Object identifier ) {
@@ -297,7 +295,7 @@ default void evictEntity(String entityName, Object identifier) {
297
295
* @deprecated Use {@link Cache#evictEntityData(Class)} instead
298
296
*/
299
297
@ Deprecated
300
- default void evictEntityRegion (Class entityClass ) {
298
+ default void evictEntityRegion (Class <?> entityClass ) {
301
299
evictEntityData ( entityClass );
302
300
}
303
301
@@ -333,7 +331,7 @@ default void evictEntityRegions() {
333
331
* @deprecated Use {@link Cache#evictNaturalIdData(Class)} instead
334
332
*/
335
333
@ Deprecated
336
- default void evictNaturalIdRegion (Class entityClass ) {
334
+ default void evictNaturalIdRegion (Class <?> entityClass ) {
337
335
evictNaturalIdData ( entityClass );
338
336
}
339
337
@@ -366,7 +364,7 @@ default void evictNaturalIdRegions() {
366
364
* @param role The "collection role" (in form [owner-entity-name].[collection-property-name]).
367
365
* @param ownerIdentifier The identifier of the owning entity
368
366
*
369
- * @deprecated Use {@link Cache#evictCollectionData(String, Serializable )} instead
367
+ * @deprecated Use {@link Cache#evictCollectionData(String, Object )} instead
370
368
*/
371
369
@ Deprecated
372
370
default void evictCollection (String role , Serializable ownerIdentifier ) {
0 commit comments