public class CampaignListCursorDataBean
extends com.ibm.commerce.tools.util.CommonSearchHelperBean
implements com.ibm.commerce.security.Protectable, com.ibm.commerce.security.Delegator
CampaignDataBean
data beans for Campaigns associated with a store. This class has
improved performance over CampaignListDataBean
as this class uses a
database cursor to only return the applicable rows from the database (based on the
start and end index), instead of having the client only display the applicable rows
from the entire list of campaigns.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
CampaignListCursorDataBean() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
buildQuery()
This method constructs the database query to fetch the Campaign Ids.
|
void |
buildResultDataBean(java.util.Vector resultVector)
This method constructs the list of
CampaignDataBean data beans
based on the results returned from the database. |
CampaignDataBean[] |
getCampaignList()
Gets an array of
CampaignDataBean objects. |
com.ibm.commerce.security.Protectable |
getDelegate()
This method returns the access control delegate of this data bean.
|
boolean |
getLocalSearch()
Gets the value of the local search flag.
|
java.lang.Long |
getOwner()
This method gets the owner of the e-Marketing Spots.
|
void |
setLocalSearch(boolean newLocalSearch)
Sets the local search flag, a true value will instruct the data bean
to search for campaigns in the current store only; a false value will
instruct the data bean to go up the store path and find all campaigns
owned by stores on the store path.
|
escapeSQLstring, getDefaultLanguageId, getIndexBegin, getIndexEnd, getLanguageId, getListSize, getResultList, getResultSetSize, getStoreId, getStoreIds, getStoreIdsInEntityType, getStoreRelType, getUpperCaseFunction, getUseCursor, populate, setIndexBegin, setIndexEnd, setLanguageId, setResultList, setResultSetSize, setStoreId, setStoreIds, setStoreIdsInEntityType, setStoreRelType, setUseCursor
fulfills, getCommandContext, getHttpRequest, getHttpResponse, getResources, getViewCommandContext, setCommandContext, setHttpRequest, setHttpResponse, setViewCommandContext
getRequestProperties, setRequestProperties
public static final java.lang.String COPYRIGHT
public java.lang.String buildQuery() throws java.lang.Exception
buildQuery
in class com.ibm.commerce.tools.util.CommonSearchHelperBean
CommonSearchHelperBean
class.java.lang.Exception
public void buildResultDataBean(java.util.Vector resultVector)
CampaignDataBean
data beans
based on the results returned from the database.buildResultDataBean
in class com.ibm.commerce.tools.util.CommonSearchHelperBean
resultVector
- The result vector returned from the database query.public CampaignDataBean[] getCampaignList()
CampaignDataBean
objects.CampaignDataBean
objects.public com.ibm.commerce.security.Protectable getDelegate() throws java.lang.Exception
getDelegate
in interface com.ibm.commerce.security.Delegator
java.lang.Exception
public boolean getLocalSearch()
public java.lang.Long getOwner() throws java.lang.Exception
getOwner
in interface com.ibm.commerce.security.Protectable
java.lang.Exception
- raised when there is a remote exceptionpublic void setLocalSearch(boolean newLocalSearch)
newLocalSearch
- True if search on current store only; false otherwise.