|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.ivj.ejb.runtime.AbstractAccessBean | +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean | +--com.ibm.commerce.payment.objects.PaymentMethodAccessBean
This bean provides access to the PAYMTHD table.
The following is a description of this table:
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 deprecated and is provided for backward compatibility only.
Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean |
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef |
Constructor Summary | |
PaymentMethodAccessBean()
Default constructor. |
|
PaymentMethodAccessBean(javax.ejb.EJBObject object)
Creates an access bean for the specified EJB |
Method Summary | |
void |
commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage). |
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 payMethodID)
Retrieves the PaymentMethodAccessBean representing the payment method with the specified ID that the Store supports. |
PaymentMethodDescriptionAccessBean |
getDescription(java.lang.Integer languageId,
java.lang.Integer storeId)
Return a PaymentMethodDescriptionAccessBean object associated this payment method for the specified languageId. |
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 storeId)
Returns the profile name if this payment method is supported by the specified Store, otherwise returns null. |
void |
refreshCopyHelper()
Load data from the EJBObject. |
void |
setInitKey_paymentMethodId(java.lang.String aInitKey_paymentMethodId)
Set the primary key for this object |
void |
setProfileName(java.lang.String aProfileName)
This method provides access to the PAYMTHD.PROFILENAME column of DB2 type VARCHAR(64) NOT 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 |
public PaymentMethodAccessBean()
Default constructor. Maps to findByPrimaryKey.
public PaymentMethodAccessBean(javax.ejb.EJBObject object) throws java.rmi.RemoteException
Creates an access bean for the specified EJB
object
- The EJB Object used for the access bean construction.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionMethod Detail |
public void commitCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Update(flush) data to the EJBObject (persistent storage).
commitCopyHelper
in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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 = ?)
storeId
- The ID of the Store.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic PaymentMethodAccessBean findByStoreAndPaymentMethod(java.lang.Integer storeId, java.lang.Integer payMethodID) 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 = ?)
storeId
- The ID of the Store.payMethodId
- The internal ID of the payment method.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- If the Store does not support the payment method with the specified payMethodID.javax.naming.NamingException
- The javax.naming.NamingException exceptionpublic PaymentMethodDescriptionAccessBean getDescription(java.lang.Integer languageId, java.lang.Integer storeId) throws javax.naming.NamingException, javax.ejb.CreateException, javax.ejb.FinderException, java.rmi.RemoteException
Return a PaymentMethodDescriptionAccessBean object associated this payment method for the specified languageId. If there is no description for the specified language, the alternative languages for languageId and storeId will be used to get an appropriate description.
languageId
- The language ID.storeId
- The ID of the Store.javax.naming.NamingException
- The javax.naming.NamingException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic 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.
getPaymentMethodId
in interface PaymentMethodAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.)
getProfileName
in interface PaymentMethodAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.lang.String getSupportedProfileName(java.lang.Integer storeId) 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.
storeId
- The ID of the Store.javax.naming.NamingException
- The javax.naming.NamingException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionpublic void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Load data from the EJBObject.
refreshCopyHelper
in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic void setInitKey_paymentMethodId(java.lang.String aInitKey_paymentMethodId)
Set the primary key for this object
aInitKey_paymentMethodId
- java.lang.Stringpublic void setProfileName(java.lang.String aProfileName)
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.)
setProfileName
in interface PaymentMethodAccessBeanData
aProfileName
- java.lang.String
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |