com.ibm.commerce.common.objects
Class QuantityUnitConversionAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.common.objects.QuantityUnitConversionAccessBean
All Implemented Interfaces:
QuantityUnitConversionAccessBeanData

public class QuantityUnitConversionAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements QuantityUnitConversionAccessBeanData

Each row of this table represents a rule that can be used to convert a quantity amount from one QuantityUnit (unit of measurement) to another QuantityUnit. This access bean corresponds to the database table 'QTYCONVERT'.

See Also:
Serialized Form

Constructor Summary
QuantityUnitConversionAccessBean()
Zero argument constructor used to initialize the access bean.
QuantityUnitConversionAccessBean(javax.ejb.EJBObject o)
constructor
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findAll()
Retrieves all QuantityUnitConversionAccessBeans
java.lang.String getConversionFactor()
This method provides access to the QTYCONVERT.FACTOR column of DB2 type DECIMAL(31 20) NOT NULL.
java.math.BigDecimal getConversionFactorInEJBType()
This method provides access to the QTYCONVERT.FACTOR column of DB2 type DECIMAL(31 20) NOT NULL.
java.lang.String getFromQuantityUnitId()
This method provides access to the QTYCONVERT.QTYUNIT_ID_FROM column of DB2 type CHAR(16) NOT NULL.
java.lang.String getMultiplyOrDivide()
This method provides access to the QTYCONVERT.MULTIPLYORDIVIDE column of DB2 type CHAR(1) NOT NULL.
java.lang.String getQuantityUnitConversionId()
This method provides access to the QTYCONVERT.QTYCONVERT_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getQuantityUnitConversionIdInEJBType()
This method provides access to the QTYCONVERT.QTYCONVERT_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getToQuantityUnitId()
This method provides access to the QTYCONVERT.QTYUNIT_ID_TO column of DB2 type CHAR(16) NOT NULL.
java.lang.String getUpdatable()
This method provides access to the QTYCONVERT.UPDATABLE column of DB2 type CHAR(1) NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setConversionFactor(java.math.BigDecimal newValue)
This method accesses a non-CMP field
void setConversionFactor(java.lang.String newValue)
This method accesses a non-CMP field
void setFromQuantityUnitId(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_quantityUnitConversionId(java.lang.String newValue)
Set the primary key for this object
void setMultiplyOrDivide(java.lang.String newValue)
This method accesses a non-CMP field
void setQuantityUnitConversionId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setQuantityUnitConversionId(java.lang.String newValue)
This method accesses a non-CMP field
void setToQuantityUnitId(java.lang.String newValue)
This method accesses a non-CMP field
void setUpdatable(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

QuantityUnitConversionAccessBean

public QuantityUnitConversionAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.common.objects.QuantityUnitConversion com.ibm.commerce.common.objimpl.QuantityUnitConversionHomeBase.findByPrimaryKey(com.ibm.commerce.common.objects.QuantityUnitConversionKey) 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_quantityUnitConversionId( java.lang.Integer )

QuantityUnitConversionAccessBean

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

findAll

public java.util.Enumeration findAll()
                              throws java.rmi.RemoteException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException

Retrieves all QuantityUnitConversionAccessBeans

The SQL query used to fetch the requested row from the QTYCONVERT table is:

SELECT * FROM QTYCONVERT T1 WHERE 1 = 1

Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

setInitKey_quantityUnitConversionId

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

getFromQuantityUnitId

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

This method provides access to the QTYCONVERT.QTYUNIT_ID_FROM column of DB2 type CHAR(16) NOT NULL.

The following is a description of this column:

The QuantityUnit converted from.

Specified by:
getFromQuantityUnitId in interface QuantityUnitConversionAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setFromQuantityUnitId

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

getConversionFactor

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

This method provides access to the QTYCONVERT.FACTOR column of DB2 type DECIMAL(31 20) NOT NULL.

The following is a description of this column:

The conversion factor. Implicit conversion rules are derived from explicit rules by combining conversion factors.

Specified by:
getConversionFactor in interface QuantityUnitConversionAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getConversionFactorInEJBType

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

This method provides access to the QTYCONVERT.FACTOR column of DB2 type DECIMAL(31 20) NOT NULL.

The following is a description of this column:

The conversion factor. Implicit conversion rules are derived from explicit rules by combining conversion factors.

Returns:
java.math.BigDecimal
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setConversionFactor

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

setConversionFactor

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

getToQuantityUnitId

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

This method provides access to the QTYCONVERT.QTYUNIT_ID_TO column of DB2 type CHAR(16) NOT NULL.

The following is a description of this column:

The QuantityUnit converted to.

Specified by:
getToQuantityUnitId in interface QuantityUnitConversionAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setToQuantityUnitId

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

getQuantityUnitConversionId

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

This method provides access to the QTYCONVERT.QTYCONVERT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique key.

Specified by:
getQuantityUnitConversionId in interface QuantityUnitConversionAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getQuantityUnitConversionIdInEJBType

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

This method provides access to the QTYCONVERT.QTYCONVERT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique key.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setQuantityUnitConversionId

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

setQuantityUnitConversionId

public void setQuantityUnitConversionId(java.lang.Integer newValue)
This method accesses a non-CMP field

getUpdatable

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

This method provides access to the QTYCONVERT.UPDATABLE column of DB2 type CHAR(1) NOT NULL.

The following is a description of this column:

A flag intended to be used by a user interface that manages QuantityUnit conversion rules:&l

Specified by:
getUpdatable in interface QuantityUnitConversionAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setUpdatable

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

getMultiplyOrDivide

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

This method provides access to the QTYCONVERT.MULTIPLYORDIVIDE column of DB2 type CHAR(1) NOT NULL.

The following is a description of this column:

Indicates how to convert from QTYUNIT_ID_FROM to QTYUNIT_ID_TO. Valid values are as follows:&l

Specified by:
getMultiplyOrDivide in interface QuantityUnitConversionAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setMultiplyOrDivide

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

Feedback