com.ibm.commerce.payment.objects
Class AccountAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.payment.objects.AccountAccessBean
All Implemented Interfaces:
AccountAccessBeanData, java.io.Serializable

public class AccountAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements AccountAccessBeanData

This bean provides access to the ACCOUNT table.

The following is a description of this table:

Each row of this table represents a business account between a Buyer organization and a Seller organization. A business account can be used to organize various Trading Agreements and to specify special Trading Terms and Conditions.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
AccountAccessBean()
          Default constructor.
AccountAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
AccountAccessBean(java.lang.String name, java.lang.Long memberId)
          Creates an instance of an AccountAccessBean with the specified name for the specified member.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findActiveAccountsByBuyerOrgAndStore(java.lang.Long buyerOrgId, java.lang.Integer storeId)
          Retrieves all the active Accounts that the Store has with the specified Buyer organization.
 AccountAccessBean findByNameAndMemberId(java.lang.String name, java.lang.Long memberId)
          Retrieves the Account with the specified name and member ID.
 java.util.Enumeration findByStoreIdSortByColumn(java.lang.Integer storeId, java.lang.String columnName)
          Retrieves all the Accounts for the Store sorted by the specified column.
 java.util.Enumeration findMarkForDeleteAccountsByStoreId(java.lang.Integer storeId)
          Retrieves all the Accounts for the specified Store that have been marked for delete.
 boolean fulfills(java.lang.Long memberId, java.lang.String relationship)
          This method determines if a given member fulfills a given relationship with the bean.
 java.lang.String getAccountId()
          This method provides access to the ACCOUNT.ACCOUNT_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getAccountIdInEJBType()
          This method provides access to the ACCOUNT.ACCOUNT_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getComments()
          This method provides access to the ACCOUNT.COMMENTS column of DB2 type LONG NULL.
 java.lang.String getCurrency()
          This method provides access to the ACCOUNT.CURRENCY column of DB2 type CHAR(3) NULL.
 java.lang.String getDefaultContract()
          This method provides access to the ACCOUNT.DEFAULTCONTRACT column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getDefaultContractInEJBType()
          This method provides access to the ACCOUNT.DEFAULTCONTRACT column of DB2 type INTEGER NOT NULL.
 java.lang.String getMarkForDelete()
          This method provides access to the ACCOUNT.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getMarkForDeleteInEJBType()
          This method provides access to the ACCOUNT.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 java.lang.String getMemberId()
          This method provides access to the ACCOUNT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getMemberIdInEJBType()
          This method provides access to the ACCOUNT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getName()
          This method provides access to the ACCOUNT.NAME column of DB2 type VARCHAR(200) NOT NULL.
 java.lang.Long getOwner()
          Returns the member reference number of the owner of the resource, in this case, the bean.
 java.lang.String getState()
          This method provides access to the ACCOUNT.STATE column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getStateInEJBType()
          This method provides access to the ACCOUNT.STATE column of DB2 type INTEGER NOT NULL.
 java.lang.String getStoreId()
          This method provides access to the ACCOUNT.STORE_ID column of DB2 type INTEGER NULL.
 java.lang.Integer getStoreIdInEJBType()
          This method provides access to the ACCOUNT.STORE_ID column of DB2 type INTEGER NULL.
 java.lang.String getTimeActivated()
          This method provides access to the ACCOUNT.TIMEACTIVATED column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getTimeActivatedInEJBType()
          This method provides access to the ACCOUNT.TIMEACTIVATED column of DB2 type TIMESTAMP NULL.
 java.lang.String getTimeApproved()
          This method provides access to the ACCOUNT.TIMEAPPROVED column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getTimeApprovedInEJBType()
          This method provides access to the ACCOUNT.TIMEAPPROVED column of DB2 type TIMESTAMP NULL.
 java.lang.String getTimeCreated()
          This method provides access to the ACCOUNT.TIMECREATED column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getTimeCreatedInEJBType()
          This method provides access to the ACCOUNT.TIMECREATED column of DB2 type TIMESTAMP NULL.
 java.lang.String getTimeUpdated()
          This method provides access to the ACCOUNT.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getTimeUpdatedInEJBType()
          This method provides access to the ACCOUNT.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setAccountId(java.lang.Long aAccountId)
          This method provides access to the ACCOUNT.ACCOUNT_ID column of DB2 type BIGINT NOT NULL.
 void setAccountId(java.lang.String aAccountId)
          This method provides access to the ACCOUNT.ACCOUNT_ID column of DB2 type BIGINT NOT NULL.
 void setComments(java.lang.String aComments)
          This method provides access to the ACCOUNT.COMMENTS column of DB2 type LONG NULL.
 void setCurrency(java.lang.String aCurrency)
          This method provides access to the ACCOUNT.CURRENCY column of DB2 type CHAR(3) NULL.
 void setDefaultContract(java.lang.Integer aDefaultContract)
          This method provides access to the ACCOUNT.DEFAULTCONTRACT column of DB2 type INTEGER NOT NULL.
 void setDefaultContract(java.lang.String aDefaultContract)
          This method provides access to the ACCOUNT.DEFAULTCONTRACT column of DB2 type INTEGER NOT NULL.
 void setInitKey_accountId(java.lang.String aInitKey_accountId)
          Sets the primary key for this object
 void setMarkForDelete(java.lang.Integer aMarkForDelete)
          This method provides access to the ACCOUNT.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 void setMarkForDelete(java.lang.String aMarkForDelete)
          This method provides access to the ACCOUNT.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 void setMemberId(java.lang.Long aMemberId)
          This method provides access to the ACCOUNT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setMemberId(java.lang.String aMemberId)
          This method provides access to the ACCOUNT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setName(java.lang.String aName)
          This method provides access to the ACCOUNT.NAME column of DB2 type VARCHAR(200) NOT NULL.
 void setState(java.lang.Integer aState)
          This method provides access to the ACCOUNT.STATE column of DB2 type INTEGER NOT NULL.
 void setState(java.lang.String aState)
          This method provides access to the ACCOUNT.STATE column of DB2 type INTEGER NOT NULL.
 void setStoreId(java.lang.Integer aStoreId)
          This method provides access to the ACCOUNT.STORE_ID column of DB2 type INTEGER NULL.
 void setStoreId(java.lang.String aStoreId)
          This method provides access to the ACCOUNT.STORE_ID column of DB2 type INTEGER NULL.
 void setTimeActivated(java.lang.String aTimeActivated)
          This method provides access to the ACCOUNT.TIMEACTIVATED column of DB2 type TIMESTAMP NULL.
 void setTimeActivated(java.sql.Timestamp aTimeActivated)
          This method provides access to the ACCOUNT.TIMEACTIVATED column of DB2 type TIMESTAMP NULL.
 void setTimeApproved(java.lang.String aTimeApproved)
          This method provides access to the ACCOUNT.TIMEAPPROVED column of DB2 type TIMESTAMP NULL.
 void setTimeApproved(java.sql.Timestamp aTimeApproved)
          This method provides access to the ACCOUNT.TIMEAPPROVED column of DB2 type TIMESTAMP NULL.
 void setTimeCreated(java.lang.String aTimeCreated)
          This method provides access to the ACCOUNT.TIMECREATED column of DB2 type TIMESTAMP NULL.
 void setTimeCreated(java.sql.Timestamp aTimeCreated)
          This method provides access to the ACCOUNT.TIMECREATED column of DB2 type TIMESTAMP NULL.
 void setTimeUpdated(java.lang.String aTimeUpdated)
          This method provides access to the ACCOUNT.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 void setTimeUpdated(java.sql.Timestamp aTimeUpdated)
          This method provides access to the ACCOUNT.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountAccessBean

public AccountAccessBean()

Default constructor. Maps to findByPrimaryKey.


AccountAccessBean

public AccountAccessBean(javax.ejb.EJBObject object)
                  throws java.rmi.RemoteException

Creates an access bean for the specified EJB

Parameters:
object - The EJB Object used for the access bean construction.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

AccountAccessBean

public AccountAccessBean(java.lang.String name,
                         java.lang.Long memberId)
                  throws javax.ejb.CreateException,
                         javax.ejb.FinderException,
                         javax.naming.NamingException,
                         java.rmi.RemoteException

Creates an instance of an AccountAccessBean with the specified name for the specified member.

Parameters:
name - The name of the Account. This name must be unique for the given member.
memberId - The ID of the member who owns the Account.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
Method Detail

commitCopyHelper

public void commitCopyHelper()
                      throws java.rmi.RemoteException,
                             javax.ejb.CreateException,
                             javax.ejb.FinderException,
                             javax.naming.NamingException

Update(flush) data to the EJBObject (persistent storage).

Overrides:
commitCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findActiveAccountsByBuyerOrgAndStore

public java.util.Enumeration findActiveAccountsByBuyerOrgAndStore(java.lang.Long buyerOrgId,
                                                                  java.lang.Integer storeId)
                                                           throws java.rmi.RemoteException,
                                                                  javax.ejb.FinderException,
                                                                  javax.naming.NamingException

