com.ibm.commerce.common.objects
Class QuantityUnitFormatAccessBean

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

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

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. This access bean corresponds to the database table 'QTYFORMAT'.

See Also:
Serialized Form

Constructor Summary
QuantityUnitFormatAccessBean()
Zero argument constructor used to initialize the access bean.
QuantityUnitFormatAccessBean(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 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 arg1)
Returns QuantityUnitFormatDescriptionAccessBean by arg1
java.lang.String getNumberUsgId()
This method provides access to the QTYFORMAT.NUMBRUSG_ID column of DB2 type INTEGER NOT NULL DEFAULT -1.
java.lang.Integer getNumberUsgIdInEJBType()
This method provides access to the QTYFORMAT.NUMBRUSG_ID column of DB2 type INTEGER NOT NULL DEFAULT -1.
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.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setDecimalPlace(java.lang.Integer newValue)
This method accesses a non-CMP field
void setDecimalPlace(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_numberUsgId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_quantityUnitId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_storeEntityId(java.lang.String newValue)
Set the primary key for this object
void setNumberUsgId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setNumberUsgId(java.lang.String newValue)
This method accesses a non-CMP field
void setRoundingMethod(java.lang.String newValue)
This method accesses a non-CMP field
void setRoundingMultiple(java.lang.Integer newValue)
This method accesses a non-CMP field
void setRoundingMultiple(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

QuantityUnitFormatAccessBean

public QuantityUnitFormatAccessBean()
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.QuantityUnitFormat com.ibm.commerce.common.objimpl.QuantityUnitFormatHomeBase.findByPrimaryKey(com.ibm.commerce.common.objects.QuantityUnitFormatKey) 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_quantityUnitId( java.lang.String ) setInitKey_storeEntityId( java.lang.Integer ) setInitKey_numberUsgId( java.lang.Integer )

QuantityUnitFormatAccessBean

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

setInitKey_quantityUnitId

public void setInitKey_quantityUnitId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_storeEntityId

public void setInitKey_storeEntityId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_numberUsgId

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

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 DEFAULT -1.

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

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 DEFAULT -1.

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

setNumberUsgId

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

setNumberUsgId

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

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

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

setRoundingMultiple

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

setRoundingMultiple

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

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

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

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

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

setDecimalPlace

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

setDecimalPlace

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

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

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

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

setRoundingMethod

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

getDescription

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

Returns QuantityUnitFormatDescriptionAccessBean by arg1

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

Feedback