com.ibm.commerce.order.objects
Class OfferPriceAccessBean

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

public class OfferPriceAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements OfferPriceAccessBeanData

This bean provides access to the OFFERPRICE table.

The following is a description of this table:

Each row of this table represents a price in a currency for an Offer.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
OfferPriceAccessBean()
          Zero argument constructor used to initialize the access bean.
OfferPriceAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
OfferPriceAccessBean(java.lang.Long offerId, java.lang.String currency, java.math.BigDecimal price)
          Creates an access bean with the specified attributes.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByOffer(java.lang.Long offerId)
          Retrieves all prices for an offer.
The SQL query used to fetch all the required rows from the OFFERPRICE table is:
SELECT * FROM OFFERPRICE T1 WHERE T1.OFFER_ID = ?
 java.lang.String getComparePrice()
          This method provides access to the OFFERPRICE.COMPAREPRICE column of DB2 type DECIMAL(20,5) NULL.
 java.math.BigDecimal getComparePriceInEJBType()
          This method provides access to the OFFERPRICE.COMPAREPRICE column of DB2 type DECIMAL(20,5) NULL.
 java.lang.String getCurrency()
          This method provides access to the OFFERPRICE.CURRENCY column of DB2 type CHAR(3) NOT NULL.
 java.lang.String getOfferId()
          This method provides access to the OFFERPRICE.OFFER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOfferIdInEJBType()
          This method provides access to the OFFERPRICE.OFFER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getPrice()
          This method provides access to the OFFERPRICE.PRICE column of DB2 type DECIMAL(20,5) NOT NULL.
 java.math.BigDecimal getPriceInEJBType()
          This method provides access to the OFFERPRICE.PRICE column of DB2 type DECIMAL(20,5) NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setComparePrice(java.math.BigDecimal aComparePrice)
          This method provides access to the OFFERPRICE.COMPAREPRICE column of DB2 type DECIMAL(20,5) NULL.
 void setComparePrice(java.lang.String aComparePrice)
          This method provides access to the OFFERPRICE.COMPAREPRICE column of DB2 type DECIMAL(20,5) NULL.
 void setInitKey_currency(java.lang.String aInitKey_currency)
          Set the primary key for this object
 void setInitKey_offerId(java.lang.String aInitKey_offerId)
          Set the primary key for this object
 void setPrice(java.math.BigDecimal aPrice)
          This method provides access to the OFFERPRICE.PRICE column of DB2 type DECIMAL(20,5) NOT NULL.
 void setPrice(java.lang.String aPrice)
          This method provides access to the OFFERPRICE.PRICE column of DB2 type DECIMAL(20,5) 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

OfferPriceAccessBean

public OfferPriceAccessBean()

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.OfferPrice com.ibm.commerce.order.objimpl.OfferPriceHomeBase.findByPrimaryKey(com.ibm.commerce.order.objects.OfferPriceKey) 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:


OfferPriceAccessBean

public OfferPriceAccessBean(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.

OfferPriceAccessBean

public OfferPriceAccessBean(java.lang.Long offerId,
                            java.lang.String currency,
                            java.math.BigDecimal price)
                     throws javax.ejb.CreateException,
                            java.rmi.RemoteException,
                            javax.naming.NamingException

Creates an access bean with the specified attributes.

Parameters:
offerId - The offer id.
currency - The currency of the price.
price - The price.
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

findByOffer

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

Retrieves all prices for an offer.
The SQL query used to fetch all the required rows from the OFFERPRICE table is:
SELECT * FROM OFFERPRICE T1 WHERE T1.OFFER_ID = ?

Parameters:
offerId - The offer id.
Returns:
An Enumeration of all the OfferPriceAccessBeans representing rows that match the search criteria.

getComparePrice

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

This method provides access to the OFFERPRICE.COMPAREPRICE column of DB2 type DECIMAL(20,5) NULL.

The following is a description of this column:

Reserved for IBM internal use.

Specified by:
getComparePrice in interface OfferPriceAccessBeanData
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

getComparePriceInEJBType

public java.math.BigDecimal getComparePriceInEJBType()
                                              throws java.rmi.RemoteException,
                                                     javax.ejb.CreateException,
                                                     javax.ejb.FinderException,
                                                     javax.naming.NamingException

This method provides access to the OFFERPRICE.COMPAREPRICE column of DB2 type DECIMAL(20,5) NULL.

The following is a description of this column:

Reserved for IBM internal use.

Returns:
java.math.BigDecimal
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

getCurrency

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

This method provides access to the OFFERPRICE.CURRENCY column of DB2 type CHAR(3) NOT NULL.

The following is a description of this column:

The currency of the price. This is a currency code as per ISO 4217 standards.

Specified by:
getCurrency in interface OfferPriceAccessBeanData
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

getOfferId

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

This method provides access to the OFFERPRICE.OFFER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Offer.

Specified by:
getOfferId in interface OfferPriceAccessBeanData
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

getOfferIdInEJBType

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

This method provides access to the OFFERPRICE.OFFER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Offer.

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

getPrice

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

This method provides access to the OFFERPRICE.PRICE column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

The price for the nominal quantity (see CATENTSHIP.NOMINALQUANTITY) of the product referred to by the Offer.

Specified by:
getPrice in interface OfferPriceAccessBeanData
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

getPriceInEJBType

public java.math.BigDecimal getPriceInEJBType()
                                       throws java.rmi.RemoteException,
                                              javax.ejb.CreateException,
                                              javax.ejb.FinderException,
                                              javax.naming.NamingException

This method provides access to the OFFERPRICE.PRICE column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

The price for the nominal quantity (see CATENTSHIP.NOMINALQUANTITY) of the product referred to by the Offer.

Returns:
java.math.BigDecimal
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

setComparePrice

public void setComparePrice(java.math.BigDecimal aComparePrice)

This method provides access to the OFFERPRICE.COMPAREPRICE column of DB2 type DECIMAL(20,5) NULL.

The following is a description of this column:

Reserved for IBM internal use.

Parameters:
aComparePrice - java.math.BigDecimal
Returns:
void

setComparePrice

public void setComparePrice(java.lang.String aComparePrice)

This method provides access to the OFFERPRICE.COMPAREPRICE column of DB2 type DECIMAL(20,5) NULL.

The following is a description of this column:

Reserved for IBM internal use.

Specified by:
setComparePrice in interface OfferPriceAccessBeanData
Parameters:
aComparePrice - java.lang.String
Returns:
void

setInitKey_currency

public void setInitKey_currency(java.lang.String aInitKey_currency)

Set the primary key for this object

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

setInitKey_offerId

public void setInitKey_offerId(java.lang.String aInitKey_offerId)

Set the primary key for this object

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

setPrice

public void setPrice(java.math.BigDecimal aPrice)

This method provides access to the OFFERPRICE.PRICE column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

The price for the nominal quantity (see CATENTSHIP.NOMINALQUANTITY) of the product referred to by the Offer.

Parameters:
aPrice - java.math.BigDecimal
Returns:
void

setPrice

public void setPrice(java.lang.String aPrice)

This method provides access to the OFFERPRICE.PRICE column of DB2 type DECIMAL(20,5) NOT NULL.

The following is a description of this column:

The price for the nominal quantity (see CATENTSHIP.NOMINALQUANTITY) of the product referred to by the Offer.

Specified by:
setPrice in interface OfferPriceAccessBeanData
Parameters:
aPrice - java.lang.String
Returns:
void