com.ibm.commerce.user.objects
Class OrganizationCodeAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.user.objects.OrganizationCodeAccessBean
All Implemented Interfaces:
OrganizationCodeAccessBeanData, java.io.Serializable

public class OrganizationCodeAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements OrganizationCodeAccessBeanData

This bean provides access to the ORGCODE table.

The following is a description of this table:

This table contains the unique identification of an organization entity under different identification systems or domains. This can be used to identify buyer organizations and supplier organizations to each other in procurement systems.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
OrganizationCodeAccessBean()
          Default constructor.
OrganizationCodeAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
OrganizationCodeAccessBean(java.lang.String aCode, java.lang.String aCodeType, java.lang.Long aOrganizationId)
          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).
 java.util.Enumeration findByCodeAndCodeType(java.lang.String aCode, java.lang.String aCodeType)
          The SQL is "SELECT * FROM ORGCODE T1 WHERE (T1.CODE = ?) AND (T1.CODETYPE = ?)".
 java.util.Enumeration findByOrganizationIdAndCodeType(java.lang.Long aOrganizationId, java.lang.String aCodeType)
          The SQL is "SELECT * FROM ORGCODE T1 WHERE (T1.ORGENTITY_ID = ?) AND (T1.CODETYPE = ?)"
 java.lang.String getCode()
          Organization code.
 java.lang.String getCodeType()
          Code type.
 java.lang.String getOrganizationCodeId()
          This method provides access to the ORGCODE.ORGCODE_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrganizationCodeIdInEJBType()
          This method provides access to the ORGCODE.ORGCODE_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getOrganizationId()
          This method provides access to the ORGCODE.ORGENTITY_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getOrganizationIdInEJBType()
          This method provides access to the ORGCODE.ORGENTITY_ID column of DB2 type BIGINT NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCode(java.lang.String aCode)
          Set the organization code.
 void setCodeType(java.lang.String aCodeType)
          Set the code type.
 void setInitKey_iOrganizationCodeId(java.lang.String aInitKey_iOrganizationCodeId)
          Set the primary key for this object
 void setOrganizationCodeId(java.lang.Long aOrganizationCodeId)
          This method provides access to the ORGCODE.ORGCODE_ID column of DB2 type BIGINT NOT NULL.
 void setOrganizationCodeId(java.lang.String aOrganizationCodeId)
          This method provides access to the ORGCODE.ORGCODE_ID column of DB2 type BIGINT NOT NULL.
 void setOrganizationId(java.lang.Long aOrganizationId)
          This method provides access to the ORGCODE.ORGENTITY_ID column of DB2 type BIGINT NOT NULL.
 void setOrganizationId(java.lang.String aOrganizationId)
          This method provides access to the ORGCODE.ORGENTITY_ID column of DB2 type BIGINT 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

OrganizationCodeAccessBean

public OrganizationCodeAccessBean()

Default constructor. Maps to findByPrimaryKey.


OrganizationCodeAccessBean

public OrganizationCodeAccessBean(javax.ejb.EJBObject object)
                           throws java.rmi.RemoteException

Creates an access bean for the specified EJB

Parameters:
object - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

OrganizationCodeAccessBean

public OrganizationCodeAccessBean(java.lang.String aCode,
                                  java.lang.String aCodeType,
                                  java.lang.Long aOrganizationId)
                           throws javax.naming.NamingException,
                                  javax.ejb.CreateException,
                                  java.rmi.RemoteException,
                                  javax.ejb.FinderException

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

Parameters:
aCode - java.lang.String
aCodeType - java.lang.String
aOrganizationId - java.lang.Long
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException 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

findByCodeAndCodeType

public java.util.Enumeration findByCodeAndCodeType(java.lang.String aCode,
                                                   java.lang.String aCodeType)
                                            throws java.rmi.RemoteException,
                                                   javax.ejb.FinderException,
                                                   javax.naming.NamingException

The SQL is "SELECT * FROM ORGCODE T1 WHERE (T1.CODE = ?) AND (T1.CODETYPE = ?)".

Parameters:
aCode - java.lang.String
aCodeType - java.lang.String
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

findByOrganizationIdAndCodeType

public java.util.Enumeration findByOrganizationIdAndCodeType(java.lang.Long aOrganizationId,
                                                             java.lang.String aCodeType)
                                                      throws java.rmi.RemoteException,
                                                             javax.ejb.FinderException,
                                                             javax.naming.NamingException

The SQL is "SELECT * FROM ORGCODE T1 WHERE (T1.ORGENTITY_ID = ?) AND (T1.CODETYPE = ?)"

Parameters:
aOrganizationId - java.lang.Long
aCodeType - java.lang.String
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

Organization code.

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

getCodeType

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

Code type.

Specified by:
getCodeType in interface OrganizationCodeAccessBeanData
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

getOrganizationCodeId

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

This method provides access to the ORGCODE.ORGCODE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated primary key.

Specified by:
getOrganizationCodeId in interface OrganizationCodeAccessBeanData
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

getOrganizationCodeIdInEJBType

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

This method provides access to the ORGCODE.ORGCODE_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

getOrganizationId

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

This method provides access to the ORGCODE.ORGENTITY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Foreign key to ORGENTITY table.

Specified by:
getOrganizationId in interface OrganizationCodeAccessBeanData
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

getOrganizationIdInEJBType

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

This method provides access to the ORGCODE.ORGENTITY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Foreign key to ORGENTITY table.

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

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)

Set the organization code.

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

setCodeType

public void setCodeType(java.lang.String aCodeType)

Set the code type.

Specified by:
setCodeType in interface OrganizationCodeAccessBeanData
Parameters:
aCodeType - java.lang.String
Returns:
void

setInitKey_iOrganizationCodeId

public void setInitKey_iOrganizationCodeId(java.lang.String aInitKey_iOrganizationCodeId)

Set the primary key for this object

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

setOrganizationCodeId

public void setOrganizationCodeId(java.lang.Long aOrganizationCodeId)

This method provides access to the ORGCODE.ORGCODE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated primary key.

Parameters:
aOrganizationCodeId - java.lang.Long
Returns:
void

setOrganizationCodeId

public void setOrganizationCodeId(java.lang.String aOrganizationCodeId)

This method provides access to the ORGCODE.ORGCODE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated primary key.

Specified by:
setOrganizationCodeId in interface OrganizationCodeAccessBeanData
Parameters:
aOrganizationCodeId - java.lang.String
Returns:
void

setOrganizationId

public void setOrganizationId(java.lang.Long aOrganizationId)

This method provides access to the ORGCODE.ORGENTITY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Foreign key to ORGENTITY table.

Parameters:
aOrganizationId - java.lang.Long
Returns:
void

setOrganizationId

public void setOrganizationId(java.lang.String aOrganizationId)

This method provides access to the ORGCODE.ORGENTITY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Foreign key to ORGENTITY table.

Specified by:
setOrganizationId in interface OrganizationCodeAccessBeanData
Parameters:
aOrganizationId - java.lang.String
Returns:
void