com.ibm.commerce.catalog.objects
Class ClassificationCodeAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.catalog.objects.ClassificationCodeAccessBean
All Implemented Interfaces:
ClassificationCodeAccessBeanData, java.io.Serializable

public class ClassificationCodeAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements ClassificationCodeAccessBeanData

This bean provides access to the CLASIFCODE table.

The following is a description of this table:

This table contains all possible product classification codes under different classification domains (such as UNSPSC, SPSC, and so on) that can be assigned to CatalogEntries.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
ClassificationCodeAccessBean()
          Default constructor.
ClassificationCodeAccessBean(javax.ejb.EJBObject codeEJBObj)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 ClassificationCodeAccessBean findByCodeAndDomain(java.lang.String code, java.lang.String domain)
          Finds the classification codes with the classification code and domain.
 java.lang.String getClassificationCodeId()
          This method provides access to the CLASIFCODE.CLASIFCODE_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getClassificationCodeIdInEJBType()
          This method provides access to the CLASIFCODE.CLASIFCODE_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getCode()
          This method provides access to the CLASIFCODE.CODE column of DB2 type CHAR(16) NOT NULL.
 java.lang.String getDomain()
          This method provides access to the CLASIFCODE.DOMAIN column of DB2 type CHAR(32) NOT NULL.
 java.lang.String getParentCode()
          This method provides access to the CLASIFCODE.PARENTCODE column of DB2 type CHAR(16) NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setClassificationCodeId(java.lang.Long codeID)
          This method provides access to the CLASIFCODE.CLASIFCODE_ID column of DB2 type BIGINT NOT NULL.
 void setClassificationCodeId(java.lang.String codeID)
          This method provides access to the CLASIFCODE.CLASIFCODE_ID column of DB2 type BIGINT NOT NULL.
 void setCode(java.lang.String code)
          This method provides access to the CLASIFCODE.CODE column of DB2 type CHAR(16) NOT NULL.
 void setDomain(java.lang.String domain)
          This method provides access to the CLASIFCODE.DOMAIN column of DB2 type CHAR(32) NOT NULL.
 void setInitKey_classificationCodeId(java.lang.String codeID)
          Set the primary key for this object
 void setParentCode(java.lang.String parentCode)
          This method provides access to the CLASIFCODE.PARENTCODE column of DB2 type CHAR(16) 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

ClassificationCodeAccessBean

public ClassificationCodeAccessBean()

Default constructor. Maps to findByPrimaryKey.


ClassificationCodeAccessBean

public ClassificationCodeAccessBean(javax.ejb.EJBObject codeEJBObj)
                             throws java.rmi.RemoteException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
codeEJBObj - The classification code EJB object. 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

findByCodeAndDomain

public ClassificationCodeAccessBean findByCodeAndDomain(java.lang.String code,
                                                        java.lang.String domain)
                                                 throws java.rmi.RemoteException,
                                                        javax.ejb.FinderException,
                                                        javax.naming.NamingException

Finds the classification codes with the classification code and domain.

SQL:
SELECT CLASIFCODE_ID, CODE, DOMAIN, PARENTCODE FROM CLASIFCODE WHERE CODE = code AND DOMAIN = domain

Parameters:
code - The classification code. java.lang.String
domain - The domain. java.lang.String
Returns:
com.ibm.commerce.catalog.objects.ClassificationCodeAccessBean
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

getClassificationCodeId

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

This method provides access to the CLASIFCODE.CLASIFCODE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated primary key.

Specified by:
getClassificationCodeId in interface ClassificationCodeAccessBeanData
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

getClassificationCodeIdInEJBType

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

This method provides access to the CLASIFCODE.CLASIFCODE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated primary key.

Returns:
java.lang.Long
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

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

The following is a description of this column:

The classification code.

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

getDomain

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

This method provides access to the CLASIFCODE.DOMAIN column of DB2 type CHAR(32) NOT NULL.

The following is a description of this column:

The classification standard or domain.

Specified by:
getDomain in interface ClassificationCodeAccessBeanData
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

getParentCode

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

This method provides access to the CLASIFCODE.PARENTCODE column of DB2 type CHAR(16) NULL.

The following is a description of this column:

The parent classification code.

Specified by:
getParentCode in interface ClassificationCodeAccessBeanData
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

setClassificationCodeId

public void setClassificationCodeId(java.lang.Long codeID)

This method provides access to the CLASIFCODE.CLASIFCODE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated primary key.

Parameters:
codeID - The classification code ID. java.lang.Long
Returns:
void

setClassificationCodeId

public void setClassificationCodeId(java.lang.String codeID)

This method provides access to the CLASIFCODE.CLASIFCODE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated primary key.

Specified by:
setClassificationCodeId in interface ClassificationCodeAccessBeanData
Parameters:
codeID - The classification code ID. java.lang.String
Returns:
void

setCode

public void setCode(java.lang.String code)

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

The following is a description of this column:

The classification code.

Specified by:
setCode in interface ClassificationCodeAccessBeanData
Parameters:
code - The classification code. java.lang.String
Returns:
void

setDomain

public void setDomain(java.lang.String domain)

This method provides access to the CLASIFCODE.DOMAIN column of DB2 type CHAR(32) NOT NULL.

The following is a description of this column:

The classification standard or domain.

Specified by:
setDomain in interface ClassificationCodeAccessBeanData
Parameters:
domain - The domain. java.lang.String
Returns:
void

setInitKey_classificationCodeId

public void setInitKey_classificationCodeId(java.lang.String codeID)

Set the primary key for this object

Parameters:
codeID - The classification code ID. java.lang.String
Returns:
void

setParentCode

public void setParentCode(java.lang.String parentCode)

This method provides access to the CLASIFCODE.PARENTCODE column of DB2 type CHAR(16) NULL.

The following is a description of this column:

The parent classification code.

Specified by:
setParentCode in interface ClassificationCodeAccessBeanData
Parameters:
parentCode - The parent classification code. java.lang.String
Returns:
void