com.ibm.commerce.common.objects
Class QuantityUnitConversionAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.common.objects.QuantityUnitConversionAccessBean
All Implemented Interfaces:
QuantityUnitConversionAccessBeanData, java.io.Serializable

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

This bean provides access to the QTYCONVERT table.

The following is a description of this table:

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.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
QuantityUnitConversionAccessBean()
          Default constructor.
QuantityUnitConversionAccessBean(javax.ejb.EJBObject ejbObject)
          Creates an access bean for the specified EJB
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 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.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setConversionFactor(java.math.BigDecimal aConversionFactor)
          This method provides access to the QTYCONVERT.FACTOR column of DB2 type DECIMAL(31,20) NOT NULL.
 void setConversionFactor(java.lang.String aConversionFactor)
          This method provides access to the QTYCONVERT.FACTOR column of DB2 type DECIMAL(31,20) NOT NULL.
 void setFromQuantityUnitId(java.lang.String aFromQuantityUnitId)
          This method provides access to the QTYCONVERT.QTYUNIT_ID_FROM column of DB2 type CHAR(16) NOT NULL.
 void setInitKey_quantityUnitConversionId(java.lang.String aInitKey_quantityUnitConversionId)
          Set the primary key for this object
 void setMultiplyOrDivide(java.lang.String aMultiplyOrDivide)
          This method provides access to the QTYCONVERT.MULTIPLYORDIVIDE column of DB2 type CHAR(1) NOT NULL.
 void setQuantityUnitConversionId(java.lang.Integer aQuantityUnitConversionId)
          This method provides access to the QTYCONVERT.QTYCONVERT_ID column of DB2 type INTEGER NOT NULL.
 void setQuantityUnitConversionId(java.lang.String aQuantityUnitConversionId)
          This method provides access to the QTYCONVERT.QTYCONVERT_ID column of DB2 type INTEGER NOT NULL.
 void setToQuantityUnitId(java.lang.String aToQuantityUnitId)
          This method provides access to the QTYCONVERT.QTYUNIT_ID_TO column of DB2 type CHAR(16) NOT NULL.
 void setUpdatable(java.lang.String aUpdatable)
          This method provides access to the QTYCONVERT.UPDATABLE column of DB2 type CHAR(1) 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

QuantityUnitConversionAccessBean

public QuantityUnitConversionAccessBean()

Default constructor. Maps to findByPrimaryKey.


QuantityUnitConversionAccessBean

public QuantityUnitConversionAccessBean(javax.ejb.EJBObject ejbObject)
                                 throws java.rmi.RemoteException

Creates an access bean for the specified EJB

Parameters:
ejbObject - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException 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

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 - The javax.naming.NamingException exception

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:
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

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

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

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: M (multiply by FACTOR), D (divide by FACTOR). Conversion from QTYUNIT_ID_TO to QTYUNIT_ID_FROM using the inverse operation is implicitly defined.

Specified by:
getMultiplyOrDivide in interface QuantityUnitConversionAccessBeanData
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

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:
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

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

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

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.
N = the conversion factor is irrevocable. It should never be changed.
Y = the conversion factor can be changed.

Specified by:
getUpdatable in interface QuantityUnitConversionAccessBeanData
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

setConversionFactor

public void setConversionFactor(java.math.BigDecimal aConversionFactor)

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.

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

setConversionFactor

public void setConversionFactor(java.lang.String aConversionFactor)

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:
setConversionFactor in interface QuantityUnitConversionAccessBeanData
Parameters:
aConversionFactor - java.lang.String
Returns:
void

setFromQuantityUnitId

public void setFromQuantityUnitId(java.lang.String aFromQuantityUnitId)

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:
setFromQuantityUnitId in interface QuantityUnitConversionAccessBeanData
Parameters:
aFromQuantityUnitId - java.lang.String
Returns:
void

setInitKey_quantityUnitConversionId

public void setInitKey_quantityUnitConversionId(java.lang.String aInitKey_quantityUnitConversionId)

Set the primary key for this object

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

setMultiplyOrDivide

public void setMultiplyOrDivide(java.lang.String aMultiplyOrDivide)

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: M (multiply by FACTOR), D (divide by FACTOR). Conversion from QTYUNIT_ID_TO to QTYUNIT_ID_FROM using the inverse operation is implicitly defined.

Specified by:
setMultiplyOrDivide in interface QuantityUnitConversionAccessBeanData
Parameters:
aMultiplyOrDivide - java.lang.String
Returns:
void

setQuantityUnitConversionId

public void setQuantityUnitConversionId(java.lang.Integer aQuantityUnitConversionId)

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.

Parameters:
aQuantityUnitConversionId - java.lang.Integer
Returns:
void

setQuantityUnitConversionId

public void setQuantityUnitConversionId(java.lang.String aQuantityUnitConversionId)

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:
setQuantityUnitConversionId in interface QuantityUnitConversionAccessBeanData
Parameters:
aQuantityUnitConversionId - java.lang.String
Returns:
void

setToQuantityUnitId

public void setToQuantityUnitId(java.lang.String aToQuantityUnitId)

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:
setToQuantityUnitId in interface QuantityUnitConversionAccessBeanData
Parameters:
aToQuantityUnitId - java.lang.String
Returns:
void

setUpdatable

public void setUpdatable(java.lang.String aUpdatable)

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.
N = the conversion factor is irrevocable. It should never be changed.
Y = the conversion factor can be changed.

Specified by:
setUpdatable in interface QuantityUnitConversionAccessBeanData
Parameters:
aUpdatable - java.lang.String
Returns:
void