Retrieves all the active Accounts that the Store has with the specified Buyer organization.

The SQL query used to fetch all the required rows is:

SELECT * FROM ACCOUNT T1 WHERE T1.ACCOUNT_ID IN (SELECT PARTICIPNT.TRADING_ID FROM PARTICIPNT WHERE PARTICIPNT.TERMCOND_ID IS NULL AND PARTICIPNT.PARTROLE_ID=5 AND PARTICIPNT.MEMBER_ID=?) AND T1.STATE=3 AND T1.MARKFORDELETE=0 AND T1.STORE_ID=?

Parameters:
buyerOrgId - The ID of the Buyer organization.
storeId - The ID of the Store.
Returns:
An Enumeration of all the AccountAccessBeans representing rows of the Account table that satisfy the above query.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByNameAndMemberId

public AccountAccessBean findByNameAndMemberId(java.lang.String name,
                                               java.lang.Long memberId)
                                        throws java.rmi.RemoteException,
                                               javax.ejb.FinderException,
                                               javax.naming.NamingException

Retrieves the Account with the specified name and member ID.

The SQL query used to fetch the requested row for this Account is:

SELECT * FROM ACCOUNT T1 WHERE T1.NAME=? AND T1.MEMBER_ID=?

Parameters:
name - The name of the Account.
memberId - The ID of the member who owns the Account.
Returns:
The AccountAccessBean representing the retrieved Account.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByStoreIdSortByColumn

public java.util.Enumeration findByStoreIdSortByColumn(java.lang.Integer storeId,
                                                       java.lang.String columnName)
                                                throws java.rmi.RemoteException,
                                                       javax.ejb.FinderException,
                                                       javax.naming.NamingException

Retrieves all the Accounts for the Store sorted by the specified column.

The SQL query used to fetch the required rows is:

SELECT * FROM ACCOUNT T1 WHERE T1.STORE_ID=? ORDER BY ?

Parameters:
storeId - The ID of the Store.
columnName - The name of the table column.
Returns:
An Enumeration of AccountAccessBeans representing rows of the Account table that satisfy the above query.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findMarkForDeleteAccountsByStoreId

public java.util.Enumeration findMarkForDeleteAccountsByStoreId(java.lang.Integer storeId)
                                                         throws java.rmi.RemoteException,
                                                                javax.ejb.FinderException,
                                                                javax.naming.NamingException

Retrieves all the Accounts for the specified Store that have been marked for delete.

The SQL query used to fetch all the required rows is:

SELECT * FROM ACCOUNT T1 WHERE T1.STORE_ID=? AND T1.MARKFORDELETE=1

Parameters:
storeId - ID of the Store.
Returns:
An Enumeration of the AccountAccessBeans representing rows of the Account table that satisfy the above query.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

fulfills

