public class AccountListDataBean extends com.ibm.commerce.tools.util.CommonSearchHelperBean implements Protectable, Delegator
Modifier and Type | Field and Description |
---|---|
protected AccountDataBean[] | _deleteAccountList |
static java.lang.String | ORDER_BY_CUSTOMER
The order by constants used in the dynamic list representation of this bean
|
static java.lang.String | ORDER_BY_REPRESENTATIVE
The order by constants used in the dynamic list representation of this bean
|
static int | SEARCHTYPE_ACCOUNT_COUNT
Total Accounts Count search type constant
|
static int | SEARCHTYPE_EXACT_MATCH
Exact Match with keyword search type constant
|
static int | SEARCHTYPE_IGNORE_CASE_BEGIN
Ignore case beginning with keyword search type constant
|
static int | SEARCHTYPE_IGNORE_CASE_CONTAIN
Ignore case containing with keyword search type constant
|
static int | SEARCHTYPE_MATCH_CASE_BEGIN
Match case beginning with keyword search type constant
|
static int | SEARCHTYPE_MATCH_CASE_CONTAIN
Match case containing with keyword search type constant
|
static int | SEARCHTYPE_SEARCH_ALL
Default searches all search type constant
|
static java.lang.String | TYPE_EXACT
TYPE_EXACT pattern match constant
|
static java.lang.String | TYPE_LIKE
TYPE_LIKE pattern match constant
|
Constructor and Description |
---|
AccountListDataBean()
Creates an AccountListDataBean
|
Modifier and Type | Method and Description |
---|---|
java.lang.String | buildQuery()
Constructs the database query according to the search criteria type.
|
java.lang.String | buildQueryByCriteriaType(int criteriaType)
Constructs a query string to retrieve all accounts match to the search criteria type.
|
java.lang.String | buildQueryOriginal()
Constructs the database query.
|
java.lang.String | buildQueryTotalAccountsForSearch()
Constructs a query string to find out how many accounts available in system (excluding the one has been marked for deleted).
|
void | buildResultDataBean(java.util.Vector resultVector)
Constructs the list of data beans according to the search criteria type
|
void | buildResultDataBeanOriginal(java.util.Vector resultVector)
Constructs the list of data beans
|
void | buildResultDataBeanTotalAccountsForSearch(java.util.Vector resultVector)
Constructs the list of data beans
|
AccountDataBean[] | getAccountList()
Gets the list of entries that were found
|
AccountDataBean | getAccountListData(int index)
Gets a specific entry that was found
|
Protectable | getDelegate()
Returns the access control delegate of this data bean
|
boolean | getLightWeightAccountDataBeanFlag()
Checks the flag of using lightweight data bean approach
|
AccountDataBean[] | getMarkForDeleteAccountList()
Gets the list of accounts that have been marked to be deleted
|
int | getNumberOfAccounts()
Gets the number of accounts
|
java.lang.Long | getOwner()
Returns the member reference number of the owner of the account
|
int | getSearchCriteriaType()
Returns the search criteria type that has been set in method setSearchCriteriaType(int searchType).
|
java.lang.String | getSearchKeyword()
Returns the Search keyword that has been set in method setSearchKeyword(String searchString).
|
int | getSearchMaxThreshold()
Returns the threshold of maximum search results that has been set in method setSearchMaxThreshold(int maxNumOfResult). The default value is 100.
|
java.lang.String | getSearchName()
Gets the search name parameter.
|
java.lang.String | getSearchNameFilter()
Gets the search name filter parameter.
|
boolean | hasNumOfSearchResultsExceededMax()
Checks the recent search results exceeding specified threshold.
|
void | setAccountList(java.util.Vector newAccountList)
Sets the list of results found
|
void | setAccountNameLike(java.lang.String anl)
Sets the search parameter for the account name
|
void | setLightWeightAccountDataBeanFlag(boolean turnOn)
Toggle the flag indicating to use lightweight account data bean during populating.
|
void | setNumberOfAccounts(int numberOfAccounts)
Sets the number of accounts
|
protected void | setNumOfSearchResultsExceededMax(boolean exceeded)
Toggle the flag indicating the total numbers of accounts found from the recent search via populating exceeds the specified threshold or not.
|
void | setSearchCriteria(int searchType, java.lang.String searchString, int maxNumOfResult)
To specify the search criteria option before populating the data bean.
|
void | setSearchCriteriaType(int searchType)
To specify the search criteria type before populating the data bean.
|
void | setSearchKeyword(java.lang.String searchString)
To specify the search keyword string before populating the data bean.
|
void | setSearchMaxThreshold(int maxNumOfResult)
To specify the threshold of maximum search results before populating the data bean.
|
void | setSearchName(java.lang.String searchName)
Sets the search name parameter.
|
void | setSearchNameFilter(java.lang.String searchNameFilter)
Sets the search name filter parameter
|
protected AccountDataBean[] _deleteAccountList
public static final java.lang.String TYPE_LIKE
public static final java.lang.String TYPE_EXACT
public static final int SEARCHTYPE_SEARCH_ALL
public static final int SEARCHTYPE_MATCH_CASE_BEGIN
public static final int SEARCHTYPE_MATCH_CASE_CONTAIN
public static final int SEARCHTYPE_IGNORE_CASE_BEGIN
public static final int SEARCHTYPE_IGNORE_CASE_CONTAIN
public static final int SEARCHTYPE_EXACT_MATCH
public static final int SEARCHTYPE_ACCOUNT_COUNT
public static final java.lang.String ORDER_BY_CUSTOMER
public static final java.lang.String ORDER_BY_REPRESENTATIVE
public java.lang.String buildQueryOriginal() throws java.lang.Exception
public void buildResultDataBeanOriginal(java.util.Vector resultVector)
public AccountDataBean[] getAccountList()
public Protectable getDelegate() throws java.lang.Exception
public AccountDataBean[] getMarkForDeleteAccountList()
public java.lang.Long getOwner() throws java.lang.Exception, java.rmi.RemoteException
public AccountDataBean getAccountListData(int index) throws java.lang.ArrayIndexOutOfBoundsException
public void setAccountList(java.util.Vector newAccountList)
public int getNumberOfAccounts()
public void setNumberOfAccounts(int numberOfAccounts)
public void setAccountNameLike(java.lang.String anl)
public java.lang.String getSearchName()
public void setSearchName(java.lang.String searchName)
public java.lang.String getSearchNameFilter()
public void setSearchNameFilter(java.lang.String searchNameFilter)
public void setSearchCriteria(int searchType, java.lang.String searchString, int maxNumOfResult)
public void setSearchCriteriaType(int searchType)
public void setSearchKeyword(java.lang.String searchString)
public void setSearchMaxThreshold(int maxNumOfResult)
public int getSearchCriteriaType()
public java.lang.String getSearchKeyword()
public int getSearchMaxThreshold()
protected void setNumOfSearchResultsExceededMax(boolean exceeded)
public boolean hasNumOfSearchResultsExceededMax()
public void setLightWeightAccountDataBeanFlag(boolean turnOn)
public boolean getLightWeightAccountDataBeanFlag()
public java.lang.String buildQuery() throws java.lang.Exception
public void buildResultDataBean(java.util.Vector resultVector)
public void buildResultDataBeanTotalAccountsForSearch(java.util.Vector resultVector)
public java.lang.String buildQueryTotalAccountsForSearch()
public java.lang.String buildQueryByCriteriaType(int criteriaType)