com.ibm.commerce.marketingcenter.campaign.objects
Class CollateralTypeAccessBean

com.ibm.commerce.marketingcenter.campaign.objects.CollateralTypeAccessBean

public class CollateralTypeAccessBean

This bean provides access to the COLLTYPE table.

The following is a description of this table:

This table holds the information related to a collateral type.


Constructor Summary
CollateralTypeAccessBean()
          Zero argument constructor used to initialize the access bean.
CollateralTypeAccessBean(javax.ejb.EJBObject CollateralTypeEJBObj)
          Maps to a corresponding ejbCreate method in the home interface of the EJB.
CollateralTypeAccessBean(java.lang.Integer collateralTypeId)
          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()
          Obtain the JNDI name for this EJB
 java.util.Enumeration findAll()
          This finder returns all the collateral types in an enumeration.
 java.util.Enumeration findAllSortedByName()
          This finder returns all the collateral types in an enumeration, sorted by name.
 java.lang.String getCollateralTypeId()
          This method provides access to the COLLTYPE.COLLTYPE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getCollateralTypeIdInEJBType()
          This method provides access to the COLLTYPE.COLLTYPE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getName()
          This method provides access to the COLLTYPE.NAME column of DB2 type VARCHAR(254) NULL.
protected  void instantiateEJB()
          IBM internal use only
protected  boolean instantiateEJBByPrimaryKey()
          IBM internal use only
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCollateralTypeId(java.lang.Integer collateralTypeId)
          This method provides access to the COLLTYPE.COLLTYPE_ID column of DB2 type INTEGER NOT NULL.
 void setCollateralTypeId(java.lang.String collateralTypeId)
          This method provides access to the COLLTYPE.COLLTYPE_ID column of DB2 type INTEGER NOT NULL.
 void setInitKey_collateralTypeId(java.lang.String newCollateralTypeId)
          Set the primary key for this object.
 void setName(java.lang.String name)
          This method provides access to the COLLTYPE.NAME column of DB2 type VARCHAR(254) NULL.
 

Constructor Detail

CollateralTypeAccessBean

public CollateralTypeAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.marketingcenter.campaign.objects.CollateralType com.ibm.commerce.marketingcenter.campaign.objimpl.CollateralTypeHomeBase.findByPrimaryKey(com.ibm.commerce.marketingcenter.campaign.objects.CollateralTypeKey) 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_collateralTypeId( java.lang.Integer )

CollateralTypeAccessBean

public CollateralTypeAccessBean(javax.ejb.EJBObject CollateralTypeEJBObj)
                         throws java.rmi.RemoteException
Maps to a corresponding ejbCreate method in the home interface of the EJB.
Parameters:
CollateralTypeEJBObj - - a CollateralType EJBObject reference
Throws:
java.rmi.RemoteException - - Thrown when the ejbCreate method is failed to invoke.

CollateralTypeAccessBean

public CollateralTypeAccessBean(java.lang.Integer collateralTypeId)
                         throws javax.ejb.CreateException,
                                java.rmi.RemoteException,
                                javax.naming.NamingException
Maps to a corresponding ejbCreate method in the home interface of the EJB.
Parameters:
collateralTypeId - - the internal reference number of the collateral type
Throws:
javax.ejb.CreateException - - Thrown when the creation of the EJB object failed.
java.rmi.RemoteException - - Thrown when the ejbCreate method is failed to invoke.
javax.naming.NamingException - - Thrown when a naming exception is encountered.
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).
Throws:
java.rmi.RemoteException - - Thrown when the remote method is failed to invoke.
javax.ejb.CreateException - - Thrown when the creation of the EJB object failed.
javax.ejb.FinderException - - Thrown when the finding of the requested EJB object failed.
javax.naming.NamingException - - Thrown when a naming exception is encountered.

defaultJNDIName

protected java.lang.String defaultJNDIName()
Obtain the JNDI name for this EJB
Returns:
java.lang.String - the JNDI name for this EJB

findAll

public java.util.Enumeration findAll()
                              throws java.rmi.RemoteException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException
This finder returns all the collateral types in an enumeration.

SQL:

SELECT * FROM COLLTYPE T1 WHERE 1 = 1

