public class InvalidationIDPattern
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
static java.lang.String |
DEFAULT_COMPONENT_VALUE_MARK
the place holder for a component value.
|
Constructor and Description |
---|
InvalidationIDPattern()
the default constructor.
|
InvalidationIDPattern(java.lang.String pattern,
InvalidationIDComponent[] components)
the constructor takes a string pattern and a component array as parameters.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateInvalidationID(java.lang.String resource,
java.util.HashMap oneRecord,
java.lang.String action,
java.sql.Connection connection,
java.lang.String schema)
generates a WebSphere Dynamic Cache invalidation ID.
|
InvalidationIDComponent[] |
getComponents()
returns the components used in the pattern.
|
java.lang.String |
getComponentValueMark()
returns the place holder of a component value.
|
java.lang.String |
getPattern()
returns the pattern text string.
|
void |
setComponents(InvalidationIDComponent[] components)
sets the components used in the pattern.
|
void |
setComponentValueMark(java.lang.String mark)
sets the place holder of a component value.
|
void |
setPattern(java.lang.String pattern)
sets the pattern text string.
|
java.lang.String |
toString()
returns a string representation of the object.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String DEFAULT_COMPONENT_VALUE_MARK
public InvalidationIDPattern()
public InvalidationIDPattern(java.lang.String pattern, InvalidationIDComponent[] components)
pattern
- the string pattern.components
- the component array.public InvalidationIDComponent[] getComponents()
public java.lang.String getPattern()
public void setComponents(InvalidationIDComponent[] components)
components
- the components used in the pattern.public void setPattern(java.lang.String pattern)
pattern
- the pattern text string.public java.lang.String getComponentValueMark()
public void setComponentValueMark(java.lang.String mark)
mark
- the place holder of a component value.public java.lang.String generateInvalidationID(java.lang.String resource, java.util.HashMap oneRecord, java.lang.String action, java.sql.Connection connection, java.lang.String schema)
resource
- the resource.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 java.lang.String toString()
toString
in class java.lang.Object