public class DynaCacheUtility
extends java.lang.Object
| 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)
invokes all the registered CacheInvalidationIDGenerator instances to generate WebSphere Dynamic
Cache invalidation IDs.
|
void |
initialize(java.net.URL configURL)
initializes the instance by reading the cache invalidation configuration.
|
boolean |
isInvalidationTrigger(java.lang.String resource,
java.lang.String action)
returns whether performing the action against the resource would trigger cache invalidation.
|
static DynaCacheUtility |
singleton()
returns the singleton of the DynaCacheUtility.
|
public static DynaCacheUtility singleton()
public void initialize(java.net.URL configURL)
throws ECException
configURL - the URL of the cache invalidation configuration.ECException - a problem occurs when initializing the instance.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)
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 boolean isInvalidationTrigger(java.lang.String resource,
java.lang.String action)
resource - the resource.action - the action performed against the resource object.