com.ibm.commerce.catalog.objects
Class ClassificationCodeAccessBean

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

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

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

Constructor Summary
ClassificationCodeAccessBean()
          constructor
ClassificationCodeAccessBean(javax.ejb.EJBObject o)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
  ClassificationCodeAccessBean findByCodeAndDomain(java.lang.String arg0, java.lang.String arg1)
          Finds the classification argCodes with the classification argCode and argDomain.
 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).
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setClassificationCodeId(java.lang.Long newValue)
          This method provides access to the CLASIFCODE.CLASIFCODE_ID column of DB2 type BIGINT NOT NULL.
 void setClassificationCodeId(java.lang.String newValue)
          This method provides access to the CLASIFCODE.CLASIFCODE_ID column of DB2 type BIGINT NOT NULL.
 void setCode(java.lang.String newValue)
          This method provides access to the CLASIFCODE.CODE column of DB2 type CHAR(16) NOT NULL.
 void setDomain(java.lang.String newValue)
          This method provides access to the CLASIFCODE.DOMAIN column of DB2 type CHAR(32) NOT NULL.
 void setInitKey_classificationCodeId(java.lang.String newValue)
          Set the primary key for this object
 void setParentCode(java.lang.String newValue)
          This method provides access to the CLASIFCODE.PARENTCODE column of DB2 type CHAR(16).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassificationCodeAccessBean

public ClassificationCodeAccessBean()
constructor

ClassificationCodeAccessBean

public ClassificationCodeAccessBean(javax.ejb.EJBObject o)
                             throws java.rmi.RemoteException
constructor
Parameters:
o - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException
Method Detail

findByCodeAndDomain

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

Finds the classification argCodes with the classification argCode and argDomain.

SQL:
SELECT CLASIFCODE_ID, CODE, DOMAIN, PARENTCODE FROM CLASIFCODE WHERE CODE = argCode AND DOMAIN = argDomain

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

setInitKey_classificationCodeId

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

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

setCode

public void setCode(java.lang.String newValue)

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:
newValue - java.lang.String
Returns:
void

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

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

setClassificationCodeId

public void setClassificationCodeId(java.lang.String newValue)

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:
newValue - String
Returns:
void

setClassificationCodeId

public void setClassificationCodeId(java.lang.Long newValue)

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

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

setDomain

public void setDomain(java.lang.String newValue)

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:
newValue - java.lang.String
Returns:
void

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

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

setParentCode

public void setParentCode(java.lang.String newValue)

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

The following is a description of this column:

The parent classification code.

Specified by:
setParentCode in interface ClassificationCodeAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void