com.ibm.commerce.user.objects
Class OrganizationCodeAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.user.objects.OrganizationCodeAccessBean
All Implemented Interfaces:
OrganizationCodeAccessBeanData

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

This table contains the unique identification of an OrgEntity under different identification systems or domains. This can be used to identify buyer organizations and supplier organizations to each other in procurement systems. This access bean corresponds to the database table 'ORGCODE'.

See Also:
Serialized Form

Constructor Summary
OrganizationCodeAccessBean()
Zero argument constructor used to initialize the access bean.
OrganizationCodeAccessBean(javax.ejb.EJBObject o)
constructor
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).
protected java.lang.String defaultJNDIName()
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)
java.lang.String getCode()
This method accesses a non-CMP field
java.lang.String getCodeType()
This method accesses a non-CMP field
java.lang.String getOrganizationCodeId()
This method accesses a non-CMP field
java.lang.Long getOrganizationCodeIdInEJBType()
This method accesses a non-CMP field
java.lang.String getOrganizationId()
This method accesses a non-CMP field
java.lang.Long getOrganizationIdInEJBType()
This method accesses a non-CMP field
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCode(java.lang.String newValue)
This method accesses a non-CMP field
void setCodeType(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_iOrganizationCodeId(java.lang.String newValue)
Set the primary key for this object
void setOrganizationCodeId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOrganizationCodeId(java.lang.String newValue)
This method accesses a non-CMP field
void setOrganizationId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOrganizationId(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

OrganizationCodeAccessBean

public OrganizationCodeAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.user.objects.OrganizationCode com.ibm.commerce.user.objimpl.OrganizationCodeHomeBase.findByPrimaryKey(com.ibm.commerce.user.objects.OrganizationCodeKey) 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_iOrganizationCodeId( java.lang.Long )

OrganizationCodeAccessBean

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

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

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

findByOrganizationIdAndCodeType

public java.util.Enumeration findByOrganizationIdAndCodeType(java.lang.Long aOrganizationId,
                                                             java.lang.String aCodeType)
                                                      throws java.rmi.RemoteException,
                                                             javax.ejb.FinderException,
                                                             javax.naming.NamingException
Parameters:
aOrganizationId - java.lang.Long
aCodeType - java.lang.String
Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The exception description.
javax.ejb.FinderException - The exception description.
javax.naming.NamingException

setInitKey_iOrganizationCodeId

public void setInitKey_iOrganizationCodeId(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 accesses a non-CMP field
Specified by:
getCode in interface OrganizationCodeAccessBeanData
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setCode

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

getOrganizationCodeId

public java.lang.String getOrganizationCodeId()
                                       throws java.rmi.RemoteException,
                                              javax.ejb.CreateException,
                                              javax.ejb.FinderException,
                                              javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getOrganizationCodeId in interface OrganizationCodeAccessBeanData
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getOrganizationCodeIdInEJBType

public java.lang.Long getOrganizationCodeIdInEJBType()
                                              throws java.rmi.RemoteException,
                                                     javax.ejb.CreateException,
                                                     javax.ejb.FinderException,
                                                     javax.naming.NamingException
This method accesses a non-CMP field
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setOrganizationCodeId

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

setOrganizationCodeId

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

getCodeType

public java.lang.String getCodeType()
                             throws java.rmi.RemoteException,
                                    javax.ejb.CreateException,
                                    javax.ejb.FinderException,
                                    javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getCodeType in interface OrganizationCodeAccessBeanData
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setCodeType

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

getOrganizationId

public java.lang.String getOrganizationId()
                                   throws java.rmi.RemoteException,
                                          javax.ejb.CreateException,
                                          javax.ejb.FinderException,
                                          javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getOrganizationId in interface OrganizationCodeAccessBeanData
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getOrganizationIdInEJBType

public java.lang.Long getOrganizationIdInEJBType()
                                          throws java.rmi.RemoteException,
                                                 javax.ejb.CreateException,
                                                 javax.ejb.FinderException,
                                                 javax.naming.NamingException
This method accesses a non-CMP field
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setOrganizationId

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

setOrganizationId

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

Feedback