com.ibm.commerce.common.objects
Class QuantityUnitFormatAccessBean

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

public class QuantityUnitFormatAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements QuantityUnitFormatAccessBeanData

This bean provides access to the QTYFORMAT table.

The following is a description of this table:

Each row of this table represents the Language-independent part of a QuantityUnit formatting rule. If a Store has no formatting rule for a particular QuantityUnit, it uses the formatting rule of its StoreGroup.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
QuantityUnitFormatAccessBean()
          Default constructor.
QuantityUnitFormatAccessBean(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 QuantityUnitFormatAccessBeans
 java.lang.String getDecimalPlace()
          This method provides access to the QTYFORMAT.DECIMALPLACES column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getDecimalPlaceInEJBType()
          This method provides access to the QTYFORMAT.DECIMALPLACES column of DB2 type INTEGER NOT NULL.
 QuantityUnitFormatDescriptionAccessBean getDescription(java.lang.Integer languageId)
          Returns QuantityUnitFormatDescriptionAccessBean by languageId
 java.lang.String getNumberUsgId()
          This method provides access to the QTYFORMAT.NUMBRUSG_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getNumberUsgIdInEJBType()
          This method provides access to the QTYFORMAT.NUMBRUSG_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getQuantityUnitId()
          This method provides access to the QTYFORMAT.QTYUNIT_ID column of DB2 type CHAR(16) NOT NULL.
 java.lang.String getRoundingMethod()
          This method provides access to the QTYFORMAT.ROUNDINGMETHOD column of DB2 type CHAR(1) NOT NULL.
 java.lang.String getRoundingMultiple()
          This method provides access to the QTYFORMAT.ROUNDINGMULTIPLE column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getRoundingMultipleInEJBType()
          This method provides access to the QTYFORMAT.ROUNDINGMULTIPLE column of DB2 type INTEGER NOT NULL.
 java.lang.String getStoreEntityId()
          This method provides access to the QTYFORMAT.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getStoreEntityIdInEJBType()
          This method provides access to the QTYFORMAT.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setDecimalPlace(java.lang.Integer aDecimalPlace)
          This method provides access to the QTYFORMAT.DECIMALPLACES column of DB2 type INTEGER NOT NULL.
 void setDecimalPlace(java.lang.String aDecimalPlace)
          This method provides access to the QTYFORMAT.DECIMALPLACES column of DB2 type INTEGER NOT NULL.
 void setInitKey_numberUsgId(java.lang.String aInitKey_numberUsgId)
          Set the primary key for this object
 void setInitKey_quantityUnitId(java.lang.String aInitKey_quantityUnitId)
          Set the primary key for this object
 void setInitKey_storeEntityId(java.lang.String aInitKey_storeEntityId)
          Set the primary key for this object
 void setNumberUsgId(java.lang.Integer aNumberUsgId)
          This method provides access to the QTYFORMAT.NUMBRUSG_ID column of DB2 type INTEGER NOT NULL.
 void setNumberUsgId(java.lang.String aNumberUsgId)
          This method provides access to the QTYFORMAT.NUMBRUSG_ID column of DB2 type INTEGER NOT NULL.
 void setRoundingMethod(java.lang.String aRoundingMethod)
          This method provides access to the QTYFORMAT.ROUNDINGMETHOD column of DB2 type CHAR(1) NOT NULL.
 void setRoundingMultiple(java.lang.Integer aRoundingMultiple)
          This method provides access to the QTYFORMAT.ROUNDINGMULTIPLE column of DB2 type INTEGER NOT NULL.
 void setRoundingMultiple(java.lang.String aRoundingMultiple)
          This method provides access to the QTYFORMAT.ROUNDINGMULTIPLE column of DB2 type INTEGER 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

QuantityUnitFormatAccessBean

public QuantityUnitFormatAccessBean()

Default constructor. Maps to findByPrimaryKey.


QuantityUnitFormatAccessBean

public QuantityUnitFormatAccessBean(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 QuantityUnitFormatAccessBeans

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

SELECT * FROM QTYFORMAT T1 WHERE 1 = 1

* @return 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

getDecimalPlace

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

This method provides access to the QTYFORMAT.DECIMALPLACES column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The number of decimal places in a rounded or truncated quantity amount.

Specified by:
getDecimalPlace in interface QuantityUnitFormatAccessBeanData
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

getDecimalPlaceInEJBType

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

This method provides access to the QTYFORMAT.DECIMALPLACES column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The number of decimal places in a rounded or truncated quantity amount.

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

getDescription

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

Returns QuantityUnitFormatDescriptionAccessBean by languageId

Parameters:
languageId - Language id
Returns:
com.ibm.commerce.common.objects.QuantityUnitFormatDescriptionAccessBean
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getNumberUsgId

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

This method provides access to the QTYFORMAT.NUMBRUSG_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

This QuantityUnit formatting rule should be used when formatting quantity amounts for this usage.

Specified by:
getNumberUsgId in interface QuantityUnitFormatAccessBeanData
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

getNumberUsgIdInEJBType

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

This method provides access to the QTYFORMAT.NUMBRUSG_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

This QuantityUnit formatting rule should be used when formatting quantity amounts for this usage.

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

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 QTYFORMAT.QTYUNIT_ID column of DB2 type CHAR(16) NOT NULL.

The following is a description of this column:

The QuantityUnit.

Specified by:
getQuantityUnitId in interface QuantityUnitFormatAccessBeanData
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

getRoundingMethod

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

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

The following is a description of this column:

How to round to a multiple of ROUNDINGMULTIPLE. Valid values: R (round normally - up or down - to the nearest multiple), T (truncate - round down for positive amounts, round up for negative amounts).

Specified by:
getRoundingMethod in interface QuantityUnitFormatAccessBeanData
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

getRoundingMultiple

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

This method provides access to the QTYFORMAT.ROUNDINGMULTIPLE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Rounding multiple. For example, specify 5 to round centimeters the nearest multiple of five centimeters. The default value is 1.

Specified by:
getRoundingMultiple in interface QuantityUnitFormatAccessBeanData
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

getRoundingMultipleInEJBType

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

This method provides access to the QTYFORMAT.ROUNDINGMULTIPLE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Rounding multiple. For example, specify 5 to round centimeters the nearest multiple of five centimeters. The default value is 1.

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

getStoreEntityId

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

This method provides access to the QTYFORMAT.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The StoreEntity of which this formatting rule is a part.

Specified by:
getStoreEntityId in interface QuantityUnitFormatAccessBeanData
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

getStoreEntityIdInEJBType

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

This method provides access to the QTYFORMAT.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The StoreEntity of which this formatting rule is a part.

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

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

setDecimalPlace

public void setDecimalPlace(java.lang.Integer aDecimalPlace)

This method provides access to the QTYFORMAT.DECIMALPLACES column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The number of decimal places in a rounded or truncated quantity amount.

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

setDecimalPlace

public void setDecimalPlace(java.lang.String aDecimalPlace)

This method provides access to the QTYFORMAT.DECIMALPLACES column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The number of decimal places in a rounded or truncated quantity amount.

Specified by:
setDecimalPlace in interface QuantityUnitFormatAccessBeanData
Parameters:
aDecimalPlace - java.lang.String
Returns:
void

setInitKey_numberUsgId

public void setInitKey_numberUsgId(java.lang.String aInitKey_numberUsgId)

Set the primary key for this object

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

setInitKey_quantityUnitId

public void setInitKey_quantityUnitId(java.lang.String aInitKey_quantityUnitId)

Set the primary key for this object

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

setInitKey_storeEntityId

public void setInitKey_storeEntityId(java.lang.String aInitKey_storeEntityId)

Set the primary key for this object

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

setNumberUsgId

public void setNumberUsgId(java.lang.Integer aNumberUsgId)

This method provides access to the QTYFORMAT.NUMBRUSG_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

This QuantityUnit formatting rule should be used when formatting quantity amounts for this usage.

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

setNumberUsgId

public void setNumberUsgId(java.lang.String aNumberUsgId)

This method provides access to the QTYFORMAT.NUMBRUSG_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

This QuantityUnit formatting rule should be used when formatting quantity amounts for this usage.

Specified by:
setNumberUsgId in interface QuantityUnitFormatAccessBeanData
Parameters:
aNumberUsgId - java.lang.String
Returns:
void

setRoundingMethod

public void setRoundingMethod(java.lang.String aRoundingMethod)

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

The following is a description of this column:

How to round to a multiple of ROUNDINGMULTIPLE. Valid values: R (round normally - up or down - to the nearest multiple), T (truncate - round down for positive amounts, round up for negative amounts).

Specified by:
setRoundingMethod in interface QuantityUnitFormatAccessBeanData
Parameters:
aRoundingMethod - java.lang.String
Returns:
void

setRoundingMultiple

public void setRoundingMultiple(java.lang.Integer aRoundingMultiple)

This method provides access to the QTYFORMAT.ROUNDINGMULTIPLE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Rounding multiple. For example, specify 5 to round centimeters the nearest multiple of five centimeters. The default value is 1.

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

setRoundingMultiple

public void setRoundingMultiple(java.lang.String aRoundingMultiple)

This method provides access to the QTYFORMAT.ROUNDINGMULTIPLE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Rounding multiple. For example, specify 5 to round centimeters the nearest multiple of five centimeters. The default value is 1.

Specified by:
setRoundingMultiple in interface QuantityUnitFormatAccessBeanData
Parameters:
aRoundingMultiple - java.lang.String
Returns:
void