com.ibm.commerce.common.objects
Class NumberUsageAccessBean

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

public class NumberUsageAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements NumberUsageAccessBeanData

This bean provides access to the NUMBRUSG table.

The following is a description of this table:

Each row defines a NumberUsage object. Numbers such as quantities and monetary amounts can be rounded and formatted differently depending on their associated NumberUsage objects. The CurrencyManager and QuantityManager cache this information.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
NumberUsageAccessBean()
          Default constructor.
NumberUsageAccessBean(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 NumberUsageAccessBeans
 java.util.Enumeration findByCode(java.lang.String code)
          Retrieves all NumberUsageAccessBean by number usage code
 java.lang.String getCode()
          This method provides access to the NUMBRUSG.CODE column of DB2 type CHAR(60) NULL.
 java.lang.String getNumberUsageId()
          This method provides access to the NUMBRUSG.NUMBRUSG_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getNumberUsageIdInEJBType()
          This method provides access to the NUMBRUSG.NUMBRUSG_ID column of DB2 type INTEGER NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCode(java.lang.String aCode)
          This method provides access to the NUMBRUSG.CODE column of DB2 type CHAR(60) NULL.
 void setInitKey_numberUsageId(java.lang.String aInitKey_numberUsageId)
          Set the primary key for this object
 void setNumberUsageId(java.lang.Integer aNumberUsageId)
          This method provides access to the NUMBRUSG.NUMBRUSG_ID column of DB2 type INTEGER NOT NULL.
 void setNumberUsageId(java.lang.String aNumberUsageId)
          This method provides access to the NUMBRUSG.NUMBRUSG_ID 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

NumberUsageAccessBean

public NumberUsageAccessBean()

Default constructor. Maps to findByPrimaryKey.


NumberUsageAccessBean

public NumberUsageAccessBean(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 NumberUsageAccessBeans

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

SELECT * FROM NUMBRUSG 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

findByCode

public java.util.Enumeration findByCode(java.lang.String code)
                                 throws java.rmi.RemoteException,
                                        javax.ejb.FinderException,
                                        javax.naming.NamingException

Retrieves all NumberUsageAccessBean by number usage code

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

SELECT * FROM NUMBRUSG T1 WHERE T1.CODE = ?

Parameters:
code - Code
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

getCode

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

This method provides access to the NUMBRUSG.CODE column of DB2 type CHAR(60) NULL.

The following is a description of this column:

Applications can specify this value to identify their application specific NumberUsages. It is suggested that Java package naming conventions be used to facilitate application integration. Values starting with "com.ibm." are reserved for IBM.

Specified by:
getCode in interface NumberUsageAccessBeanData
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

getNumberUsageId

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

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

The following is a description of this column:

Generated unique key. Negative values are reserved for IBM. Websphere Commerce defines and uses the following values:
-1 = com.ibm.commerce.default
-2 = com.ibm.commerce.unitPrice
-3 = com.ibm.commerce.listPrice

Specified by:
getNumberUsageId in interface NumberUsageAccessBeanData
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

getNumberUsageIdInEJBType

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

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

The following is a description of this column:

Generated unique key. Negative values are reserved for IBM. Websphere Commerce defines and uses the following values:
-1 = com.ibm.commerce.default
-2 = com.ibm.commerce.unitPrice
-3 = com.ibm.commerce.listPrice

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

setCode

public void setCode(java.lang.String aCode)

This method provides access to the NUMBRUSG.CODE column of DB2 type CHAR(60) NULL.

The following is a description of this column:

Applications can specify this value to identify their application specific NumberUsages. It is suggested that Java package naming conventions be used to facilitate application integration. Values starting with "com.ibm." are reserved for IBM.

Specified by:
setCode in interface NumberUsageAccessBeanData
Parameters:
aCode - java.lang.String
Returns:
void

setInitKey_numberUsageId

public void setInitKey_numberUsageId(java.lang.String aInitKey_numberUsageId)

Set the primary key for this object

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

setNumberUsageId

public void setNumberUsageId(java.lang.Integer aNumberUsageId)

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

The following is a description of this column:

Generated unique key. Negative values are reserved for IBM. Websphere Commerce defines and uses the following values:
-1 = com.ibm.commerce.default
-2 = com.ibm.commerce.unitPrice
-3 = com.ibm.commerce.listPrice

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

setNumberUsageId

public void setNumberUsageId(java.lang.String aNumberUsageId)

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

The following is a description of this column:

Generated unique key. Negative values are reserved for IBM. Websphere Commerce defines and uses the following values:
-1 = com.ibm.commerce.default
-2 = com.ibm.commerce.unitPrice
-3 = com.ibm.commerce.listPrice

Specified by:
setNumberUsageId in interface NumberUsageAccessBeanData
Parameters:
aNumberUsageId - java.lang.String
Returns:
void