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

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.

See Also:
Serialized Form

Constructor Summary
OfferPriceAccessBean()
          constructor
OfferPriceAccessBean(javax.ejb.EJBObject o)
          constructor
OfferPriceAccessBean(java.lang.Long arg0, java.lang.String arg1, java.math.BigDecimal arg2)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
 java.util.Enumeration findByOffer(java.lang.Long arg0)           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[] arg0, java.lang.String arg1)
           
 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 provides access to the OFFERPRICE.COMPAREPRICE column of DB2 type DECIMAL(20 5).
 void setComparePrice(java.lang.String newValue)
          This method provides access to the OFFERPRICE.COMPAREPRICE column of DB2 type DECIMAL(20 5).
 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 provides access to the OFFERPRICE.PRICE column of DB2 type DECIMAL(20 5) NOT NULL.
 void setPrice(java.lang.String newValue)
          This method provides access to the OFFERPRICE.PRICE column of DB2 type DECIMAL(20 5) NOT NULL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfferPriceAccessBean

public OfferPriceAccessBean()
constructor

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 arg0,
                            java.lang.String arg1,
                            java.math.BigDecimal arg2)
                     throws javax.ejb.CreateException,
                            java.rmi.RemoteException,
                            javax.naming.NamingException
constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.String
arg2 - java.math.BigDecimal
Throws:
javax.ejb.CreateException
java.rmi.RemoteException
javax.naming.NamingException
Method Detail

findByOffer

public java.util.Enumeration findByOffer(java.lang.Long arg0)
                                  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 = ?

Returns:
An Enumeration of all the OfferPriceAccessBeans representing rows that match the search criteria.
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 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:
setComparePrice in interface OfferPriceAccessBeanData
Parameters:
newValue - String
Returns:
void

setComparePrice

public void setComparePrice(java.math.BigDecimal newValue)

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.

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

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

setPrice

public void setPrice(java.math.BigDecimal newValue)

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

findByOffersAndCurrency

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