public class TradingAgreementRegistry extends AbstractManagedDynamicCacheRegistry
Constructor and Description |
---|
TradingAgreementRegistry()
TradingAgreementRegistry constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(TradingAgreementAccessBean tradingAgreement)
This method adds a
TradingAgreementAccessBean object to the list. |
java.lang.Object |
createKey(java.lang.String strKey)
This method creates a cache key.
|
java.lang.String |
createKeyString(TypedProperty prop)
This method creates a cache key
|
TradingAgreementAccessBean |
find(java.lang.String key)
This method returns the
TradingAgreementAccessBean with a given id from the cache. |
TradingAgreementAccessBean[] |
findAll(java.lang.String[] taIdStr)
This method returns all the
TradingAgreementAccessBean objects with the given ids from the cache. |
TradingAgreementAccessBean[] |
getAll()
This method returns all the
TradingAgreementAccessBean objects in the cache |
void |
initialize()
This method initializes the
TradingAgreementRegistry object. |
void |
populate(com.ibm.commerce.registry.LRUDynamicHashtable aCache)
This method populates the cache.
|
void |
putAll(TradingAgreementAccessBean[] ta)
This method will store the given
TradingAgreementAccessBean object in the registry. |
void |
refresh()
This method this method refreshes the trading agreement registry from the database.
|
void |
refreshDependentRegistry(java.lang.String astrRegistryName)
This method refreshes a dependent registry.
|
java.lang.Object |
retrieve(java.lang.Object key)
This method retrieves a
TradingAgreementAccessBean object from the database. |
static TradingAgreementRegistry |
singleton()
This method returns a singleton instance of the trading agreement registry.
|
void |
update(java.lang.String action,
java.lang.Object key)
This method updates a given trading agreement element.
|
void |
updateDependentRegistry(java.lang.String astrRegistryName,
java.lang.String astrAction,
java.lang.Object aKey)
This method updates a dependent registry.
|
addElement, findObject, getCache, getCacheSize, getElement, getElementCount, getElements, getEvictions, getHits, getKeys, getMisses, getUsedCacheSize, removeAllElements, removeElement, setCache, setCacheSize, setInitialCapacity, setLoadFactor
public TradingAgreementRegistry()
public void addElement(TradingAgreementAccessBean tradingAgreement)
TradingAgreementAccessBean
object to the list.tradingAgreement
- The TradingAgreementAccessBean
to be added to the list.public TradingAgreementAccessBean find(java.lang.String key) throws java.lang.Exception
TradingAgreementAccessBean
with a given id from the cache.key
- The trading agreement identifier.TradingAgreementAccessBean
object.java.lang.Exception
public TradingAgreementAccessBean[] findAll(java.lang.String[] taIdStr) throws java.lang.Exception
TradingAgreementAccessBean
objects with the given ids from the cache.taIdStr
- The list of trading agreement identifiers.TradingAgreementAccessBean
objects.java.lang.Exception
public TradingAgreementAccessBean[] getAll()
TradingAgreementAccessBean
objects in the cacheTradingAgreementAccessBean
objects.public void initialize() throws java.lang.Exception
TradingAgreementRegistry
object.
This will include the initialization of the WcsApp
object with this instance of the registry.initialize
in interface Registry
initialize
in class AbstractManagedDynamicCacheRegistry
java.lang.Exception
public void putAll(TradingAgreementAccessBean[] ta)
TradingAgreementAccessBean
object in the registry.ta
- An array of TradingAgreementAccessBean
objects.public void updateDependentRegistry(java.lang.String astrRegistryName, java.lang.String astrAction, java.lang.Object aKey)
astrRegistryName
- The registry name.astrAction
- The action.aKey
- The key.java.lang.Exception
public void refreshDependentRegistry(java.lang.String astrRegistryName)
astrRegistryName
- The registry name.java.lang.Exception
public void refresh() throws java.lang.Exception
refresh
in interface Registry
refresh
in class AbstractManagedDynamicCacheRegistry
java.lang.Exception
public static TradingAgreementRegistry singleton()
TradingAgreementRegistry
objectpublic void update(java.lang.String action, java.lang.Object key) throws java.lang.Exception
update
in interface ElementUpdate
update
in class AbstractManagedDynamicCacheRegistry
action
- The action. Valid actions are 'add', 'delete' and 'update'.key
- The key that identifies a particular element.java.lang.Exception
public java.lang.Object retrieve(java.lang.Object key) throws java.lang.Exception
TradingAgreementAccessBean
object from the database.retrieve
in class AbstractManagedDynamicCacheRegistry
key
- The key used to locate the object in the database.TradingAgreementAccessBean
object found from the given key.java.lang.Exception
public void populate(com.ibm.commerce.registry.LRUDynamicHashtable aCache) throws java.lang.Exception
populate
in class AbstractManagedDynamicCacheRegistry
aCache
- The Hashtable
to be populatedjava.lang.Exception
public java.lang.String createKeyString(TypedProperty prop) throws java.lang.Exception
createKeyString
in interface ElementUpdate
createKeyString
in class AbstractManagedDynamicCacheRegistry
prop
- The input propertiesjava.lang.Exception
public java.lang.Object createKey(java.lang.String strKey) throws java.lang.Exception
createKey
in interface ElementUpdate
createKey
in class AbstractManagedDynamicCacheRegistry
strkey
- The cache key represented as a String
object.java.lang.Exception