com.ibm.commerce.order.objects
Class OfferPriceAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.order.objects.OfferPriceAccessBean
All Implemented Interfaces:
OfferPriceAccessBeanData
Direct Known Subclasses:
OfferPriceDataBeanBase

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

Each row of this table represents a price in a currency for an Offer. This access bean corresponds to the database table 'OFFERPRICE'.

See Also:
Serialized Form

Constructor Summary
OfferPriceAccessBean()
Zero argument constructor used to initialize the access bean.
OfferPriceAccessBean(javax.ejb.EJBObject o)
constructor
OfferPriceAccessBean(java.lang.Long arg1, java.lang.String arg2, java.math.BigDecimal arg3)
Creates an access bean with the specified attributes.
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
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.util.Enumeration findByOffersAndCurrency(java.lang.Long[] offerIds, java.lang.String currency)
java.lang.String getComparePrice()
This method provides access to the OFFERPRICE.COMPAREPRICE column of DB2 type DECIMAL(20 5).
java.math.BigDecimal getComparePriceInEJBType()
This method provides access to the OFFERPRICE.COMPAREPRICE column of DB2 type DECIMAL(20 5).
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.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setComparePrice(java.math.BigDecimal newValue)
This method accesses a non-CMP field
void setComparePrice(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_currency(java.lang.String newValue)
Set the primary key for this object
void setInitKey_offerId(java.lang.String newValue)
Set the primary key for this object
void setPrice(java.math.BigDecimal newValue)
This method accesses a non-CMP field
void setPrice(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

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: setInitKey_offerId( java.lang.Long ) setInitKey_currency( java.lang.String )

OfferPriceAccessBean

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

OfferPriceAccessBean

public OfferPriceAccessBean(java.lang.Long arg1,
                            java.lang.String arg2,
                            java.math.BigDecimal arg3)
                     throws javax.ejb.CreateException,
                            java.rmi.RemoteException,
                            javax.naming.NamingException

Creates an access bean with the specified attributes.

Parameters:
arg1 - The offer id.
arg2 - The arg2 of the arg3.
arg3 - The arg3.
Method Detail

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

setInitKey_offerId

public void setInitKey_offerId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_currency

public void setInitKey_currency(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

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

The following is a description of this column:

Reserved for IBM internal use.

Specified by:
getComparePrice in interface OfferPriceAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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

The following is a description of this column:

Reserved for IBM internal use.

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

setComparePrice

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

setComparePrice

public void setComparePrice(java.math.BigDecimal newValue)
This method accesses a non-CMP field

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

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

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

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

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

setPrice

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

setPrice

public void setPrice(java.math.BigDecimal newValue)
This method accesses a non-CMP field

findByOffersAndCurrency

public java.util.Enumeration findByOffersAndCurrency(java.lang.Long[] offerIds,
                                                     java.lang.String currency)
                                              throws javax.naming.NamingException,
                                                     javax.ejb.FinderException,
                                                     java.rmi.RemoteException
Parameters:
offerIds - the offerIds
currency - the currency
Returns:
java.util.Enumeration an Enumeration of OfferPriceAccessBeans
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

Feedback