com.ibm.commerce.tools.contract.beans
Class AccountListDataBean

java.lang.Object
  com.ibm.commerce.tools.util.CommonSearchHelperBean
      com.ibm.commerce.tools.contract.beans.AccountListDataBean
All Implemented Interfaces:
Delegator, Protectable

public class AccountListDataBean
extends com.ibm.commerce.tools.util.CommonSearchHelperBean
implements Protectable, Delegator

Find Accounts in a store

See Also:
Serialized Form

Field Summary
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
Constructor Summary
AccountListDataBean()
Create a AccountListDataBean
Method Summary
java.lang.String buildQuery()
Construct the database query
void buildResultDataBean(java.util.Vector resultVector)
Construct the list of data beans
AccountDataBean[] getAccountList()
Get the list of entries that were found
AccountDataBean getAccountListData(int index)
Get a specific entry that was found
Protectable getDelegate()
Return the access control delegate of this databean
AccountDataBean[] getMarkForDeleteAccountList()
Get the list of accounts that have been marked to be deleted
int getNumberOfAccounts()
Gets the numberOfAccounts
java.lang.Long getOwner()
Return the member reference number of the owner of the account
void setAccountList(java.util.Vector newAccountList)
Set the list of results found
void setAccountNameLike(java.lang.String anl)
Sets the search parameter for the account name
void setNumberOfAccounts(int numberOfAccounts)
Sets the number of accounts
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills
Field Detail

_deleteAccountList

protected AccountDataBean[] _deleteAccountList

ORDER_BY_CUSTOMER

public static final java.lang.String ORDER_BY_CUSTOMER
The order by constants used in the dynamic list representation of this bean
See Also:
Constant Field Values

ORDER_BY_REPRESENTATIVE

public static final java.lang.String ORDER_BY_REPRESENTATIVE
The order by constants used in the dynamic list representation of this bean
See Also:
Constant Field Values
Constructor Detail

AccountListDataBean

public AccountListDataBean()
Create a AccountListDataBean
Method Detail

buildQuery

public java.lang.String buildQuery()
                            throws java.lang.Exception
Construct the database query
Returns:
the SQL query string.
Throws:
java.lang.Exception

buildResultDataBean

public void buildResultDataBean(java.util.Vector resultVector)
Construct the list of data beans
Parameters:
resultVector - the result vector returned from the query execution

getAccountList

public AccountDataBean[] getAccountList()
Get the list of entries that were found
Returns:
the list of entries that were found

getDelegate

public Protectable getDelegate()
                        throws java.lang.Exception
Return the access control delegate of this databean
Specified by:
getDelegate in interface Delegator
Returns:
the delegate
Throws:
java.lang.Exception

getMarkForDeleteAccountList

public AccountDataBean[] getMarkForDeleteAccountList()
Get the list of accounts that have been marked to be deleted
Returns:
the list of accounts that have been marked to be deleted

getOwner

public java.lang.Long getOwner()
                        throws java.lang.Exception,
                               java.rmi.RemoteException
Return the member reference number of the owner of the account
Specified by:
getOwner in interface Protectable
Returns:
the member reference number of the owner of the account
Throws:
java.rmi.RemoteException
java.lang.Exception

getAccountListData

public AccountDataBean getAccountListData(int index)
                                   throws java.lang.ArrayIndexOutOfBoundsException
Get a specific entry that was found
Parameters:
index - the index of the result array
Returns:
the specific entry that was found
Throws:
java.lang.ArrayIndexOutOfBoundsException

setAccountList

public void setAccountList(java.util.Vector newAccountList)
Set the list of results found
Parameters:
newAccountList - the result list to set

getNumberOfAccounts

public int getNumberOfAccounts()
Gets the numberOfAccounts
Returns:
the number of accounts

setNumberOfAccounts

public void setNumberOfAccounts(int numberOfAccounts)
Sets the number of accounts
Parameters:
numberOfAccounts - the number of accounts

setAccountNameLike

public void setAccountNameLike(java.lang.String anl)
Sets the search parameter for the account name

Feedback