public class CollateralSearchCmdImpl extends DataBeanCommandImpl implements CollateralSearchListBeanConsts, CollateralSearchUtilityConstants, CollateralSearchCmd
Modifier and Type | Field and Description |
---|---|
protected CollateralSearchUtility | collSearch
Instance variable for CollateralSearchUtility.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
protected CampaignCollateralDataBean[] | cpgnCollDataBeans
Instance variable for array of collateral beans that is returned by this search command.
|
protected java.lang.String | orderBy
Instance variable for orderBy column.
|
Constructor and Description |
---|
CollateralSearchCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | constructOrderBy()
Constructs Order By Clause.
|
protected void | constructQueryPredicate()
Constructs WHERE clause predicates for following search parameters: Name, Additional Text, File Name, Click URL
|
protected void | constructResultAttribute()
Sets the result column in the Query.
|
protected void | constructStorePredicate()
Sets the store ID in the query.
|
protected CampaignCollateralDataBean[] | convertResultToDatabean(java.util.Vector result)
Converts result set to CampaignCollateralDataBean.
|
CampaignCollateralDataBean[] | getCpgnCollDataBeans()
Gets all the collateral data beans that matches this search.
|
java.lang.String | getFileName()
Gets the value of the File Name search criteria used in the search.
|
java.lang.String | getFileNameOperator()
Gets the operator of the File Name search criteria used in the search.
|
java.lang.String | getIniPos()
Gets the start position for result set cursor.
|
java.lang.String | getMaxResult()
Gets the maximum number of results to be returned in the search.
|
java.lang.String | getMktTxt()
Gets the value of the Marketing Text search criteria used in the search.
|
java.lang.String | getMktTxtOperator()
Gets the operator of the Marketing Text search criteria used in the search.
|
java.lang.String | getName()
Gets the value of the Collateral Name search criteria used in the search.
|
java.lang.String | getNameOperator()
Gets the operator of the Collateral Name search criteria used in the search.
|
java.lang.String | getOrderBy()
Gets the value of the order by clause used in the search query.
|
protected java.lang.Integer | getOrderByField()
Helper method to retrieve the right column name that matches a string constant provided by UI for Order by column.
|
protected int | getStringOperator(java.lang.String opKey)
Converts operators constants (LIKE,EQUAL) passed by UI to search interface static integer constant.
|
java.lang.String | getURL()
Gets the value of the Collateral URL search criteria used in the search.
|
java.lang.String | getURLOperator()
Gets the operator of the Collateral URL search criteria used in the search.
|
protected void | initialize()
Initializes this command by populating the command with values in command databean.
|
boolean | isReadyToCallExecute()
Checks to see if the command is ready to call.
|
void | performExecute()
This method performs the execution of this command, where the search query is being constructed and executed, and the result set is used to generate the result of the search in the form of collateral data beans.
|
void | populateDataBeanCommand(InputDataBean aCollateralSearchListDataBean)
This method populates the value of all search criterion to this search command from the input data bean.
|
protected void | setCollDataBeans()
Sets the result collateral data bean array result to calling data bean.
|
void | setCpgnCollDataBeans(CampaignCollateralDataBean[] beans)
Sets the array of collateral beans that is returned by this search command.
|
protected void | setDataBeanAttr(CollateralSearchListDataBean aDataBean)
Gets the value from databean and sets into command.
|
void | setFileName(java.lang.String fileNam)
Sets the value of the File Name search criteria used in the search.
|
void | setFileNameOperator(java.lang.String fileNameOptr)
Sets the operator of the File Name search criteria used in the search.
|
void | setIniPos(java.lang.String iniPosition)
Sets the start position for result set cursor.
|
protected void | setLanguageId()
Sets the language ID in the Query.
|
void | setMaxResult(java.lang.String maxRes)
Sets the maximum number of results to be returned in the search.
|
void | setMktTxt(java.lang.String mktText)
Sets the value of the Marketing Text search criteria used in the search.
|
void | setMktTxtOperator(java.lang.String mktTxtOptr)
Sets the operator of the Marketing Text search criteria used in the search.
|
void | setName(java.lang.String nam)
Sets the value of the Collateral Name search criteria used in the search.
|
void | setNameOperator(java.lang.String nameOptr)
Sets the operator of the Collateral Name search criteria used in the search.
|
void | setOrderBy(java.lang.String string)
Sets the value of the order by clause used in the search query.
|
void | setURL(java.lang.String ClkURL)
Sets the value of the Collateral URL search criteria used in the search.
|
void | setURLOperator(java.lang.String URLOptr)
Sets the operator of the Collateral URL search criteria used in the search.
|
public static final java.lang.String COPYRIGHT
protected CollateralSearchUtility collSearch
protected CampaignCollateralDataBean[] cpgnCollDataBeans
protected java.lang.String orderBy
public CampaignCollateralDataBean[] getCpgnCollDataBeans()
public java.lang.String getFileName()
public java.lang.String getFileNameOperator()
public java.lang.String getIniPos()
public java.lang.String getMaxResult()
public java.lang.String getMktTxt()
public java.lang.String getMktTxtOperator()
public java.lang.String getName()
public java.lang.String getNameOperator()
public java.lang.String getOrderBy()
public java.lang.String getURL()
public java.lang.String getURLOperator()
public void performExecute() throws ECException
public void populateDataBeanCommand(InputDataBean aCollateralSearchListDataBean)
public void setCpgnCollDataBeans(CampaignCollateralDataBean[] beans)
public void setFileName(java.lang.String fileNam)
public void setFileNameOperator(java.lang.String fileNameOptr)
public void setIniPos(java.lang.String iniPosition)
public void setMaxResult(java.lang.String maxRes)
public void setMktTxt(java.lang.String mktText)
public void setMktTxtOperator(java.lang.String mktTxtOptr)
public void setName(java.lang.String nam)
public void setNameOperator(java.lang.String nameOptr)
public void setOrderBy(java.lang.String string)
public void setURL(java.lang.String ClkURL)
public void setURLOperator(java.lang.String URLOptr)
protected void constructOrderBy() throws java.lang.Exception
protected void constructQueryPredicate() throws java.lang.Exception
protected void constructResultAttribute() throws java.lang.Exception
protected void constructStorePredicate() throws java.lang.Exception
protected CampaignCollateralDataBean[] convertResultToDatabean(java.util.Vector result) throws java.lang.Exception
protected java.lang.Integer getOrderByField()
protected int getStringOperator(java.lang.String opKey)
protected void initialize()
protected void setCollDataBeans()
protected void setDataBeanAttr(CollateralSearchListDataBean aDataBean)
protected void setLanguageId() throws java.lang.NumberFormatException, java.lang.Exception
public boolean isReadyToCallExecute()