public class BusinessPolicyCommandEntry
extends java.lang.Object
implements java.io.Serializable, com.ibm.commerce.datatype.Scrubbable, com.ibm.websphere.cache.Sizeable
Constructor and Description |
---|
BusinessPolicyCommandEntry()
Constructor for BusinessPolicyCommandEntry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Class |
getCommandClass()
Gets the command class object.
|
java.lang.String |
getCommandClassName()
Gets the command class name.
|
static java.lang.String |
getCommandClassNameFromInterface(java.lang.String commandInterfaceName)
Gets the default implementation of an interface.
|
java.lang.String |
getCommandInterfaceName()
Gets the command interface name.
|
int |
getMemorySizeExcludingObjectsToScrub()
Returns the approximate size in bytes of this object, not including the sizes of the
objects returned by the getObjectsToScrub.
|
long |
getObjectSize()
Returns the estimated footprint size in bytes
of this object and the objects it contains.
|
java.util.ArrayList |
getObjectsToScrub()
Returns a list of objects that should be replaced with
equivalent objects from the Scrubb cache, or should be placed in the Scrubb cache
if no equivalent object is yet in the cache.>/p>
|
TypedProperty |
getProperties()
Gets the properties associated with this command.
|
int |
hashCode() |
void |
initialize(java.lang.Long anPolicyId,
java.lang.String astrCommandInterfacename,
java.util.List alistClassNames)
Initialize the entry.
|
void |
setScrubbedObjects(java.util.List alistScrubbedObjects)
Provides a list of "scrubbed" objects that should replace the objects provided by a previous call
to the getObjectsToScrub method.
|
public BusinessPolicyCommandEntry()
public long getObjectSize()
getObjectSize
in interface com.ibm.websphere.cache.Sizeable
public int getMemorySizeExcludingObjectsToScrub()
Returns the approximate size in bytes of this object, not including the sizes of the objects returned by the getObjectsToScrub.
getMemorySizeExcludingObjectsToScrub
in interface com.ibm.commerce.datatype.Scrubbable
public java.util.ArrayList getObjectsToScrub()
Returns a list of objects that should be replaced with equivalent objects from the Scrubb cache, or should be placed in the Scrubb cache if no equivalent object is yet in the cache.>/p>
The caller must be able to promise that this object and all its properties, recursively, will never be modified again, so that it and its properties can be shared by other objects.
This method is intended to be called by the Scrubb class. Any other use is not supported.
getObjectsToScrub
in interface com.ibm.commerce.datatype.Scrubbable
null
, or a list of objects to be "scrubbed".
Each element must correctly implement the equals and hashCode methods so that it can be
saved in a HashMap.public void setScrubbedObjects(java.util.List alistScrubbedObjects)
Provides a list of "scrubbed" objects that should replace the objects provided by a previous call to the getObjectsToScrub method.
The caller must be able to promise that this object and all its properties, recursively, will never be modified again, so that it and its properties can be shared by other objects.
This method is intended to be called by the Scrubb class. Any other use is not supported.
setScrubbedObjects
in interface com.ibm.commerce.datatype.Scrubbable
alistScrubbedObjects
- a list of "scrubbed" objects. Must be equivalent to the list returned by getObjectsToScrub.public final java.lang.String getCommandInterfaceName()
public java.lang.Class getCommandClass()
public java.lang.String getCommandClassName()
public TypedProperty getProperties()
public final void initialize(java.lang.Long anPolicyId, java.lang.String astrCommandInterfacename, java.util.List alistClassNames) throws ECException
anPolicyId
- astrCommandInterfacename
- alistClassNames
- ECException
public static java.lang.String getCommandClassNameFromInterface(java.lang.String commandInterfaceName)
commandInterfaceName
- command interface namepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object