public boolean fulfills(java.lang.Long memberId,
                        java.lang.String relationship)
                 throws java.rmi.RemoteException,
                        java.lang.Exception,
                        javax.ejb.FinderException,
                        javax.naming.NamingException

This method determines if a given member fulfills a given relationship with the bean. This method is called by the Access Control framework. As it is, this method will never be called for the Account DataBean.

Parameters:
memberId - The ID of the member.
relationship - The relationship to be checked.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
java.lang.Exception - The java.lang.Exception exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getAccountId

public java.lang.String getAccountId()
                              throws java.rmi.RemoteException,
                                     javax.ejb.CreateException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException

This method provides access to the ACCOUNT.ACCOUNT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

This column contains the primary key: Account ID. Foreign key to the TRADING table.

Specified by:
getAccountId in interface AccountAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getAccountIdInEJBType

public java.lang.Long getAccountIdInEJBType()
                                     throws java.rmi.RemoteException,
                                            javax.ejb.CreateException,
                                            javax.ejb.FinderException,
                                            javax.naming.NamingException

This method provides access to the ACCOUNT.ACCOUNT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

This column contains the primary key: Account ID. Foreign key to the TRADING table.

Returns:
java.lang.Long
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getComments

public java.lang.String getComments()
                             throws java.rmi.RemoteException,
                                    javax.ejb.CreateException,
                                    javax.ejb.FinderException,
                                    javax.naming.NamingException

This method provides access to the ACCOUNT.COMMENTS column of DB2 type LONG NULL.

The following is a description of this column:

This column contains a comment for the business account.

Specified by:
getComments in interface AccountAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getCurrency

public java.lang.String getCurrency()
                             throws java.rmi.RemoteException,
                                    javax.ejb.CreateException,
                                    javax.ejb.FinderException,
                                    javax.naming.NamingException

This method provides access to the ACCOUNT.CURRENCY column of DB2 type CHAR(3) NULL.

The following is a description of this column:

Reserved for IBM internal use.

Specified by:
getCurrency in interface AccountAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getDefaultContract

public java.lang.String getDefaultContract()
                                    throws java.rmi.RemoteException,
                                           javax.ejb.CreateException,
                                           javax.ejb.FinderException,
                                           javax.naming.NamingException

This method provides access to the ACCOUNT.DEFAULTCONTRACT column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates if purchases using Store default contract is allowed: 0 = Not allowed; 1 = Allowed.

Specified by:
getDefaultContract in interface AccountAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getDefaultContractInEJBType

public java.lang.Integer getDefaultContractInEJBType()
                                              throws java.rmi.RemoteException,
                                                     javax.ejb.CreateException,
                                                     javax.ejb.FinderException,
                                                     javax.naming.NamingException

This method provides access to the ACCOUNT.DEFAULTCONTRACT column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates if purchases using Store default contract is allowed: 0 = Not allowed; 1 = Allowed.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getMarkForDelete

public java.lang.String getMarkForDelete()
                                  throws java.rmi.RemoteException,
                                         javax.ejb.CreateException,
                                         javax.ejb.FinderException,
                                         javax.naming.NamingException

This method provides access to the ACCOUNT.MARKFORDELETE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates if a business account is marked for deletion: 0 = No; 1 = Marked for delete.

Specified by:
getMarkForDelete in interface AccountAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getMarkForDeleteInEJBType

public java.lang.Integer getMarkForDeleteInEJBType()
                                            throws java.rmi.RemoteException,
                                                   javax.ejb.CreateException,
                                                   javax.ejb.FinderException,
                                                   javax.naming.NamingException

This method provides access to the ACCOUNT.MARKFORDELETE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates if a business account is marked for deletion: 0 = No; 1 = Marked for delete.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getMemberId

public java.lang.String getMemberId()
                             throws java.rmi.RemoteException,
                                    javax.ejb.CreateException,
                                    javax.ejb.FinderException,
                                    javax.naming.NamingException

