com.ibm.commerce.order.objects
Class OrderPaymentInfoAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.order.objects.OrderPaymentInfoAccessBean
All Implemented Interfaces:
OrderPaymentInfoAccessBeanData
Direct Known Subclasses:
OrderPaymentInfoDataBeanBase

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

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 &quo This access bean corresponds to the database table 'ORDPAYINFO'.

See Also:
Serialized Form

Constructor Summary
OrderPaymentInfoAccessBean()
Zero argument constructor used to initialize the access bean.
OrderPaymentInfoAccessBean(javax.ejb.EJBObject o)
constructor
OrderPaymentInfoAccessBean(java.lang.Long orderId, java.lang.String payPairName, java.lang.String payPairValue, boolean encrypt)
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).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByOrder(java.lang.Long argOrderId) 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.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setInitKey_orderPaymentInfoId(java.lang.String newValue)
Set the primary key for this object
void setOrderId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOrderId(java.lang.String newValue)
This method accesses a non-CMP field
void setPaymentPairName(java.lang.String newValue)
This method accesses a non-CMP field
void setPaymentPairValue(java.lang.String newPaymentPairValue, boolean encrypt)
This method provides access to the ORDPAYINFO.VALUE column of DB2 type VARCHAR(254) NOT NULL.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

OrderPaymentInfoAccessBean

public OrderPaymentInfoAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.order.objects.OrderPaymentInfo com.ibm.commerce.order.objimpl.OrderPaymentInfoHomeBase.findByPrimaryKey(com.ibm.commerce.order.objects.OrderPaymentInfoKey) throws java.rmi.RemoteException,javax.ejb.FinderException The home interface method properties need to be set by calling the following setter methods before calling any business methods: setInitKey_orderPaymentInfoId( java.lang.Long )

OrderPaymentInfoAccessBean

public OrderPaymentInfoAccessBean(javax.ejb.EJBObject o)
                           throws java.rmi.RemoteException
constructor
Parameters:
o - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException

OrderPaymentInfoAccessBean

public OrderPaymentInfoAccessBean(java.lang.Long orderId,
                                  java.lang.String payPairName,
                                  java.lang.String payPairValue,
                                  boolean encrypt)
                           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:
orderId - java.lang.Long Order identifier
payPairName - java.lang.String The name-value pair name
payPairValue - java.lang.String The name-value pair value
encrypt - boolean Boolean flag used to specify whether to store the string in the payPairValue 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

findByOrder

public java.util.Enumeration findByOrder(java.lang.Long argOrderId)
                                  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:
argOrderId - 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

setInitKey_orderPaymentInfoId

public void setInitKey_orderPaymentInfoId(java.lang.String newValue)

Set the primary key for this object

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

defaultJNDIName

protected java.lang.String defaultJNDIName()
Returns:
String

instantiateEJB

protected void instantiateEJB()
                       throws java.rmi.RemoteException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException
Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

instantiateEJBByPrimaryKey

protected boolean instantiateEJBByPrimaryKey()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.naming.NamingException
Returns:
boolean
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.naming.NamingException

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).

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

refreshCopyHelper

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

Load data from the EJBObject.

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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
javax.ejb.FinderException
javax.naming.NamingException

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setOrderId

public void setOrderId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setOrderId in interface OrderPaymentInfoAccessBeanData

setOrderId

public void setOrderId(java.lang.Long newValue)
This method accesses a non-CMP field

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setPaymentPairName

public void setPaymentPairName(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setPaymentPairName in interface OrderPaymentInfoAccessBeanData

setPaymentPairValue

public void setPaymentPairValue(java.lang.String newPaymentPairValue,
                                boolean encrypt)
                         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:
newPaymentPairValue - java.lang.String
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException
javax.naming.NamingException

Feedback