public class AbstractGenerateRankingPolicyCmdImpl extends BusinessPolicyCommandImpl implements GenerateRankingPolicyCmd
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String | COLUMN_AMOUNT
Constant for the column AMOUNT.
|
protected static java.lang.String | COLUMN_OBJECT_ID
Constant for the column OBJECT_ID.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
AbstractGenerateRankingPolicyCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | generate()
Implementations of this method should generate the ranking list.
|
TypedProperty | getParameterProperties()
This method returns the command parameters.
|
Ranking | getRanking()
This method returns the definition of the ranking list.
|
java.util.Map | getRankingResult()
This method returns the map containing the ranking list.
|
void | performExecute()
This method calls the following methods to generate the ranking list: preGenerate - perform any set up generate - create the ranking list postGenerate - update the ranking list if necessary publishRanking - persist the ranking list to the DMRANKINGITEM database table
|
protected void | persistRankingItem(java.lang.Integer sequence, java.util.Map datamap, java.lang.Integer rankingId, java.lang.Long groupId, java.lang.Integer storeId)
This method persists a row to the DMRANKINGITEM database table.
|
protected void | postGenerate()
This method can update the ranking list if necessary.
|
protected void | preGenerate()
This method can perform any set up required before generating the ranking list.
|
protected void | publishRanking(java.util.Map rankingResultMap)
This method persists the ranking list to the DMRANKINGITEM database table.
|
void | setParameterProperties(TypedProperty newParameterProperties)
This method sets the command parameters.
|
void | setRanking(Ranking newRanking)
This method sets the definition of the ranking list.
|
void | setRankingResult(java.util.Map newRankingResult)
This method sets the map containing the ranking list.
|
void | validateParameters()
This method validates that all the required parameters have been set.
|
public static final java.lang.String COPYRIGHT
protected static final java.lang.String COLUMN_OBJECT_ID
protected static final java.lang.String COLUMN_AMOUNT
public AbstractGenerateRankingPolicyCmdImpl()
public void performExecute() throws ECException
protected void preGenerate() throws ECException
protected void generate() throws ECException
protected void postGenerate() throws ECException
protected void publishRanking(java.util.Map rankingResultMap) throws ECException
protected void persistRankingItem(java.lang.Integer sequence, java.util.Map datamap, java.lang.Integer rankingId, java.lang.Long groupId, java.lang.Integer storeId) throws DataMediatorException
public void validateParameters() throws ECException
public Ranking getRanking()
public void setRanking(Ranking newRanking)
public TypedProperty getParameterProperties()
public void setParameterProperties(TypedProperty newParameterProperties)
public java.util.Map getRankingResult()
public void setRankingResult(java.util.Map newRankingResult)