This method provides access to the ACCOUNT.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The owner of the Account. Foreign key to the MEMBER table.

Specified by:
getMemberId in interface AccountAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getMemberIdInEJBType

public java.lang.Long getMemberIdInEJBType()
                                    throws java.rmi.RemoteException,
                                           javax.ejb.CreateException,
                                           javax.ejb.FinderException,
                                           javax.naming.NamingException

This method provides access to the ACCOUNT.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The owner of the Account. Foreign key to the MEMBER table.

Returns:
java.lang.Long
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getName

public java.lang.String getName()
                         throws java.rmi.RemoteException,
                                javax.ejb.CreateException,
                                javax.ejb.FinderException,
                                javax.naming.NamingException

This method provides access to the ACCOUNT.NAME column of DB2 type VARCHAR(200) NOT NULL.

The following is a description of this column:

Account name for the business account.

Specified by:
getName in interface AccountAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getOwner

public java.lang.Long getOwner()
                        throws java.lang.Exception,
                               java.rmi.RemoteException,
                               javax.ejb.FinderException,
                               javax.naming.NamingException

Returns the member reference number of the owner of the resource, in this case, the bean. This method is called by the Access Control Framework to control access to the bean.

Returns:
the member reference number of the owner of the bean.
Throws:
java.lang.Exception - The java.lang.Exception exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getState

public java.lang.String getState()
                          throws java.rmi.RemoteException,
                                 javax.ejb.CreateException,
                                 javax.ejb.FinderException,
                                 javax.naming.NamingException

This method provides access to the ACCOUNT.STATE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

State of the Account. Only the following states are used:
0 - Initial;
3 - Active;
6 - Closed.

Specified by:
getState in interface AccountAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getStateInEJBType

public java.lang.Integer getStateInEJBType()
                                    throws java.rmi.RemoteException,
                                           javax.ejb.CreateException,
                                           javax.ejb.FinderException,
                                           javax.naming.NamingException

This method provides access to the ACCOUNT.STATE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

State of the Account. Only the following states are used:
0 - Initial;
3 - Active;
6 - Closed.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getStoreId

public java.lang.String getStoreId()
                            throws java.rmi.RemoteException,
                                   javax.ejb.CreateException,
                                   javax.ejb.FinderException,
                                   javax.naming.NamingException

This method provides access to the ACCOUNT.STORE_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

Store in which Account is first created.

Specified by:
getStoreId in interface AccountAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getStoreIdInEJBType

public java.lang.Integer getStoreIdInEJBType()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.ejb.FinderException,
                                             javax.naming.NamingException

This method provides access to the ACCOUNT.STORE_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

Store in which Account is first created.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTimeActivated

public java.lang.String getTimeActivated()
                                  throws java.rmi.RemoteException,
                                         javax.ejb.CreateException,
                                         javax.ejb.FinderException,
                                         javax.naming.NamingException

This method provides access to the ACCOUNT.TIMEACTIVATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time Account is activated.

Specified by:
getTimeActivated in interface AccountAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTimeActivatedInEJBType

public java.sql.Timestamp getTimeActivatedInEJBType()
                                             throws java.rmi.RemoteException,
                                                    javax.ejb.CreateException,
                                                    javax.ejb.FinderException,
                                                    javax.naming.NamingException

This method provides access to the ACCOUNT.TIMEACTIVATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time Account is activated.

Returns:
java.sql.Timestamp
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTimeApproved

public java.lang.String getTimeApproved()
                                 throws java.rmi.RemoteException,
                                        javax.ejb.CreateException,
                                        javax.ejb.FinderException,
                                        javax.naming.NamingException

This method provides access to the ACCOUNT.TIMEAPPROVED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Reserved for IBM internal use.

Specified by:
getTimeApproved in interface AccountAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTimeApprovedInEJBType

public java.sql.Timestamp getTimeApprovedInEJBType()
                                            throws java.rmi.RemoteException,
                                                   javax.ejb.CreateException,
                                                   javax.ejb.FinderException,
                                                   javax.naming.NamingException

This method provides access to the ACCOUNT.TIMEAPPROVED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Reserved for IBM internal use.

Returns:
java.sql.Timestamp
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTimeCreated

public java.lang.String getTimeCreated()
                                throws java.rmi.RemoteException,
                                       javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException

This method provides access to the ACCOUNT.TIMECREATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time Account is created.

Specified by:
getTimeCreated in interface AccountAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTimeCreatedInEJBType

public java.sql.Timestamp getTimeCreatedInEJBType()
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.CreateException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException

This method provides access to the ACCOUNT.TIMECREATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time Account is created.

Returns:
java.sql.Timestamp
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTimeUpdated

public java.lang.String getTimeUpdated()
                                throws java.rmi.RemoteException,
                                       javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException

This method provides access to the ACCOUNT.TIMEUPDATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time Account is updated.

Specified by:
getTimeUpdated in interface AccountAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTimeUpdatedInEJBType

public java.sql.Timestamp getTimeUpdatedInEJBType()
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.CreateException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException

This method provides access to the ACCOUNT.TIMEUPDATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time Account is updated.

Returns:
java.sql.Timestamp
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Load data from the EJBObject.

Overrides:
refreshCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setAccountId

public void setAccountId(java.lang.Long aAccountId)

This method provides access to the ACCOUNT.ACCOUNT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

This column contains the primary key: Account ID. Foreign key to the TRADING table.

Parameters:
aAccountId - java.lang.Long

setAccountId

public void setAccountId(java.lang.String aAccountId)

This method provides access to the ACCOUNT.ACCOUNT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

This column contains the primary key: Account ID. Foreign key to the TRADING table.

Specified by:
setAccountId in interface AccountAccessBeanData
Parameters:
aAccountId - java.lang.String

setComments

public void setComments(java.lang.String aComments)

This method provides access to the ACCOUNT.COMMENTS column of DB2 type LONG NULL.

The following is a description of this column:

This column contains a comment for the business account.

Specified by:
setComments in interface AccountAccessBeanData
Parameters:
aComments - java.lang.String

setCurrency

public void setCurrency(java.lang.String aCurrency)

This method provides access to the ACCOUNT.CURRENCY column of DB2 type CHAR(3) NULL.

The following is a description of this column:

Reserved for IBM internal use.

Specified by:
setCurrency in interface AccountAccessBeanData
Parameters:
aCurrency - java.lang.String

setDefaultContract

public void setDefaultContract(java.lang.Integer aDefaultContract)

This method provides access to the ACCOUNT.DEFAULTCONTRACT column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates if purchases using Store default contract is allowed: 0 = Not allowed; 1 = Allowed.

Parameters:
aDefaultContract - java.lang.Integer

setDefaultContract

public void setDefaultContract(java.lang.String aDefaultContract)

This method provides access to the ACCOUNT.DEFAULTCONTRACT column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates if purchases using Store default contract is allowed: 0 = Not allowed; 1 = Allowed.

Specified by:
setDefaultContract in interface AccountAccessBeanData
Parameters:
aDefaultContract - java.lang.String

setInitKey_accountId

public void setInitKey_accountId(java.lang.String aInitKey_accountId)

Sets the primary key for this object

Parameters:
aInitKey_accountId - java.lang.String

setMarkForDelete

public void setMarkForDelete(java.lang.Integer aMarkForDelete)

This method provides access to the ACCOUNT.MARKFORDELETE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates if a business account is marked for deletion: 0 = No; 1 = Marked for delete.

Parameters:
aMarkForDelete - java.lang.Integer

setMarkForDelete

public void setMarkForDelete(java.lang.String aMarkForDelete)

This method provides access to the ACCOUNT.MARKFORDELETE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Indicates if a business account is marked for deletion: 0 = No; 1 = Marked for delete.

Specified by:
setMarkForDelete in interface AccountAccessBeanData
Parameters:
aMarkForDelete - java.lang.String

setMemberId

