com.ibm.commerce.rfq.objects
Class RFQResponseProductAccessBean

com.ibm.commerce.rfq.objects.RFQResponseProductAccessBean

public class RFQResponseProductAccessBean

This bean provides access to the RFQRSPPROD table.

The following is a description of this table:

RFQ response and product relationship table. This table stores the products included in a specific RFQ Response.


Constructor Summary
RFQResponseProductAccessBean()
          Default constructor.
RFQResponseProductAccessBean(javax.ejb.EJBObject aEJBObject)
          Creates an access bean for the specified EJB.
RFQResponseProductAccessBean(java.lang.Long aCatalogEntryId, java.lang.Long aRFQResponseId)
          Creates an access bean with the specified attributes.
RFQResponseProductAccessBean(java.lang.Long aCatalogEntryId, java.lang.Long aRFQResponseId, java.math.BigDecimal aPrice, java.lang.Double aQuantity)
          Creates an access bean with the specified attributes.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByCatentryId(java.lang.Long aCatalogEntryId)
          Retrieves the RFQResponseProductAccessBeans that match the specified CatalogEntry.
 java.util.Enumeration findByRfqResponseId(java.lang.Long aRFQResponseId)
          Retrieves the RFQResponseProductAccessBeans of the specified RFQResponse.
 RFQResponseProductAccessBean findByRfqResponseIdAndCatentryId(java.lang.Long aRFQResponseId, java.lang.Long aCatalogEntryId)
          Retrieves the RFQResponseProductAccessBean that matches the specified RFQResponse and CatalogEntry.
 boolean fulfills(java.lang.Long aMemberId, java.lang.String aRelationship)
          Returns true if the specified Member fulfills the specified relationship with this resource.
 java.lang.String getCatentryId()
          This method provides access to the RFQRSPPROD.CATENTRY_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getCatentryIdInEJBType()
          This method provides access to the RFQRSPPROD.CATENTRY_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getCurrency()
          This method provides access to the RFQRSPPROD.CURRENCY column of DB2 type CHAR(3) NULL.
 java.lang.Long getOwner()
          Retrieves the owner of this resource.
 java.lang.String getPrice()
          This method provides access to the RFQRSPPROD.PRICE column of DB2 type DECIMAL(20,5) NULL.
 java.math.BigDecimal getPriceInEJBType()
          This method provides access to the RFQRSPPROD.PRICE column of DB2 type DECIMAL(20,5) NULL.
 java.lang.String getQuantity()
          This method provides access to the RFQRSPPROD.QUANTITY column of DB2 type DOUBLE NULL.
 java.lang.Double getQuantityInEJBType()
          This method provides access to the RFQRSPPROD.QUANTITY column of DB2 type DOUBLE NULL.
 java.lang.String getQuantityUnitId()
          This method provides access to the RFQRSPPROD.QTYUNIT_ID column of DB2 type CHAR(16) NULL.
 java.lang.String getRfqCatentryId()
          This method provides access to the RFQRSPPROD.RFQCATENTRYID column of DB2 type BIGINT NULL.
 java.lang.Long getRfqCatentryIdInEJBType()
          This method provides access to the RFQRSPPROD.RFQCATENTRYID column of DB2 type BIGINT NULL.
 java.lang.String getRfqResponseId()
          This method provides access to the RFQRSPPROD.RFQRSP_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getRfqResponseIdInEJBType()
          This method provides access to the RFQRSPPROD.RFQRSP_ID column of DB2 type BIGINT NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCurrency(java.lang.String aCurrency)
          This method provides access to the RFQRSPPROD.CURRENCY column of DB2 type CHAR(3) NULL.
 void setInitKey_catentryId(java.lang.Long aInitKey_catentryId)
          Set the primary key for this object
 void setInitKey_rfqRspId(java.lang.Long aInitKey_rfqRspId)
          Set the primary key for this object
 void setPrice(java.math.BigDecimal aPrice)
          This method provides access to the RFQRSPPROD.PRICE column of DB2 type DECIMAL(20,5) NULL.
 void setPrice(java.lang.String aPrice)
          This method provides access to the RFQRSPPROD.PRICE column of DB2 type DECIMAL(20,5) NULL.
 void setQuantity(java.lang.Double aQuantity)
          This method provides access to the RFQRSPPROD.QUANTITY column of DB2 type DOUBLE NULL.
 void setQuantity(java.lang.String aQuantity)
          This method provides access to the RFQRSPPROD.QUANTITY column of DB2 type DOUBLE NULL.
 void setQuantityUnitId(java.lang.String aQuantityUnitId)
          This method provides access to the RFQRSPPROD.QTYUNIT_ID column of DB2 type CHAR(16) NULL.
 void setRfqCatentryId(java.lang.Long aRfqCatentryId)
          This method provides access to the RFQRSPPROD.RFQCATENTRYID column of DB2 type BIGINT NULL.
 void setRfqCatentryId(java.lang.String aRfqCatentryId)
          This method provides access to the RFQRSPPROD.RFQCATENTRYID column of DB2 type BIGINT NULL.
 

