com.ibm.commerce.marketingcenter.objects
Class EMarketingSpotAccessBean

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

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

This table contains registered e-Marketing Spots. This access bean corresponds to the database table 'EMSPOT'.

See Also:
Serialized Form

Constructor Summary
EMarketingSpotAccessBean()
Zero argument constructor used to initialize the access bean.
EMarketingSpotAccessBean(java.lang.Integer eMarketingSpotId, java.lang.Integer storeId, java.lang.String name)
Maps to a corresponding ejbCreate method in the home interface of the EJB.
EMarketingSpotAccessBean(java.lang.Integer storeId, java.lang.String name)
Maps to a corresponding ejbCreate method in the home interface of the EJB.
EMarketingSpotAccessBean(javax.ejb.EJBObject o)
constructor
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
EMarketingSpotAccessBean findByStoreIdAndName(java.lang.Integer storeId, java.lang.String name)
This finder returns the e-marketing spot in an access bean with the given store reference number and the e-marketing spot name.
java.util.Enumeration findByStoreIdSortedByDescription(java.lang.Integer storeId)
This finder returns all the e-marketing spots in an enumeration with the given store reference number, sorted by description.
java.util.Enumeration findByStoreIdSortedByName(java.lang.Integer storeId)
This finder returns all the e-marketing spots in an enumeration with the given store reference number, sorted by name.
boolean fulfills(java.lang.Long arg0, java.lang.String arg1)
java.lang.String getDescription()
This method accesses a non-CMP field
java.lang.String getEMarketingSpotId()
This method accesses a non-CMP field
java.lang.Integer getEMarketingSpotIdInEJBType()
This method accesses a non-CMP field
java.lang.String getName()
This method accesses a non-CMP field
java.lang.Long getOwner()
This method accesses a non-CMP field
java.lang.String getStoreId()
This method accesses a non-CMP field
java.lang.Integer getStoreIdInEJBType()
This method accesses a non-CMP field
java.lang.String getSupportedTypes()
This method accesses a non-CMP field
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setDescription(java.lang.String newValue)
This method accesses a non-CMP field
void setEMarketingSpotId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setEMarketingSpotId(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey__eMarketingSpotId(java.lang.String newValue)
Set the primary key for this object
void setName(java.lang.String newValue)
This method accesses a non-CMP field
void setStoreId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setStoreId(java.lang.String newValue)
This method accesses a non-CMP field
void setSupportedTypes(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

EMarketingSpotAccessBean

public EMarketingSpotAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.marketingcenter.objects.EMarketingSpot com.ibm.commerce.marketingcenter.objimpl.EMarketingSpotHomeBase.findByPrimaryKey(com.ibm.commerce.marketingcenter.objects.EMarketingSpotKey) 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__eMarketingSpotId( java.lang.Integer )

EMarketingSpotAccessBean

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

EMarketingSpotAccessBean

public EMarketingSpotAccessBean(java.lang.Integer eMarketingSpotId,
                                java.lang.Integer storeId,
                                java.lang.String name)
                         throws javax.ejb.CreateException,
                                java.rmi.RemoteException,
                                javax.naming.NamingException
Maps to a corresponding ejbCreate method in the home interface of the EJB.
Parameters:
eMarketingSpotId - - the internal reference number of the e-marketing spot
storeId - - the internal reference number of the store
name - - the name of the e-marketing spot
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

EMarketingSpotAccessBean

public EMarketingSpotAccessBean(java.lang.Integer storeId,
                                java.lang.String name)
                         throws javax.ejb.FinderException,
                                javax.naming.NamingException,
                                javax.ejb.CreateException,
                                java.rmi.RemoteException
Maps to a corresponding ejbCreate method in the home interface of the EJB.
Parameters:
storeId - - the internal reference number of the store
name - - the name of the e-marketing spot
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.
javax.ejb.FinderException
Method Detail

findByStoreIdAndName

public EMarketingSpotAccessBean findByStoreIdAndName(java.lang.Integer storeId,
                                                     java.lang.String name)
                                              throws java.rmi.RemoteException,
                                                     javax.ejb.FinderException,
                                                     javax.naming.NamingException
This finder returns the e-marketing spot in an access bean with the given store reference number and the e-marketing spot name.

SQL:

SELECT * FROM EMSPOT T1 WHERE (T1.STOREENT_ID = storeId AND T1.NAME = emSpotName)

Parameters:
storeId - - the reference number of the store
name - - the name of the e-marketing spot
Returns:
com.ibm.commerce.marketingcenter.objects.EMarketingSpotAccessBean - the returned e-marketing spot
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

findByStoreIdSortedByDescription

public java.util.Enumeration findByStoreIdSortedByDescription(java.lang.Integer storeId)
                                                       throws java.rmi.RemoteException,
                                                              javax.ejb.FinderException,
                                                              javax.naming.NamingException
This finder returns all the e-marketing spots in an enumeration with the given store reference number, sorted by description.

SQL:

SELECT * FROM EMSPOT T1 WHERE ( T1.STOREENT_ID = storeId ) ORDER BY T1.DESCRIPTION

Parameters:
storeId - - the internal reference number of the store
Returns:
java.util.Enumeration - all the returned e-marketing spots
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

findByStoreIdSortedByName

public java.util.Enumeration findByStoreIdSortedByName(java.lang.Integer storeId)
                                                throws java.rmi.RemoteException,
                                                       javax.ejb.FinderException,
                                                       javax.naming.NamingException
This finder returns all the e-marketing spots in an enumeration with the given store reference number, sorted by name.

SQL:

SELECT * FROM EMSPOT T1 WHERE ( T1.STOREENT_ID = storeId ) ORDER BY T1.NAME

Parameters:
storeId - - the internal reference number of the store
Returns:
java.util.Enumeration - all the returned e-marketing spots
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__eMarketingSpotId

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

getDescription

public java.lang.String getDescription()
                                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

setDescription

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

getSupportedTypes

public java.lang.String getSupportedTypes()
                                   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

setSupportedTypes

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

getStoreId

public java.lang.String getStoreId()
                            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

getStoreIdInEJBType

public java.lang.Integer getStoreIdInEJBType()
                                      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

setStoreId

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

setStoreId

public void setStoreId(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 accesses a non-CMP field
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

getEMarketingSpotId

public java.lang.String getEMarketingSpotId()
                                     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

getEMarketingSpotIdInEJBType

public java.lang.Integer getEMarketingSpotIdInEJBType()
                                               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

setEMarketingSpotId

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

setEMarketingSpotId

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

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
Throws:
java.lang.Exception
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

Feedback