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

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.marketingcenter.campaign.objects.CollateralTypeAccessBean

public class CollateralTypeAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean

This table defines all possible types of Collateral. Examples of Collateral types are image, flash and text. This access bean corresponds to the database table 'COLLTYPE'.

See Also:
Serialized Form

Constructor Summary
CollateralTypeAccessBean()
Zero argument constructor used to initialize the access bean.
CollateralTypeAccessBean(javax.ejb.EJBObject o)
constructor
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
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).
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCollateralTypeId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCollateralTypeId(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_collateralTypeId(java.lang.String newValue)
Set the primary key for this object
void setName(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

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 o)
                         throws java.rmi.RemoteException
constructor
Parameters:
o - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException
Method Detail

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

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

setInitKey_collateralTypeId

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

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 the Collateral Type.

Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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 the Collateral Type.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setCollateralTypeId

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

setCollateralTypeId

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

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

The following is a description of this column:

The name of the Collateral Type.

Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setName

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

Feedback