|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.ivj.ejb.runtime.AbstractAccessBean | +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean | +--com.ibm.commerce.order.objects.OfferPriceAccessBean
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.
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 |
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:
public OfferPriceAccessBean(javax.ejb.EJBObject object) throws java.rmi.RemoteException
Creates an access bean for the specified EJB
object
- The EJB Object used for the access bean construction.java.rmi.RemoteException
- The java.rmi.RemoteException exception.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.
offerId
- The offer id.currency
- The currency of the price.price
- The price.Method Detail |
public void commitCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Update(flush) data to the EJBObject (persistent storage).
commitCopyHelper
in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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 = ?
offerId
- The offer id.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.
getComparePrice
in interface OfferPriceAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getCurrency
in interface OfferPriceAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getOfferId
in interface OfferPriceAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getPrice
in interface OfferPriceAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Load data from the EJBObject.
refreshCopyHelper
in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
aComparePrice
- java.math.BigDecimalpublic 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.
setComparePrice
in interface OfferPriceAccessBeanData
aComparePrice
- java.lang.Stringpublic void setInitKey_currency(java.lang.String aInitKey_currency)
Set the primary key for this object
aInitKey_currency
- java.lang.Stringpublic void setInitKey_offerId(java.lang.String aInitKey_offerId)
Set the primary key for this object
aInitKey_offerId
- java.lang.Stringpublic 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.
aPrice
- java.math.BigDecimalpublic 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.
setPrice
in interface OfferPriceAccessBeanData
aPrice
- java.lang.String
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |