com.ibm.commerce.order.objects
Class OrderPaymentInfoAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.order.objects.OrderPaymentInfoAccessBean
All Implemented Interfaces:
OrderPaymentInfoAccessBeanData, java.io.Serializable

public class OrderPaymentInfoAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements OrderPaymentInfoAccessBeanData

This bean provides access to the ORDPAYINFO table.

The following is a description of this table:

Each row in this table holds a name-value pair representing payment information for a particular Order. Values added to this table are encrypted when the "Instance/PDIEncrypt" configuration flag is "on".

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
OrderPaymentInfoAccessBean()
          Default constructor.
OrderPaymentInfoAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
OrderPaymentInfoAccessBean(java.lang.Long anOrderId, java.lang.String astrPayPairName, java.lang.String astrPayPairValue, boolean bEncrypt)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByOrder(java.lang.Long anOrderId)
          Retrieves all the name-value pairs representing payment information for specified order.
The SQL query used to fetch all the required rows from the ORDPAYINFO table is:
SELECT * FROM ORDPAYINFO T1 WHERE (T1.ORDERS_ID = ?)
 java.lang.String getOrderId()
          This method provides access to the ORDPAYINFO.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderIdInEJBType()
          This method provides access to the ORDPAYINFO.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getOrderPaymentInfoId()
          This method provides access to the ORDPAYINFO.ORDPAYINFO_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrderPaymentInfoIdInEJBType()
          This method provides access to the ORDPAYINFO.ORDPAYINFO_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getPaymentPairName()
          This method provides access to the ORDPAYINFO.NAME column of DB2 type CHAR(64) NOT NULL.
 java.lang.String getPaymentPairValue()
          This method provides access to the ORDPAYINFO.VALUE column of DB2 type VARCHAR(254) NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_orderPaymentInfoId(java.lang.String aInitKey_orderPaymentInfoId)
          Set the primary key for this object
 void setOrderId(java.lang.Long aOrderId)
          This method provides access to the ORDPAYINFO.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 void setOrderId(java.lang.String aOrderId)
          This method provides access to the ORDPAYINFO.ORDERS_ID column of DB2 type BIGINT NOT NULL.
 void setPaymentPairName(java.lang.String aPaymentPairName)
          This method provides access to the ORDPAYINFO.NAME column of DB2 type CHAR(64) NOT NULL.
 void setPaymentPairValue(java.lang.String aPaymentPairValue, boolean aPaymentPairValue)
          This method provides access to the ORDPAYINFO.VALUE column of DB2 type VARCHAR(254) 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

OrderPaymentInfoAccessBean

public OrderPaymentInfoAccessBean()

Default constructor. Maps to findByPrimaryKey.


OrderPaymentInfoAccessBean

public OrderPaymentInfoAccessBean(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

OrderPaymentInfoAccessBean

public OrderPaymentInfoAccessBean(java.lang.Long anOrderId,
                                  java.lang.String astrPayPairName,
                                  java.lang.String astrPayPairValue,
                                  boolean bEncrypt)
                           throws javax.naming.NamingException,
                                  javax.ejb.CreateException,
                                  javax.ejb.FinderException,
                                  java.rmi.RemoteException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
anOrderId - java.lang.Long Order identifier
astrPayPairName - java.lang.String The name-value pair name
astrPayPairValue - java.lang.String The name-value pair value
bEncrypt - boolean Boolean flag used to specify whether to store the string in the astrPayPairValue parameter encrypted or in clear text
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException 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
Returns:
void
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

findByOrder

public java.util.Enumeration findByOrder(java.lang.Long anOrderId)
                                  throws java.rmi.RemoteException,
                                         javax.ejb.FinderException,
                                         javax.naming.NamingException

Retrieves all the name-value pairs representing payment information for specified order.
The SQL query used to fetch all the required rows from the ORDPAYINFO table is:
SELECT * FROM ORDPAYINFO T1 WHERE (T1.ORDERS_ID = ?)

Parameters:
anOrderId - java.lang.Long Order identifier
Returns:
java.util.Enumeration An Enumeration of all the OrderPaymentInfoAccessBean objects representing rows that match the search criteria.
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

getOrderId

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

This method provides access to the ORDPAYINFO.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Order.

Specified by:
getOrderId in interface OrderPaymentInfoAccessBeanData
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

getOrderIdInEJBType

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

This method provides access to the ORDPAYINFO.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Order.

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

getOrderPaymentInfoId

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

This method provides access to the ORDPAYINFO.ORDPAYINFO_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

Specified by:
getOrderPaymentInfoId in interface OrderPaymentInfoAccessBeanData
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

getOrderPaymentInfoIdInEJBType

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

This method provides access to the ORDPAYINFO.ORDPAYINFO_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

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

getPaymentPairName

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

This method provides access to the ORDPAYINFO.NAME column of DB2 type CHAR(64) NOT NULL.

The following is a description of this column:

The name-value pair name.

Specified by:
getPaymentPairName in interface OrderPaymentInfoAccessBeanData
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

getPaymentPairValue

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

This method provides access to the ORDPAYINFO.VALUE column of DB2 type VARCHAR(254) NOT NULL.

The following is a description of this column:

The name-value pair value. If the first character of the value is a space, then the value has been encrypted.

Specified by:
getPaymentPairValue in interface OrderPaymentInfoAccessBeanData
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

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
Returns:
void
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

setInitKey_orderPaymentInfoId

public void setInitKey_orderPaymentInfoId(java.lang.String aInitKey_orderPaymentInfoId)

Set the primary key for this object

Parameters:
aInitKey_orderPaymentInfoId - java.lang.String
Returns:
void

setOrderId

public void setOrderId(java.lang.Long aOrderId)

This method provides access to the ORDPAYINFO.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Order.

Parameters:
aOrderId - java.lang.Long
Returns:
void

setOrderId

public void setOrderId(java.lang.String aOrderId)

This method provides access to the ORDPAYINFO.ORDERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Order.

Specified by:
setOrderId in interface OrderPaymentInfoAccessBeanData
Parameters:
aOrderId - java.lang.String
Returns:
void

setPaymentPairName

public void setPaymentPairName(java.lang.String aPaymentPairName)

This method provides access to the ORDPAYINFO.NAME column of DB2 type CHAR(64) NOT NULL.

The following is a description of this column:

The name-value pair name.

Specified by:
setPaymentPairName in interface OrderPaymentInfoAccessBeanData
Parameters:
aPaymentPairName - java.lang.String
Returns:
void

setPaymentPairValue

public void setPaymentPairValue(java.lang.String aPaymentPairValue,
                                boolean aPaymentPairValue)
                         throws java.rmi.RemoteException,
                                javax.ejb.FinderException,
                                javax.naming.NamingException

This method provides access to the ORDPAYINFO.VALUE column of DB2 type VARCHAR(254) NOT NULL.

The following is a description of this column:

The name-value pair value. If the first character of the value is a space, then the value has been encrypted.

Parameters:
aPaymentPairValue - java.lang.String
aPaymentPairValue - boolean
Returns:
void
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