Constructor Detail

RFQResponseProductAccessBean

public RFQResponseProductAccessBean()

Default constructor. Maps to findByPrimaryKey.


RFQResponseProductAccessBean

public RFQResponseProductAccessBean(javax.ejb.EJBObject aEJBObject)
                             throws java.rmi.RemoteException

Creates an access bean for the specified EJB.

Parameters:
aEJBObject - The EJB Object used for the access bean construction.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

RFQResponseProductAccessBean

public RFQResponseProductAccessBean(java.lang.Long aCatalogEntryId,
                                    java.lang.Long aRFQResponseId)
                             throws javax.ejb.CreateException,
                                    java.rmi.RemoteException,
                                    javax.naming.NamingException

Creates an access bean with the specified attributes.

Parameters:
aCatalogEntryId - the CatalogEntry ID
aRFQResponseId - the RFQResponse ID
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception

RFQResponseProductAccessBean

public RFQResponseProductAccessBean(java.lang.Long aCatalogEntryId,
                                    java.lang.Long aRFQResponseId,
                                    java.math.BigDecimal aPrice,
                                    java.lang.Double aQuantity)
                             throws javax.ejb.CreateException,
                                    java.rmi.RemoteException,
                                    javax.naming.NamingException

Creates an access bean with the specified attributes.

Parameters:
aCatalogEntryId - the CatalogEntry ID
aRFQResponseId - the RFQResponse ID
aPrice - the price
aQuantity - the quantity
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException 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).

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

findByCatentryId

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

Retrieves the RFQResponseProductAccessBeans that match the specified CatalogEntry.

The SQL query used to fetch all the required row from the RFQRSPPROD table is:
SELECT * FROM RFQRSPPROD T1 WHERE
T1.CATENTRY_ID = ?

Parameters:
aCatalogEntryId - the CatalogEntry ID
Returns:
An Enumeration of all the RFQResponseProductAccessBeans representing rows that match the search criteria.
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

findByRfqResponseId

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

Retrieves the RFQResponseProductAccessBeans of the specified RFQResponse.

The SQL query used to fetch all the required row from the RFQRSPPROD table is:
SELECT * FROM RFQRSPPROD T1 WHERE
T1.RFQRSP_ID = ?

Parameters:
aRFQResponseId - the RFQResponse ID
Returns:
An Enumeration of all the RFQResponseProductAccessBeans representing rows that match the search criteria.
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

findByRfqResponseIdAndCatentryId

public RFQResponseProductAccessBean findByRfqResponseIdAndCatentryId(java.lang.Long aRFQResponseId,
                                                                     java.lang.Long aCatalogEntryId)
                                                              throws java.rmi.RemoteException,
                                                                     javax.ejb.FinderException,
                                                                     javax.naming.NamingException

Retrieves the RFQResponseProductAccessBean that matches the specified RFQResponse and CatalogEntry.

The SQL query used to fetch all the required row from the RFQRSPPROD table is:
SELECT * FROM RFQRSPPROD T1 WHERE
T1.RFQRSP_ID = ? AND T1.CATENTRY_ID = ?

Parameters:
aRFQResponseId - the RFQResponse ID
aCatalogEntryId - the CatalogEntry ID
Returns:
the RFQResponseProductAccessBean representing the row that matches the search criteria.
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

fulfills

public boolean fulfills(java.lang.Long aMemberId,
                        java.lang.String aRelationship)
                 throws java.rmi.RemoteException,
                        java.lang.Exception,
                        javax.ejb.FinderException,
                        javax.naming.NamingException
Returns true if the specified Member fulfills the specified relationship with this resource.
Parameters:
aMemberId - the Member ID
aRelationship - the relationship
Returns:
boolean
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
java.lang.Exception - The java.lang.Exception exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getCatentryId

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

This method provides access to the RFQRSPPROD.CATENTRY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The internal reference number of the CatalogEntry.

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

getCatentryIdInEJBType

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

This method provides access to the RFQRSPPROD.CATENTRY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The internal reference number of the CatalogEntry.

Returns:
java.lang.Long
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

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 RFQRSPPROD.CURRENCY column of DB2 type CHAR(3) NULL.

The following is a description of this column:

