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

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
        |
        +--com.ibm.commerce.marketingcenter.campaign.objects.CollateralAccessBean
Direct Known Subclasses:
CollateralDataBean

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

Reserved for IBM internal use.

See Also:
Serialized Form

Constructor Summary
CollateralAccessBean()
          constructor
CollateralAccessBean(java.lang.Integer arg0, java.lang.String arg1, java.lang.Integer arg2, java.lang.Integer arg3)
          constructor
CollateralAccessBean(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 findByStore(java.lang.Integer arg0)
          This finder returns all the collateral in an enumeration with the given store reference number.
  CollateralAccessBean findByStoreAndName(java.lang.Integer arg0, java.lang.String arg1)
          This finder returns the collateral in a bean with the given store reference number and the collateral name.
 java.util.Enumeration findByStoreAndType(java.lang.Integer arg0, java.lang.Integer arg1)
          This finder returns all the collateral in an enumeration with the given store and collateral type reference number.
 java.util.Enumeration findByStoreAndTypeWithOrder(java.lang.Integer arg0, java.lang.Integer arg1, java.lang.String arg2, java.lang.Integer arg3)
          This finder returns all the collateral in an enumeration with the given store and collateral type reference number, sorted by the given column.
 java.util.Enumeration findByStoreSortedByName(java.lang.Integer arg0)
          This finder returns all the collateral in an enumeration with the given store reference number, sorted by name.
 java.util.Enumeration findByStoreSortedByType(java.lang.Integer arg0)
          This finder returns all the collateral in an enumeration with the given store reference number, sorted by the collateral type.
 java.util.Enumeration findByStoreWithOrder(java.lang.Integer arg0, java.lang.String arg1, java.lang.Integer arg2)
          This finder returns all the collateral in an enumeration with the given store reference number, sorted by the given column.
 boolean fulfills(java.lang.Long arg0, java.lang.String arg1)
           
 java.lang.String getCollateralId()
          This method provides access to the COLLATERAL.COLLATERAL_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getCollateralIdInEJBType()
          This method provides access to the COLLATERAL.COLLATERAL_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getCustomerField1()
          This method provides access to the COLLATERAL.FIELD1 column of DB2 type VARCHAR(254).
 java.lang.String getCustomerField2()
          This method provides access to the COLLATERAL.FIELD2 column of DB2 type VARCHAR(254).
 java.lang.String getName()
          This method provides access to the COLLATERAL.NAME column of DB2 type VARCHAR(30).
 java.lang.Long getOwner()
          This method accesses a non-CMP field
 java.lang.String getStoreId()
          This method provides access to the COLLATERAL.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getStoreIdInEJBType()
          This method provides access to the COLLATERAL.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getType()
          This method provides access to the COLLATERAL.COLLTYPE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getTypeInEJBType()
          This method provides access to the COLLATERAL.COLLTYPE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getUrlLink()
          This method provides access to the COLLATERAL.URL column of DB2 type VARCHAR(254).
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCollateralId(java.lang.Integer newValue)
          This method provides access to the COLLATERAL.COLLATERAL_ID column of DB2 type INTEGER NOT NULL.
 void setCollateralId(java.lang.String newValue)
          This method provides access to the COLLATERAL.COLLATERAL_ID column of DB2 type INTEGER NOT NULL.
 void setCustomerField1(java.lang.String newValue)
          This method provides access to the COLLATERAL.FIELD1 column of DB2 type VARCHAR(254).
 void setCustomerField2(java.lang.String newValue)
          This method provides access to the COLLATERAL.FIELD2 column of DB2 type VARCHAR(254).
 void setInitKey_collateralId(java.lang.String newValue)
          Set the primary key for this object
 void setName(java.lang.String newValue)
          This method provides access to the COLLATERAL.NAME column of DB2 type VARCHAR(30).
 void setStoreId(java.lang.Integer newValue)
          This method provides access to the COLLATERAL.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void setStoreId(java.lang.String newValue)
          This method provides access to the COLLATERAL.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void setType(java.lang.Integer newValue)
          This method provides access to the COLLATERAL.COLLTYPE_ID column of DB2 type INTEGER NOT NULL.
 void setType(java.lang.String newValue)
          This method provides access to the COLLATERAL.COLLTYPE_ID column of DB2 type INTEGER NOT NULL.
 void setUrlLink(java.lang.String newValue)
          This method provides access to the COLLATERAL.URL column of DB2 type VARCHAR(254).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollateralAccessBean

public CollateralAccessBean()
constructor

CollateralAccessBean

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

CollateralAccessBean

public CollateralAccessBean(java.lang.Integer arg0,
                            java.lang.String arg1,
                            java.lang.Integer arg2,
                            java.lang.Integer arg3)
                     throws javax.ejb.CreateException,
                            java.rmi.RemoteException,
                            javax.naming.NamingException
constructor
Parameters:
arg0 - java.lang.Integer
arg1 - java.lang.String
arg2 - java.lang.Integer
arg3 - java.lang.Integer
Throws:
javax.ejb.CreateException
java.rmi.RemoteException
javax.naming.NamingException
Method Detail

findByStoreAndName

public CollateralAccessBean findByStoreAndName(java.lang.Integer arg0,
                                               java.lang.String arg1)
                                        throws java.rmi.RemoteException,
                                               javax.ejb.FinderException,
                                               javax.naming.NamingException
This finder returns the collateral in a bean with the given store reference number and the collateral name.

SQL:

SELECT * FROM COLLATERAL T1 WHERE (T1.STOREENT_ID = storeId AND T1.NAME = name)

Returns:
com.ibm.commerce.marketingcenter.campaign.objects.Collateral - the returned collateral
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

findByStore

public java.util.Enumeration findByStore(java.lang.Integer arg0)
                                  throws java.rmi.RemoteException,
                                         javax.ejb.FinderException,
                                         javax.naming.NamingException
This finder returns all the collateral in an enumeration with the given store reference number.

SQL:

SELECT * FROM COLLATERAL T1 WHERE (T1.STOREENT_ID = storeId)

Returns:
java.util.Enumeration - all the returned collateral
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

findByStoreAndType

public java.util.Enumeration findByStoreAndType(java.lang.Integer arg0,
                                                java.lang.Integer arg1)
                                         throws java.rmi.RemoteException,
                                                javax.ejb.FinderException,
                                                javax.naming.NamingException
This finder returns all the collateral in an enumeration with the given store and collateral type reference number.

SQL:

SELECT * FROM COLLATERAL T1 WHERE (T1.STOREENT_ID = storeId AND T1.TYPE = type)

Returns:
java.util.Enumeration - all the returned collateral
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

findByStoreAndTypeWithOrder

public java.util.Enumeration findByStoreAndTypeWithOrder(java.lang.Integer arg0,
                                                         java.lang.Integer arg1,
                                                         java.lang.String arg2,
                                                         java.lang.Integer arg3)
                                                  throws java.rmi.RemoteException,
                                                         javax.ejb.FinderException,
                                                         javax.naming.NamingException
This finder returns all the collateral in an enumeration with the given store and collateral type reference number, sorted by the given column.

SQL:

SELECT * FROM COLLATERAL T1, COLLDESC T2 WHERE T1.STOREENT_ID = storeId AND T1.COLLTYPE_ID = typeId AND T2.LANGUAGE_ID = languageId AND T2.COLLATERAL_ID = T1.COLLATERAL_ID ORDER BY orderCol

Returns:
java.util.Enumeration - all the returned collateral
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

findByStoreSortedByName

public java.util.Enumeration findByStoreSortedByName(java.lang.Integer arg0)
                                              throws java.rmi.RemoteException,
                                                     javax.ejb.FinderException,
                                                     javax.naming.NamingException
This finder returns all the collateral in an enumeration with the given store reference number, sorted by name.

SQL:

SELECT * FROM COLLATERAL T1 WHERE (T1.STOREENT_ID = storeId) order by T1.NAME

Returns:
java.util.Enumeration - all the returned collateral
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

findByStoreSortedByType

public java.util.Enumeration findByStoreSortedByType(java.lang.Integer arg0)
                                              throws java.rmi.RemoteException,
                                                     javax.ejb.FinderException,
                                                     javax.naming.NamingException
This finder returns all the collateral in an enumeration with the given store reference number, sorted by the collateral type.

SQL:

SELECT * FROM COLLATERAL T1 WHERE (T1.STOREENT_ID = storeId) order by T1.COLLTYPE_ID

Returns:
java.util.Enumeration - all the returned collateral
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

findByStoreWithOrder

public java.util.Enumeration findByStoreWithOrder(java.lang.Integer arg0,
                                                  java.lang.String arg1,
                                                  java.lang.Integer arg2)
                                           throws java.rmi.RemoteException,
                                                  javax.ejb.FinderException,
                                                  javax.naming.NamingException
This finder returns all the collateral in an enumeration with the given store reference number, sorted by the given column.

SQL:

SELECT * FROM COLLATERAL T1, COLLDESC T2 WHERE T1.STOREENT_ID = storeId AND T2.LANGUAGE_ID = languageId AND T2.COLLATERAL_ID = T1.COLLATERAL_ID ORDER BY orderCol

Returns:
java.util.Enumeration - all the returned collateral
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_collateralId

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

getCollateralId

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

This method provides access to the COLLATERAL.COLLATERAL_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Reserved for IBM internal use.

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

getCollateralIdInEJBType

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

This method provides access to the COLLATERAL.COLLATERAL_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Reserved for IBM internal use.

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

setCollateralId

public void setCollateralId(java.lang.String newValue)

This method provides access to the COLLATERAL.COLLATERAL_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Reserved for IBM internal use.

Parameters:
newValue - String
Returns:
void

setCollateralId

public void setCollateralId(java.lang.Integer newValue)

This method provides access to the COLLATERAL.COLLATERAL_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Reserved for IBM internal use.

Parameters:
newValue - java.lang.Integer
Returns:
void

getUrlLink

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

This method provides access to the COLLATERAL.URL column of DB2 type VARCHAR(254).

The following is a description of this column:

Reserved for IBM internal use.

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

setUrlLink

public void setUrlLink(java.lang.String newValue)

This method provides access to the COLLATERAL.URL column of DB2 type VARCHAR(254).

The following is a description of this column:

Reserved for IBM internal use.

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

getStoreId

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

This method provides access to the COLLATERAL.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Reserved for IBM internal use.

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

getStoreIdInEJBType

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

This method provides access to the COLLATERAL.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Reserved for IBM internal use.

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

setStoreId

public void setStoreId(java.lang.String newValue)

This method provides access to the COLLATERAL.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Reserved for IBM internal use.

Parameters:
newValue - String
Returns:
void

setStoreId

public void setStoreId(java.lang.Integer newValue)

This method provides access to the COLLATERAL.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Reserved for IBM internal use.

Parameters:
newValue - java.lang.Integer
Returns:
void

getType

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

This method provides access to the COLLATERAL.COLLTYPE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Reserved for IBM internal use.

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

getTypeInEJBType

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

This method provides access to the COLLATERAL.COLLTYPE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Reserved for IBM internal use.

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

setType

public void setType(java.lang.String newValue)

This method provides access to the COLLATERAL.COLLTYPE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Reserved for IBM internal use.

Parameters:
newValue - String
Returns:
void

setType

public void setType(java.lang.Integer newValue)

This method provides access to the COLLATERAL.COLLTYPE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Reserved for IBM internal use.

Parameters:
newValue - java.lang.Integer
Returns:
void

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 COLLATERAL.NAME column of DB2 type VARCHAR(30).

The following is a description of this column:

Reserved for IBM internal use.

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 provides access to the COLLATERAL.NAME column of DB2 type VARCHAR(30).

The following is a description of this column:

Reserved for IBM internal use.

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

getCustomerField2

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

This method provides access to the COLLATERAL.FIELD2 column of DB2 type VARCHAR(254).

The following is a description of this column:

Reserved for IBM internal use.

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

setCustomerField2

public void setCustomerField2(java.lang.String newValue)

This method provides access to the COLLATERAL.FIELD2 column of DB2 type VARCHAR(254).

The following is a description of this column:

Reserved for IBM internal use.

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

getCustomerField1

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

This method provides access to the COLLATERAL.FIELD1 column of DB2 type VARCHAR(254).

The following is a description of this column:

Reserved for IBM internal use.

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

setCustomerField1

public void setCustomerField1(java.lang.String newValue)

This method provides access to the COLLATERAL.FIELD1 column of DB2 type VARCHAR(254).

The following is a description of this column:

Reserved for IBM internal use.

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

fulfills

public boolean fulfills(java.lang.Long arg0,
                        java.lang.String arg1)
                 throws java.rmi.RemoteException,
                        java.lang.Exception,
                        javax.ejb.FinderException,
                        javax.naming.NamingException
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.String
Returns:
boolean
Throws:
java.rmi.RemoteException
java.lang.Exception
javax.ejb.FinderException
javax.naming.NamingException

getOwner

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