com.ibm.commerce.catalog.objects
Class ListPriceAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.catalog.objects.ListPriceAccessBean
All Implemented Interfaces:
ListPriceAccessBeanData, java.io.Serializable

public class ListPriceAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements ListPriceAccessBeanData

This bean provides access to the LISTPRICE table.

The following is a description of this table:

Each row of this table represents a ListPrice in a particular currency for a CatalogEntry. This table is deprecated and is provided for backward compatibility only.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
ListPriceAccessBean()
          Default constructor.
ListPriceAccessBean(javax.ejb.EJBObject listPriceEJBObject)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
ListPriceAccessBean(java.lang.Long catEntryRefNum, java.lang.String currency, java.math.BigDecimal listPrice)
          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).
 java.util.Enumeration findByCatalogEntry(java.lang.Long catEntryID)
          Finds the list price with the catalog entry ID.
 java.lang.String getCurrency()
          This method provides access to the LISTPRICE.CURRENCY column of DB2 type CHAR(3) NOT NULL.
 java.lang.String getListPrice()
          This method provides access to the LISTPRICE.LISTPRICE column of DB2 type DECIMAL(20,5) NOT NULL.
 java.math.BigDecimal getListPriceInEJBType()
          This method provides access to the LISTPRICE.LISTPRICE column of DB2 type DECIMAL(20,5) NOT NULL.
 java.lang.String getOid()
          This method provides access to the LISTPRICE.OID column of DB2 type VARCHAR(64) NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_catalogEntryReferenceNumber(java.lang.String catEntryRefNum)
          Set the primary key for this object
 void setInitKey_currency(java.lang.String currency)
          Set the primary key for this object
 void setListPrice(java.math.BigDecimal listPrice)
          This method provides access to the LISTPRICE.LISTPRICE column of DB2 type DECIMAL(20,5) NOT NULL.
 void setListPrice(java.lang.String listPrice)
          This method provides access to the LISTPRICE.LISTPRICE column of DB2 type DECIMAL(20,5) NOT NULL.
 void setOid(java.lang.String OID)
          This method provides access to the LISTPRICE.OID column of DB2 type VARCHAR(64) 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

ListPriceAccessBean

public ListPriceAccessBean()

Default constructor. Maps to findByPrimaryKey.


ListPriceAccessBean

public ListPriceAccessBean(javax.ejb.EJBObject listPriceEJBObject)
                    throws java.rmi.RemoteException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
listPriceEJBObject - The list price EJB object. javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

ListPriceAccessBean

public ListPriceAccessBean(java.lang.Long catEntryRefNum,
                           java.lang.String currency,
                           java.math.BigDecimal listPrice)
                    throws javax.ejb.CreateException,
                           java.rmi.RemoteException,
                           javax.naming.NamingException

Maps to a corresponding ejbCreate method in the home interface of the EJB. Creates an access to the list price according to the catalog entry reference number, currency, and list price.

Parameters:
catEntryRefNum - The catalog entry reference number. java.lang.Long
currency - The currency. java.lang.String
listPrice - The list price. java.math.BigDecimal
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception
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

findByCatalogEntry

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

Finds the list price with the catalog entry ID.

SQL:
SELECT CATENTRY_ID, CURRENCY, LISTPRICE, OID FROM LISTPRICE WHERE catentry_id = catEntryID

Parameters:
catEntryID - The catalog entry ID. java.lang.Long
Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException 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 LISTPRICE.CURRENCY column of DB2 type CHAR(3) NOT NULL.

The following is a description of this column:

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

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

getListPrice

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

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

The following is a description of this column:

The amount of the ListPrice.

Specified by:
getListPrice in interface ListPriceAccessBeanData
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

getListPriceInEJBType

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

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

The following is a description of this column:

The amount of the ListPrice.

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

getOid

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

This method provides access to the LISTPRICE.OID column of DB2 type VARCHAR(64) NULL.

The following is a description of this column:

Reserved for IBM internal use.

Specified by:
getOid in interface ListPriceAccessBeanData
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

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

setInitKey_catalogEntryReferenceNumber

public void setInitKey_catalogEntryReferenceNumber(java.lang.String catEntryRefNum)

Set the primary key for this object

Parameters:
catEntryRefNum - The entry reference number. java.lang.String
Returns:
void

setInitKey_currency

public void setInitKey_currency(java.lang.String currency)

Set the primary key for this object

Parameters:
currency - The currency. java.lang.String
Returns:
void

setListPrice

public void setListPrice(java.math.BigDecimal listPrice)

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

The following is a description of this column:

The amount of the ListPrice.

Parameters:
listPrice - The list price. java.math.BigDecimal
Returns:
void

setListPrice

public void setListPrice(java.lang.String listPrice)

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

The following is a description of this column:

The amount of the ListPrice.

Specified by:
setListPrice in interface ListPriceAccessBeanData
Parameters:
listPrice - The list price. java.lang.String
Returns:
void

setOid

public void setOid(java.lang.String OID)

This method provides access to the LISTPRICE.OID column of DB2 type VARCHAR(64) NULL.

The following is a description of this column:

Reserved for IBM internal use.

Specified by:
setOid in interface ListPriceAccessBeanData
Parameters:
OID - The object identifier. java.lang.String
Returns:
void