Returns:
java.util.Enumeration - all the returned collateral types
Throws:
java.rmi.RemoteException - - Thrown when the ejbCreate method is failed to invoke.
javax.ejb.FinderException - - Thrown when the finding of the requested EJB object failed.
javax.naming.NamingException - - Thrown when a naming exception is encountered.

findAllSortedByName

public java.util.Enumeration findAllSortedByName()
                                          throws java.rmi.RemoteException,
                                                 javax.ejb.FinderException,
                                                 javax.naming.NamingException
This finder returns all the collateral types in an enumeration, sorted by name.

SQL:

SELECT * FROM COLLTYPE T1 ORDER BY T1.NAME

Returns:
java.util.Enumeration - all the returned collateral types
Throws:
java.rmi.RemoteException - - Thrown when the ejbCreate method is failed to invoke.
javax.ejb.FinderException - - Thrown when the finding of the requested EJB object failed.
javax.naming.NamingException - - Thrown when a naming exception is encountered.

getCollateralTypeId

public java.lang.String getCollateralTypeId()
                                     throws java.rmi.RemoteException,
                                            javax.ejb.CreateException,
                                            javax.ejb.FinderException,
                                            javax.naming.NamingException
This method provides access to the COLLTYPE.COLLTYPE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The internal reference number of this collateral type.

Returns:
java.lang.String
Throws:
java.rmi.RemoteException - - Thrown when the remote method is failed to invoke.
javax.ejb.CreateException - - Thrown when the creation of the EJB object failed.
javax.ejb.FinderException - - Thrown when the finding of the requested EJB object failed.
javax.naming.NamingException - - Thrown when a naming exception is encountered.

getCollateralTypeIdInEJBType

public java.lang.Integer getCollateralTypeIdInEJBType()
                                               throws java.rmi.RemoteException,
                                                      javax.ejb.CreateException,
                                                      javax.ejb.FinderException,
                                                      javax.naming.NamingException
This method provides access to the COLLTYPE.COLLTYPE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The internal reference number of this collateral type.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException - - Thrown when the remote method is failed to invoke.
javax.ejb.CreateException - - Thrown when the creation of the EJB object failed.
javax.ejb.FinderException - - Thrown when the finding of the requested EJB object failed.
javax.naming.NamingException - - Thrown when a naming exception is encountered.

getName

public java.lang.String getName()
                         throws java.rmi.RemoteException,
                                javax.ejb.CreateException,
                                javax.ejb.FinderException,
                                javax.naming.NamingException
This method provides access to the COLLTYPE.NAME column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

The name of this collateral type.

Returns:
java.lang.String
Throws:
java.rmi.RemoteException - - Thrown when the remote method is failed to invoke.
javax.ejb.CreateException - - Thrown when the creation of the EJB object failed.
javax.ejb.FinderException - - Thrown when the finding of the requested EJB object failed.
javax.naming.NamingException - - Thrown when a naming exception is encountered.

instantiateEJB

protected void instantiateEJB()
                       throws java.rmi.RemoteException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException
IBM internal use only

instantiateEJBByPrimaryKey

protected boolean instantiateEJBByPrimaryKey()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.naming.NamingException
IBM internal use only

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException
Load data from the EJBObject.
Throws:
java.rmi.RemoteException - - Thrown when the remote method is failed to invoke.
javax.ejb.CreateException - - Thrown when the creation of the EJB object failed.
javax.ejb.FinderException - - Thrown when the finding of the requested EJB object failed.
javax.naming.NamingException - - Thrown when a naming exception is encountered.

setCollateralTypeId

public void setCollateralTypeId(java.lang.Integer collateralTypeId)
This method provides access to the COLLTYPE.COLLTYPE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The internal reference number of this collateral type.

Parameters:
java.lang.Integer -  

setCollateralTypeId

public void setCollateralTypeId(java.lang.String collateralTypeId)
This method provides access to the COLLTYPE.COLLTYPE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The internal reference number of this collateral type.

Parameters:
java.lang.String -  

setInitKey_collateralTypeId

public void setInitKey_collateralTypeId(java.lang.String newCollateralTypeId)
Set the primary key for this object.
Parameters:
newCollateralTypeId - - the reference number of the collateral type

setName

public void setName(java.lang.String name)
This method provides access to the COLLTYPE.NAME column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

The name of this collateral type.

Parameters:
java.lang.String -