public class BusinessPolicyRegistryEntry
extends java.lang.Object
implements java.io.Serializable, com.ibm.commerce.datatype.Scrubbable, com.ibm.websphere.cache.Sizeable
Constructor and Description |
---|
BusinessPolicyRegistryEntry()
Constructor BusinessPolicyRegistryEntry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
BusinessPolicyAccessBean |
getBean()
Gets the business policy access bean.
|
java.lang.Class |
getCommandClass()
Gets the default command class object.
|
java.lang.Class |
getCommandClass(java.lang.String interfaceName)
Gets the command class object for a particular command interface.
|
BusinessPolicyCommandEntry |
getCommandEntry()
Gets the first business policy command entry for this policy.
|
BusinessPolicyCommandEntry |
getCommandEntry(java.lang.String interfaceName)
Gets the business policy command entry for a particular command interface.
|
java.lang.String |
getCommandInterface()
Gets the default 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>
|
java.lang.String |
getPolicyId()
Gets the policy Id.
|
java.lang.String |
getPolicyType()
Gets the policy type.
|
TypedProperty |
getProperties()
Gets the business policy command properties.
|
int |
hashCode() |
void |
initialize(BusinessPolicyAccessBean aAB)
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 BusinessPolicyRegistryEntry()
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 void initialize(BusinessPolicyAccessBean aAB) throws ECException
aAB
- ECException
public BusinessPolicyAccessBean getBean()
public java.lang.Class getCommandClass()
public java.lang.Class getCommandClass(java.lang.String interfaceName)
interfaceName
- command interface namepublic BusinessPolicyCommandEntry getCommandEntry()
public BusinessPolicyCommandEntry getCommandEntry(java.lang.String interfaceName)
public java.lang.String getCommandInterface()
public java.lang.String getPolicyId()
public java.lang.String getPolicyType()
public TypedProperty getProperties()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object