java.lang.Objectcom.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
com.ibm.commerce.payment.objects.AccountAccessBean
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. This access bean corresponds to the database table 'ACCOUNT'.
Constructor Summary | |
AccountAccessBean() Zero argument constructor used to initialize the access bean. |
|
AccountAccessBean(javax.ejb.EJBObject o) constructor |
|
AccountAccessBean(java.lang.String newName, java.lang.Long newMemberId) Creates an instance of an Account with the specified newName for the specified member. |
Method Summary | |
void | commitCopyHelper() Update(flush) data to the EJBObject (persistent storage). |
protected java.lang.String | defaultJNDIName() |
java.util.Enumeration | findActiveAccountsByBuyerOrgAndStore(java.lang.Long buyerOrgEntityId, 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 sortByColumn) 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 arg0, java.lang.String arg1) |
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. |
ParticipantAccessBean[] | getAccountLevelParticipants() The method returns an array of ParticipantAccessBean representing all participants that the current account has. |
java.lang.String | getComments() This method accesses a non-CMP field |
java.lang.String | getCurrency() This method provides access to the ACCOUNT.CURRENCY column of DB2 type CHAR(3). |
java.lang.String | getDefaultContract() This method provides access to the ACCOUNT.DEFAULTCONTRACT column of DB2 type INTEGER NOT NULL DEFAULT 0. |
java.lang.Integer | getDefaultContractInEJBType() This method provides access to the ACCOUNT.DEFAULTCONTRACT column of DB2 type INTEGER NOT NULL DEFAULT 0. |
TradingDescriptionAccessBean | getDescription(java.lang.Integer language_id) Retrieves the TradingDescriptionAccessBean representing the account description with the specified language ID. |
java.lang.String | getMarkForDelete() This method provides access to the ACCOUNT.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0. |
java.lang.Integer | getMarkForDeleteInEJBType() This method provides access to the ACCOUNT.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0. |
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() This method accesses a non-CMP field |
java.lang.String | getState() This method provides access to the ACCOUNT.STATE column of DB2 type INTEGER NOT NULL DEFAULT 0. |
java.lang.Integer | getStateInEJBType() This method provides access to the ACCOUNT.STATE column of DB2 type INTEGER NOT NULL DEFAULT 0. |
java.lang.String | getStoreId() This method provides access to the ACCOUNT.STORE_ID column of DB2 type INTEGER. |
java.lang.Integer | getStoreIdInEJBType() This method provides access to the ACCOUNT.STORE_ID column of DB2 type INTEGER. |
java.lang.String | getTimeActivated() This method provides access to the ACCOUNT.TIMEACTIVATED column of DB2 type TIMESTAMP. |
java.sql.Timestamp | getTimeActivatedInEJBType() This method provides access to the ACCOUNT.TIMEACTIVATED column of DB2 type TIMESTAMP. |
java.lang.String | getTimeApproved() This method provides access to the ACCOUNT.TIMEAPPROVED column of DB2 type TIMESTAMP. |
java.sql.Timestamp | getTimeApprovedInEJBType() This method provides access to the ACCOUNT.TIMEAPPROVED column of DB2 type TIMESTAMP. |
java.lang.String | getTimeCreated() This method provides access to the ACCOUNT.TIMECREATED column of DB2 type TIMESTAMP. |
java.sql.Timestamp | getTimeCreatedInEJBType() This method provides access to the ACCOUNT.TIMECREATED column of DB2 type TIMESTAMP. |
java.lang.String | getTimeUpdated() This method provides access to the ACCOUNT.TIMEUPDATED column of DB2 type TIMESTAMP. |
java.sql.Timestamp | getTimeUpdatedInEJBType() This method provides access to the ACCOUNT.TIMEUPDATED column of DB2 type TIMESTAMP. |
protected void | instantiateEJB() |
protected boolean | instantiateEJBByPrimaryKey() |
void | refreshCopyHelper() Load data from the EJBObject. |
void | setAccountId(java.lang.Long newValue) This method accesses a non-CMP field |
void | setAccountId(java.lang.String newValue) This method accesses a non-CMP field |
void | setComments(java.lang.String newValue) This method accesses a non-CMP field |
void | setCurrency(java.lang.String newValue) This method accesses a non-CMP field |
void | setDefaultContract(java.lang.Integer newValue) This method accesses a non-CMP field |
void | setDefaultContract(java.lang.String newValue) This method accesses a non-CMP field |
void | setInitKey_accountId(java.lang.String newValue) Set the primary key for this object |
void | setMarkForDelete(java.lang.Integer newValue) This method accesses a non-CMP field |
void | setMarkForDelete(java.lang.String newValue) This method accesses a non-CMP field |
void | setMemberId(java.lang.Long newValue) This method accesses a non-CMP field |
void | setMemberId(java.lang.String newValue) This method accesses a non-CMP field |
void | setName(java.lang.String newValue) This method accesses a non-CMP field |
void | setState(java.lang.Integer newValue) This method accesses a non-CMP field |
void | setState(java.lang.String newValue) This method accesses a non-CMP field |
void | setStoreId(java.lang.Integer newValue) This method accesses a non-CMP field |
void | setStoreId(java.lang.String newValue) This method accesses a non-CMP field |
void | setTimeActivated(java.lang.String newValue) This method accesses a non-CMP field |
void | setTimeActivated(java.sql.Timestamp newValue) This method accesses a non-CMP field |
void | setTimeApproved(java.lang.String newValue) This method accesses a non-CMP field |
void | setTimeApproved(java.sql.Timestamp newValue) This method accesses a non-CMP field |
void | setTimeCreated(java.lang.String newValue) This method accesses a non-CMP field |
void | setTimeCreated(java.sql.Timestamp newValue) This method accesses a non-CMP field |
void | setTimeUpdated(java.lang.String newValue) This method accesses a non-CMP field |
void | setTimeUpdated(java.sql.Timestamp newValue) This method accesses a non-CMP field |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AccountAccessBean()
public AccountAccessBean(javax.ejb.EJBObject o) throws java.rmi.RemoteException
public AccountAccessBean(java.lang.String newName, java.lang.Long newMemberId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException
Creates an instance of an Account with the specified newName for the specified member.
Method Detail |
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=?
public java.util.Enumeration findActiveAccountsByBuyerOrgAndStore(java.lang.Long buyerOrgEntityId, 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=?
public java.util.Enumeration findByStoreIdSortByColumn(java.lang.Integer storeId, java.lang.String sortByColumn) 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 ?
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
public void setInitKey_accountId(java.lang.String newValue)
Set the primary key for this object
protected java.lang.String defaultJNDIName()
protected void instantiateEJB() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
protected boolean instantiateEJBByPrimaryKey() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.naming.NamingException
public void commitCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Update(flush) data to the EJBObject (persistent storage).
public void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Load data from the EJBObject.
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.
The following is a description of this column:
Reserved for IBM internal use.
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.
The following is a description of this column:
Reserved for IBM internal use.
public void setTimeApproved(java.lang.String newValue)
public void setTimeApproved(java.sql.Timestamp newValue)
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.
The following is a description of this column:
Time Account is activated.
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.
The following is a description of this column:
Time Account is activated.
public void setTimeActivated(java.lang.String newValue)
public void setTimeActivated(java.sql.Timestamp newValue)
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 DEFAULT 0.
The following is a description of this column:
State of the Account. Only the following states are used:&l
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 DEFAULT 0.
The following is a description of this column:
State of the Account. Only the following states are used:&l
public void setState(java.lang.String newValue)
public void setState(java.lang.Integer newValue)
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 DEFAULT 0.
The following is a description of this column:
Indicates if purchases using Store default contract is allowed. Valid values are as follows:&l
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 DEFAULT 0.
The following is a description of this column:
Indicates if purchases using Store default contract is allowed. Valid values are as follows:&l
public void setDefaultContract(java.lang.String newValue)
public void setDefaultContract(java.lang.Integer newValue)
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.
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.
public void setAccountId(java.lang.String newValue)
public void setAccountId(java.lang.Long newValue)
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.
The following is a description of this column:
Time Account is updated.
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.
The following is a description of this column:
Time Account is updated.
public void setTimeUpdated(java.lang.String newValue)
public void setTimeUpdated(java.sql.Timestamp newValue)
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 DEFAULT 0.
The following is a description of this column:
Indicates if a business account is marked for deletion. Valid values are as follows:&l
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 DEFAULT 0.
The following is a description of this column:
Indicates if a business account is marked for deletion. Valid values are as follows:&l
public void setMarkForDelete(java.lang.String newValue)
public void setMarkForDelete(java.lang.Integer newValue)
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).
The following is a description of this column:
Reserved for IBM internal use.
public void setCurrency(java.lang.String newValue)
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.
The following is a description of this column:
Store in which Account is first created.
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.
The following is a description of this column:
Store in which Account is first created.
public void setStoreId(java.lang.String newValue)
public void setStoreId(java.lang.Integer newValue)
public java.lang.String getComments() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setComments(java.lang.String newValue)
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.
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.
public void setMemberId(java.lang.String newValue)
public void setMemberId(java.lang.Long newValue)
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.
The following is a description of this column:
Time Account is created.
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.
The following is a description of this column:
Time Account is created.
public void setTimeCreated(java.lang.String newValue)
public void setTimeCreated(java.sql.Timestamp newValue)
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.
public void setName(java.lang.String newValue)
public boolean fulfills(java.lang.Long arg0, java.lang.String arg1) throws java.rmi.RemoteException, java.lang.Exception, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.Long getOwner() throws java.lang.Exception, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
public ParticipantAccessBean[] getAccountLevelParticipants() throws javax.naming.NamingException, javax.ejb.FinderException, javax.ejb.CreateException, java.rmi.RemoteException
The method returns an array of ParticipantAccessBean representing all participants that the current account has.
public TradingDescriptionAccessBean getDescription(java.lang.Integer language_id) throws javax.naming.NamingException, javax.ejb.FinderException, javax.ejb.CreateException, java.rmi.RemoteException
Retrieves the TradingDescriptionAccessBean representing the account description with the specified language ID.
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.