public class PatternBasedCacheInvalidationIDGeneratorImpl extends java.lang.Object implements CacheInvalidationIDGenerator
ACTION_ADD, ACTION_ANY, ACTION_DELETE, ACTION_UPDATE
Constructor and Description |
---|
PatternBasedCacheInvalidationIDGeneratorImpl()
the default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
generateInvalidationIDs(java.lang.String resource,
java.lang.String[] resourceKeys,
java.util.HashMap oneRecord,
java.lang.String action,
java.sql.Connection connection,
java.lang.String schema)
generates WebSphere Dynamic Cache invalidation IDs.
|
InvalidationIDPattern[] |
getResourcePatterns(java.lang.String resource)
returns the CacheInvalidationIDPattern objects used for a resource.
|
boolean |
isInvalidationTrigger(java.lang.String resource,
java.lang.String action)
returns whether performing the action against the resource would trigger cache invalidation.
|
void |
setResourcePatterns(java.lang.String resource,
InvalidationIDPattern[] patterns)
sets the CacheInvalidationIDPattern objects used for a resource.
|
public PatternBasedCacheInvalidationIDGeneratorImpl()
public java.util.List generateInvalidationIDs(java.lang.String resource, java.lang.String[] resourceKeys, java.util.HashMap oneRecord, java.lang.String action, java.sql.Connection connection, java.lang.String schema)
generateInvalidationIDs
in interface CacheInvalidationIDGenerator
resource
- the resource.resourceKeys
- the resource keys.oneRecord
- a HashMap object contains the values in the resource object.action
- the action performed against the resource object.connection
- the database connection.schema
- the database schema name.public InvalidationIDPattern[] getResourcePatterns(java.lang.String resource)
resource
- the resource.public void setResourcePatterns(java.lang.String resource, InvalidationIDPattern[] patterns)
resource
- the resource.patterns
- the CacheInvalidationIDPattern objects used for the resource.public boolean isInvalidationTrigger(java.lang.String resource, java.lang.String action)
isInvalidationTrigger
in interface CacheInvalidationIDGenerator
resource
- the resource.action
- the action performed against the resource object.