com.ibm.commerce.catalog.objects
Class ListPriceAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.catalog.objects.ListPriceAccessBean
All Implemented Interfaces:
ListPriceAccessBeanData

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

Each row of this table represents a ListPrice in a particular currency for a CatalogEntry. This access bean corresponds to the database table 'LISTPRICE'.

See Also:
Serialized Form

Constructor Summary
ListPriceAccessBean()
Zero argument constructor used to initialize the access bean.
ListPriceAccessBean(javax.ejb.EJBObject o)
constructor
ListPriceAccessBean(java.lang.Long arg1, java.lang.String arg2, java.math.BigDecimal arg3)
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).
protected java.lang.String defaultJNDIName()
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).
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setInitKey_catalogEntryReferenceNumber(java.lang.String newValue)
Set the primary key for this object
void setInitKey_currency(java.lang.String newValue)
Set the primary key for this object
void setListPrice(java.math.BigDecimal newValue)
This method accesses a non-CMP field
void setListPrice(java.lang.String newValue)
This method accesses a non-CMP field
void setOid(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

ListPriceAccessBean

public ListPriceAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.catalog.objects.ListPrice com.ibm.commerce.catalog.objimpl.ListPriceHomeBase.findByPrimaryKey(com.ibm.commerce.catalog.objects.ListPriceKey) 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_catalogEntryReferenceNumber( java.lang.Long ) setInitKey_currency( java.lang.String )

ListPriceAccessBean

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

ListPriceAccessBean

public ListPriceAccessBean(java.lang.Long arg1,
                           java.lang.String arg2,
                           java.math.BigDecimal arg3)
                    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, arg2, and list price.

Parameters:
arg1 - The catalog entry reference number. java.lang.Long
arg2 - The arg2. java.lang.String
arg3 - 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

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

setInitKey_catalogEntryReferenceNumber

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

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

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

setListPrice

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

setListPrice

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

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

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

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

setOid

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

Feedback