public void setMemberId(java.lang.Long aMemberId)

This method provides access to the ACCOUNT.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The owner of the Account. Foreign key to the MEMBER table.

Parameters:
aMemberId - java.lang.Long

setMemberId

public void setMemberId(java.lang.String aMemberId)

This method provides access to the ACCOUNT.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The owner of the Account. Foreign key to the MEMBER table.

Specified by:
setMemberId in interface AccountAccessBeanData
Parameters:
aMemberId - java.lang.String

setName

public void setName(java.lang.String aName)

This method provides access to the ACCOUNT.NAME column of DB2 type VARCHAR(200) NOT NULL.

The following is a description of this column:

Account name for the business account.

Specified by:
setName in interface AccountAccessBeanData
Parameters:
aName - java.lang.String

setState

public void setState(java.lang.Integer aState)

This method provides access to the ACCOUNT.STATE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

State of the Account. Only the following states are used:
0 - Initial;
3 - Active;
6 - Closed.

Parameters:
aState - java.lang.Integer

setState

public void setState(java.lang.String aState)

This method provides access to the ACCOUNT.STATE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

State of the Account. Only the following states are used:
0 - Initial;
3 - Active;
6 - Closed.

Specified by:
setState in interface AccountAccessBeanData
Parameters:
aState - java.lang.String

setStoreId

public void setStoreId(java.lang.Integer aStoreId)

This method provides access to the ACCOUNT.STORE_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

Store in which Account is first created.

Parameters:
aStoreId - java.lang.Integer

setStoreId

public void setStoreId(java.lang.String aStoreId)

This method provides access to the ACCOUNT.STORE_ID column of DB2 type INTEGER NULL.

The following is a description of this column:

Store in which Account is first created.

Specified by:
setStoreId in interface AccountAccessBeanData
Parameters:
aStoreId - java.lang.String

setTimeActivated

public void setTimeActivated(java.lang.String aTimeActivated)

This method provides access to the ACCOUNT.TIMEACTIVATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time Account is activated.

Specified by:
setTimeActivated in interface AccountAccessBeanData
Parameters:
aTimeActivated - java.lang.String

setTimeActivated

public void setTimeActivated(java.sql.Timestamp aTimeActivated)

This method provides access to the ACCOUNT.TIMEACTIVATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time Account is activated.

Parameters:
aTimeActivated - java.sql.Timestamp

setTimeApproved

public void setTimeApproved(java.lang.String aTimeApproved)

This method provides access to the ACCOUNT.TIMEAPPROVED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Reserved for IBM internal use.

Specified by:
setTimeApproved in interface AccountAccessBeanData
Parameters:
aTimeApproved - java.lang.String

setTimeApproved

public void setTimeApproved(java.sql.Timestamp aTimeApproved)

This method provides access to the ACCOUNT.TIMEAPPROVED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Reserved for IBM internal use.

Parameters:
aTimeApproved - java.sql.Timestamp

setTimeCreated

public void setTimeCreated(java.lang.String aTimeCreated)

This method provides access to the ACCOUNT.TIMECREATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time Account is created.

Specified by:
setTimeCreated in interface AccountAccessBeanData
Parameters:
aTimeCreated - java.lang.String

setTimeCreated

public void setTimeCreated(java.sql.Timestamp aTimeCreated)

This method provides access to the ACCOUNT.TIMECREATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time Account is created.

Parameters:
aTimeCreated - java.sql.Timestamp

setTimeUpdated

public void setTimeUpdated(java.lang.String aTimeUpdated)

This method provides access to the ACCOUNT.TIMEUPDATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time Account is updated.

Specified by:
setTimeUpdated in interface AccountAccessBeanData
Parameters:
aTimeUpdated - java.lang.String

setTimeUpdated

public void setTimeUpdated(java.sql.Timestamp aTimeUpdated)

This method provides access to the ACCOUNT.TIMEUPDATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Time Account is updated.

Parameters:
aTimeUpdated - java.sql.Timestamp