The type of currency in which the price has been specified. This is a currency code as per ISO 4217 standards.

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

getOwner

public java.lang.Long getOwner()
                        throws java.lang.Exception,
                               java.rmi.RemoteException,
                               javax.ejb.FinderException,
                               javax.naming.NamingException

Retrieves the owner of this resource.

Returns:
the owner's Member ID
Throws:
java.lang.Exception - The java.lang.Exception exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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 RFQRSPPROD.PRICE column of DB2 type DECIMAL(20,5) NULL.

The following is a description of this column:

Response price for this product.

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

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 RFQRSPPROD.PRICE column of DB2 type DECIMAL(20,5) NULL.

The following is a description of this column:

Response price for this product.

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

getQuantity

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

This method provides access to the RFQRSPPROD.QUANTITY column of DB2 type DOUBLE NULL.

The following is a description of this column:

Response quantity for this product.

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

getQuantityInEJBType

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

This method provides access to the RFQRSPPROD.QUANTITY column of DB2 type DOUBLE NULL.

The following is a description of this column:

Response quantity for this product.

Returns:
java.lang.Double
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

getQuantityUnitId

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

This method provides access to the RFQRSPPROD.QTYUNIT_ID column of DB2 type CHAR(16) NULL.

The following is a description of this column:

Unit of measure for the response quantity. For example, kilos, tons, or millimeters.

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

getRfqCatentryId

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

This method provides access to the RFQRSPPROD.RFQCATENTRYID column of DB2 type BIGINT NULL.

The following is a description of this column:

The CatalogEntry ID of the product requested in the RFQ.

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

getRfqCatentryIdInEJBType

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

This method provides access to the RFQRSPPROD.RFQCATENTRYID column of DB2 type BIGINT NULL.

The following is a description of this column:

The CatalogEntry ID of the product requested in the RFQ.

Returns:
java.lang.Long
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

getRfqResponseId

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

This method provides access to the RFQRSPPROD.RFQRSP_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The internal reference number of the RFQ Response.

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

getRfqResponseIdInEJBType

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

This method provides access to the RFQRSPPROD.RFQRSP_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The internal reference number of the RFQ Response.

Returns:
java.lang.Long
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.

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

setCurrency

public void setCurrency(java.lang.String aCurrency)

This method provides access to the RFQRSPPROD.CURRENCY column of DB2 type CHAR(3) NULL.

The following is a description of this column:

The type of currency in which the price has been specified. This is a currency code as per ISO 4217 standards.

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

setInitKey_catentryId

public void setInitKey_catentryId(java.lang.Long aInitKey_catentryId)

Set the primary key for this object

Parameters:
aInitKey_catentryId - java.lang.Long
Returns:
void

setInitKey_rfqRspId

public void setInitKey_rfqRspId(java.lang.Long aInitKey_rfqRspId)

Set the primary key for this object

Parameters:
aInitKey_rfqRspId - java.lang.Long
Returns:
void

setPrice

public void setPrice(java.math.BigDecimal aPrice)

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

The following is a description of this column:

Response price for this product.

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

setPrice

public void setPrice(java.lang.String aPrice)

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

The following is a description of this column:

Response price for this product.

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

setQuantity

public void setQuantity(java.lang.Double aQuantity)

This method provides access to the RFQRSPPROD.QUANTITY column of DB2 type DOUBLE NULL.

The following is a description of this column:

Response quantity for this product.

Parameters:
aQuantity - java.lang.Double
Returns:
void

setQuantity

public void setQuantity(java.lang.String aQuantity)

This method provides access to the RFQRSPPROD.QUANTITY column of DB2 type DOUBLE NULL.

The following is a description of this column:

Response quantity for this product.

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

setQuantityUnitId

public void setQuantityUnitId(java.lang.String aQuantityUnitId)

This method provides access to the RFQRSPPROD.QTYUNIT_ID column of DB2 type CHAR(16) NULL.

The following is a description of this column:

Unit of measure for the response quantity. For example, kilos, tons, or millimeters.

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

setRfqCatentryId

public void setRfqCatentryId(java.lang.Long aRfqCatentryId)

This method provides access to the RFQRSPPROD.RFQCATENTRYID column of DB2 type BIGINT NULL.

The following is a description of this column:

The CatalogEntry ID of the product requested in the RFQ.

Parameters:
aRfqCatentryId - java.lang.Long
Returns:
void

setRfqCatentryId

public void setRfqCatentryId(java.lang.String aRfqCatentryId)

This method provides access to the RFQRSPPROD.RFQCATENTRYID column of DB2 type BIGINT NULL.

The following is a description of this column:

The CatalogEntry ID of the product requested in the RFQ.

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