com.ibm.websphere.ejbpersistence
Class PMCacheInvalidationRequest
- java.lang.Object
com.ibm.websphere.ejbpersistence.PMCacheInvalidationRequest
All implemented interfaces:
java.io.Serializable
- public class PMCacheInvalidationRequest
- extends java.lang.Object
- implements java.io.Serializable
See Also:
Field Summary
Modifier and Type | Field and Description |
---|---|
|
INVALIDATE_ALL
|
|
INVALIDATE_BEAN_COLLECTION
|
|
INVALIDATE_ONE_BEAN
|
Constructor Summary
Constructor and Description |
---|
PMCacheInvalidationRequest(java.lang.String beanHomeJNDIName)
Constructor used to invalidate all beans of a given type
|
PMCacheInvalidationRequest(java.lang.String beanHomeJNDIName,java.util.Collection beanKeys)
Constructor used to invalidate a Collection of beans
|
PMCacheInvalidationRequest(java.lang.String beanHomeJNDIName,java.lang.Object beanKey)
Constructor used to invalidate a single bean
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getBeanHomeJNDIName()
Gets the beanHomeJNDIName.
|
|
getInvalidationType()
Gets the invalidationType.
|
|
getKeyAsByteArray()
INTERNAL USE ONLY: Gets the keyAsByteArray.
|
|
toString()
Return this object as a String, primarily for debug purposes
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail
INVALIDATE_ONE_BEAN
- public static final int INVALIDATE_ONE_BEAN
See Also:
INVALIDATE_BEAN_COLLECTION
- public static final int INVALIDATE_BEAN_COLLECTION
See Also:
INVALIDATE_ALL
- public static final int INVALIDATE_ALL
See Also:
Constructor Detail
PMCacheInvalidationRequest
- public PMCacheInvalidationRequest( java.lang.String beanHomeJNDIName,
- java.lang.Object beanKey)
- throws java.io.IOException
Constructor used to invalidate a single bean
Parameters:
beanHomeJNDIName
- the JNDI name of the bean home. This is the same value used to look up the bean home prior to calling findByPrimaryKey, for example. beanKey
- the primary key of the bean to be invalidated. The actual object type must be the primary key type for this bean type. Throws:
java.io.IOException
PMCacheInvalidationRequest
- public PMCacheInvalidationRequest( java.lang.String beanHomeJNDIName,
- java.util.Collection beanKeys)
- throws java.io.IOException
Constructor used to invalidate a Collection of beans
Parameters:
beanHomeJNDIName
- java.lang.String the JNDI name of the bean home. This is the same value used to look up the bean home prior to calling findByPrimaryKey, for example. beanKeys
- a Collection of the primary keys of the beans to be invalidated. The actual type of each object in the Collection must be the primary key type for this bean type. Throws:
java.io.IOException
PMCacheInvalidationRequest
- public PMCacheInvalidationRequest( java.lang.String beanHomeJNDIName)
Constructor used to invalidate all beans of a given type
Parameters:
beanHomeJNDIName
- java.lang.String the JNDI name of the bean home. This is the same value used to look up the bean home prior to calling findByPrimaryKey, for example. Method Detail
toString
- public java.lang.String toString( )
Return this object as a String, primarily for debug purposes
Overrides:
toString
in class java.lang.Object
getInvalidationType
- public int getInvalidationType( )
Gets the invalidationType.
Returns:
Returns a int
getBeanHomeJNDIName
- public java.lang.String getBeanHomeJNDIName( )
Gets the beanHomeJNDIName.
Returns:
Returns a String
getKeyAsByteArray
- public byte[] getKeyAsByteArray( )
INTERNAL USE ONLY: Gets the keyAsByteArray.
Returns:
Returns a byte[]