public class PromotionPolicyJDBCPersistenceManager extends com.ibm.commerce.marketing.promotion.persistence.JDBCPersistenceManager implements PromotionPolicyPersistenceManager
XML Snippet for PromotionPolicyJDBCPersistenceManager:
<PromotionPolicyJDBCPersistenceManager impl="com.ibm.commerce.marketing.promotion.policy.PromotionPolicyJDBCPersistenceManager"> <InitialCacheSize>64</InitialCacheSize> <MaxCacheSize>1024</MaxCacheSize> </PromotionPolicyJDBCPersistenceManager>
Constructor and Description |
---|
PromotionPolicyJDBCPersistenceManager()
Default Constructor for PromotionPolicyJDBCPersistenceManager.
|
PromotionPolicyJDBCPersistenceManager(java.sql.Connection con)
Constructor for PromotionPolicyJDBCPersistenceManager.
|
Modifier and Type | Method and Description |
---|---|
void | create(PromotionPolicy policy)
Create a new promotion policy.
|
PromotionPolicyKey[] | findGlobalPolicyKeysByStore(StoreKey key)
Finds all global promotion policies within a store
|
PromotionPolicyKey[] | findPolicyKeysByGroupAndStatus(com.ibm.commerce.marketing.promotion.group.PromotionGroupKey gkey, int status)
Finds promotion policies based on the group with which they are associated and their status
|
void | fromXML(org.w3c.dom.Node anXMLNode)
Transforms an XML node into a real Object.
|
int | getCacheInitialSize()
Gets initial cache size
|
int | getCacheMaxSize()
Gets maximum cache size
|
void | initCache()
Initials the cache.
|
PromotionPolicy | load(PromotionPolicyKey key)
Finds promotion policy by promotion policy key.
|
java.lang.Number | lookup(Key key)
Find policy by key.
|
java.lang.Number | nextNumericKey()
Returns the next primary key value
|
void | reload(PromotionPolicyKey key)
Invalidates the cache for one promotion policy.
|
void | reloadAll()
Invalidates all policies currently in the cache.
|
void | remove(PromotionPolicy policy)
This removing is referring to marked for deletion.
|
Key | reverseLookup(java.lang.Number keyValue)
Find promotion policy by numeric key.
|
void | save(PromotionPolicy policy)
Save promotion policy.
|
void | setCacheInitialSize(int i)
Sets initial cache size
|
void | setCacheMaxSize(int i)
Sets maximum cache size
|
java.lang.String | toXML()
Converts any object into an XML format representation.
|
public PromotionPolicyJDBCPersistenceManager(java.sql.Connection con)
public PromotionPolicyJDBCPersistenceManager()
public void reload(PromotionPolicyKey key)
public void reloadAll()
public PromotionPolicy load(PromotionPolicyKey key) throws PersistenceObjectNotFoundException, PersistenceObjectReadException
public void create(PromotionPolicy policy) throws PersistenceObjectAlreadyExistsException, PersistenceCreateException
public void remove(PromotionPolicy policy) throws PersistenceObjectNotFoundException, PersistenceRemoveException
public void save(PromotionPolicy policy) throws PersistenceObjectNotFoundException, PersistenceObjectWriteException
public java.lang.Number lookup(Key key)
public Key reverseLookup(java.lang.Number keyValue)
public java.lang.Number nextNumericKey()
public PromotionPolicyKey[] findGlobalPolicyKeysByStore(StoreKey key)
public PromotionPolicyKey[] findPolicyKeysByGroupAndStatus(com.ibm.commerce.marketing.promotion.group.PromotionGroupKey gkey, int status)
public java.lang.String toXML() throws XMLizationException
public void fromXML(org.w3c.dom.Node anXMLNode) throws DeXMLizationException
public void setCacheInitialSize(int i)
public void setCacheMaxSize(int i)
public int getCacheInitialSize()
public int getCacheMaxSize()
public void initCache()