java.lang.Objectcom.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
com.ibm.commerce.payment.objects.PaymentMethodAccessBean
This table is a site-wide table that lists all the Cashier profiles used in the store group. Each profile has a unique integer ID and a name. This table is &l This access bean corresponds to the database table 'PAYMTHD'.
Constructor Summary | |
PaymentMethodAccessBean() Zero argument constructor used to initialize the access bean. |
|
PaymentMethodAccessBean(javax.ejb.EJBObject o) constructor |
Method Summary | |
void | commitCopyHelper() Update(flush) data to the EJBObject (persistent storage). |
protected java.lang.String | defaultJNDIName() |
java.util.Enumeration | findByStore(java.lang.Integer storeId) Retrieves all the payment methods that the Store supports. |
PaymentMethodAccessBean | findByStoreAndPaymentMethod(java.lang.Integer storeId, java.lang.Integer paymentMethodId) Retrieves the PaymentMethodAccessBean representing the payment method with the specified ID that the Store supports. |
PaymentMethodDescriptionAccessBean | getDescription(java.lang.Integer arg1, java.lang.Integer arg2) Return a PaymentMethodDescriptionAccessBean object associated this payment method for the specified arg1. |
java.lang.String | getPaymentMethodId() This method provides access to the PAYMTHD.PAYMTHD_ID column of DB2 type INTEGER NOT NULL. |
java.lang.Integer | getPaymentMethodIdInEJBType() This method provides access to the PAYMTHD.PAYMTHD_ID column of DB2 type INTEGER NOT NULL. |
java.lang.String | getProfileName() This method provides access to the PAYMTHD.PROFILENAME column of DB2 type VARCHAR(64) NOT NULL. |
java.lang.String | getSupportedProfileName(java.lang.Integer arg1) Returns the profile name if this payment method is supported by the specified Store, otherwise returns null. |
protected void | instantiateEJB() |
protected boolean | instantiateEJBByPrimaryKey() |
void | refreshCopyHelper() Load data from the EJBObject. |
void | setInitKey_paymentMethodId(java.lang.String newValue) Set the primary key for this object |
void | setProfileName(java.lang.String 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 PaymentMethodAccessBean()
public PaymentMethodAccessBean(javax.ejb.EJBObject o) throws java.rmi.RemoteException
Method Detail |
public PaymentMethodAccessBean findByStoreAndPaymentMethod(java.lang.Integer storeId, java.lang.Integer paymentMethodId) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
Retrieves the PaymentMethodAccessBean representing the payment method with the specified ID that the Store supports.
The SQL query used to fetch the requested row from the PAYMTHD table is:
SELECT * FROM PAYMTHD T1 WHERE T1.PAYMTHD_ID = (SELECT PAYMTHDSUP.PAYMTHD_ID FROM PAYMTHDSUP WHERE PAYMTHDSUP.STOREENT_ID = ? AND PAYMTHDSUP.PAYMTHD_ID = ?)
public java.util.Enumeration findByStore(java.lang.Integer storeId) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
Retrieves all the payment methods that the Store supports.
The SQL query used to fetch all the required rows from the PAYMTHD table is:
SELECT * FROM PAYMTHD T1 WHERE T1.PAYMTHD_ID IN (SELECT PAYMTHDSUP.PAYMTHD_ID FROM PAYMTHDSUP WHERE PAYMTHDSUP.STOREENT_ID = ?)
public void setInitKey_paymentMethodId(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 getPaymentMethodId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the PAYMTHD.PAYMTHD_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
The unique integer ID of the profile.
public java.lang.Integer getPaymentMethodIdInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the PAYMTHD.PAYMTHD_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
The unique integer ID of the profile.
public java.lang.String getProfileName() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the PAYMTHD.PROFILENAME column of DB2 type VARCHAR(64) NOT NULL.
The following is a description of this column:
The name of the profile. It must be the same as the simple filename, without the suffix .profile, of the XML file that contains the cashier profile. (Note that the name is case-sensitive and must include the name of the Cassette as a substring.)
public void setProfileName(java.lang.String newValue)
public PaymentMethodDescriptionAccessBean getDescription(java.lang.Integer arg1, java.lang.Integer arg2) throws javax.naming.NamingException, javax.ejb.CreateException, javax.ejb.FinderException, java.rmi.RemoteException
Return a PaymentMethodDescriptionAccessBean object associated this payment method for the specified arg1. If there is no description for the specified language, the alternative languages for arg1 and arg2 will be used to get an appropriate description.
public java.lang.String getSupportedProfileName(java.lang.Integer arg1) throws javax.naming.NamingException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException
Returns the profile name if this payment method is supported by the specified Store, otherwise returns null.
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.