com.ibm.commerce.marketingcenter.objects
Class InitiativeScheduleAccessBean

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

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

This table describes the scheduling of campaign activities and content onto e-Marketing Spots. This access bean corresponds to the database table 'INTVSCHED'.

See Also:
Serialized Form

Constructor Summary
InitiativeScheduleAccessBean()
Zero argument constructor used to initialize the access bean.
InitiativeScheduleAccessBean(java.lang.Integer initiativeScheduleId, java.lang.Integer initiativeId, java.lang.Integer eMarketingSpotId, java.sql.Timestamp startDate, java.sql.Timestamp endDate)
Maps to a corresponding ejbCreate method in the home interface of the EJB.
InitiativeScheduleAccessBean(java.lang.Integer initiativeId, java.lang.Integer eMarketingSpotId, java.sql.Timestamp startDate, java.sql.Timestamp endDate)
Maps to a corresponding ejbCreate method in the home interface of the EJB.
InitiativeScheduleAccessBean(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 findByEMarketingSpotId(java.lang.Integer eMarketingSpotId)
This finder returns all the initiative schedules in an enumeration with the given e-marketing spot ID.
java.util.Enumeration findByEMarketingSpotIdAndDateRange(java.lang.Integer eMarketingSpotId, java.sql.Timestamp startDate, java.sql.Timestamp endDate)
This finder returns all the initiative schedules in an enumeration with the given e-marketing spot ID, start date and end date of the initiative schedule.
java.util.Enumeration findByEMarketingSpotIdSortedByEndDate(java.lang.Integer eMarketingSpotId)
This finder returns all the initiative schedules in an enumeration with the given e-marketing spot ID, sorted by the end date.
java.util.Enumeration findByEMarketingSpotIdSortedByStartDate(java.lang.Integer eMarketingSpotId)
This finder returns all the initiative schedules in an enumeration with the given e-marketing spot ID, sorted by the start date.
java.util.Enumeration findByInitiativeId(java.lang.Integer initiativeId)
This finder returns all the initiative schedules in an enumeration with the given initiative reference number.
java.util.Enumeration findByInitiativeIdSortedByEndDate(java.lang.Integer initiativeId)
This finder returns all the initiative schedules in an enumeration with the given initiative reference number, sorted by the end date.
java.util.Enumeration findByInitiativeIdSortedByStartDate(java.lang.Integer initiativeId)
This finder returns all the initiative schedules in an enumeration with the given initiative reference number, sorted by the start date.
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 getEndDate()
This method accesses a non-CMP field
java.sql.Timestamp getEndDateInEJBType()
This method accesses a non-CMP field
java.lang.String getInitiativeId()
This method accesses a non-CMP field
java.lang.Integer getInitiativeIdInEJBType()
This method accesses a non-CMP field
java.lang.String getInitiativeScheduleId()
This method accesses a non-CMP field
java.lang.Integer getInitiativeScheduleIdInEJBType()
This method accesses a non-CMP field
java.lang.Integer getOwnerStoreId()
This method accesses a non-CMP field
java.lang.String getPriority()
This method accesses a non-CMP field
java.lang.Integer getPriorityInEJBType()
This method accesses a non-CMP field
java.lang.String getStartDate()
This method accesses a non-CMP field
java.sql.Timestamp getStartDateInEJBType()
This method accesses a non-CMP field
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
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 setEndDate(java.lang.String newValue)
This method accesses a non-CMP field
void setEndDate(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setInitiativeId(java.lang.Integer newValue)
Set the primary key for this object
void setInitiativeId(java.lang.String newValue)
Set the primary key for this object
void setInitiativeScheduleId(java.lang.Integer newValue)
Set the primary key for this object
void setInitiativeScheduleId(java.lang.String newValue)
Set the primary key for this object
void setInitKey__initiativeScheduleId(java.lang.String newValue)
Set the primary key for this object
void setOwnerStoreId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setPriority(java.lang.Integer newValue)
This method accesses a non-CMP field
void setPriority(java.lang.String newValue)
This method accesses a non-CMP field
void setStartDate(java.lang.String newValue)
This method accesses a non-CMP field
void setStartDate(java.sql.Timestamp 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

InitiativeScheduleAccessBean

public InitiativeScheduleAccessBean()
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.InitiativeSchedule com.ibm.commerce.marketingcenter.objimpl.InitiativeScheduleHomeBase.findByPrimaryKey(com.ibm.commerce.marketingcenter.objects.InitiativeScheduleKey) 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__initiativeScheduleId( java.lang.Integer )

InitiativeScheduleAccessBean

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

InitiativeScheduleAccessBean

public InitiativeScheduleAccessBean(java.lang.Integer initiativeScheduleId,
                                    java.lang.Integer initiativeId,
                                    java.lang.Integer eMarketingSpotId,
                                    java.sql.Timestamp startDate,
                                    java.sql.Timestamp endDate)
                             throws javax.ejb.CreateException,
                                    java.rmi.RemoteException,
                                    javax.naming.NamingException
Maps to a corresponding ejbCreate method in the home interface of the EJB.
Parameters:
initiativeScheduleId - - the internal reference number of the initiative schedule
initiativeId - - the internal reference number of the initiative
eMarketingSpotId - - the internal reference number of the e-marketing spot
startDate - - the start date of the initiative schedule
endDate - - the end date of the initiative schedule
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

InitiativeScheduleAccessBean

public InitiativeScheduleAccessBean(java.lang.Integer initiativeId,
                                    java.lang.Integer eMarketingSpotId,
                                    java.sql.Timestamp startDate,
                                    java.sql.Timestamp endDate)
                             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:
initiativeId - - the internal reference number of the initiative
eMarketingSpotId - - the internal reference number of the e-marketing spot
startDate - - the start date of the initiative schedule
endDate - - the end date of the initiative schedule
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.ejb.FinderException
javax.naming.NamingException
Method Detail

findByEMarketingSpotId

public java.util.Enumeration findByEMarketingSpotId(java.lang.Integer eMarketingSpotId)
                                             throws java.rmi.RemoteException,
                                                    javax.ejb.FinderException,
                                                    javax.naming.NamingException
This finder returns all the initiative schedules in an enumeration with the given e-marketing spot ID.

SQL:

SELECT * FROM INTVSCHED T1 WHERE (T1.EMSPOT_ID = emSpotId)

Parameters:
eMarketingSpotId - - the reference number of the e-marketing spot
Returns:
java.util.Enumeration - all the returned initiative schedules
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

findByEMarketingSpotIdAndDateRange

public java.util.Enumeration findByEMarketingSpotIdAndDateRange(java.lang.Integer eMarketingSpotId,
                                                                java.sql.Timestamp startDate,
                                                                java.sql.Timestamp endDate)
                                                         throws java.rmi.RemoteException,
                                                                javax.ejb.FinderException,
                                                                javax.naming.NamingException
This finder returns all the initiative schedules in an enumeration with the given e-marketing spot ID, start date and end date of the initiative schedule.

SQL:

SELECT * FROM INTVSCHED T1 WHERE (T1.EMSPOT_ID = emSpotId AND T1.STARTDATE <= startDate AND T1.ENDDATE >= endDate) ORDER BY PRIORITY

Parameters:
eMarketingSpotId - - the reference number of the e-marketing spot
startDate - - the start date of the initiative schedule
endDate - - the end date of the initiative schedule
Returns:
java.util.Enumeration - all the returned initiative schedules
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

findByEMarketingSpotIdSortedByEndDate

public java.util.Enumeration findByEMarketingSpotIdSortedByEndDate(java.lang.Integer eMarketingSpotId)
                                                            throws java.rmi.RemoteException,
                                                                   javax.ejb.FinderException,
                                                                   javax.naming.NamingException
This finder returns all the initiative schedules in an enumeration with the given e-marketing spot ID, sorted by the end date.

SQL:

SELECT * FROM INTVSCHED T1 WHERE (T1.EMSPOT_ID = emSpotId) ORDER BY T1.ENDDATE

Parameters:
eMarketingSpotId - - the reference number of the e-marketing spot
Returns:
java.util.Enumeration - all the returned initiative schedules
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

findByEMarketingSpotIdSortedByStartDate

public java.util.Enumeration findByEMarketingSpotIdSortedByStartDate(java.lang.Integer eMarketingSpotId)
                                                              throws java.rmi.RemoteException,
                                                                     javax.ejb.FinderException,
                                                                     javax.naming.NamingException
This finder returns all the initiative schedules in an enumeration with the given e-marketing spot ID, sorted by the start date.

SQL:

SELECT * FROM INTVSCHED T1 WHERE (T1.EMSPOT_ID = emSpotId) ORDER BY T1.STARTDATE

Parameters:
eMarketingSpotId - - the reference number of the e-marketing spot
Returns:
java.util.Enumeration - all the returned initiative schedules
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

findByInitiativeId

public java.util.Enumeration findByInitiativeId(java.lang.Integer initiativeId)
                                         throws java.rmi.RemoteException,
                                                javax.ejb.FinderException,
                                                javax.naming.NamingException
This finder returns all the initiative schedules in an enumeration with the given initiative reference number.

SQL:

SELECT * FROM INTVSCHED T1 WHERE (T1.INITIATIVE_ID = initiativeId)

Parameters:
initiativeId - - the reference number of the initiative
Returns:
java.util.Enumeration - all the returned initiative schedules
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

findByInitiativeIdSortedByEndDate

public java.util.Enumeration findByInitiativeIdSortedByEndDate(java.lang.Integer initiativeId)
                                                        throws java.rmi.RemoteException,
                                                               javax.ejb.FinderException,
                                                               javax.naming.NamingException
This finder returns all the initiative schedules in an enumeration with the given initiative reference number, sorted by the end date.

SQL:

SELECT * FROM INTVSCHED T1 WHERE (T1.INITIATIVE_ID = initiativeId) ORDER BY T1.ENDDATE

Parameters:
initiativeId - - the reference number of the initiative
Returns:
java.util.Enumeration - all the returned initiative schedules
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

findByInitiativeIdSortedByStartDate

public java.util.Enumeration findByInitiativeIdSortedByStartDate(java.lang.Integer initiativeId)
                                                          throws java.rmi.RemoteException,
                                                                 javax.ejb.FinderException,
                                                                 javax.naming.NamingException
This finder returns all the initiative schedules in an enumeration with the given initiative reference number, sorted by the start date.

SQL:

SELECT * FROM INTVSCHED T1 WHERE (T1.INITIATIVE_ID = initiativeId) ORDER BY T1.STARTDATE

Parameters:
initiativeId - - the reference number of the initiative
Returns:
java.util.Enumeration - all the returned initiative schedules
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__initiativeScheduleId

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

getPriority

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

getPriorityInEJBType

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

setPriority

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

setPriority

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

getStartDate

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

getStartDateInEJBType

public java.sql.Timestamp getStartDateInEJBType()
                                         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

setStartDate

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

setStartDate

public void setStartDate(java.sql.Timestamp newValue)
This method accesses a non-CMP field

getInitiativeId

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

getInitiativeIdInEJBType

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

setInitiativeId

public void setInitiativeId(java.lang.String newValue)

Set the primary key for this object

Parameters:
newValue - String
Returns:
void

setInitiativeId

public void setInitiativeId(java.lang.Integer newValue)

Set the primary key for this object

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

getInitiativeScheduleId

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

getInitiativeScheduleIdInEJBType

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

setInitiativeScheduleId

public void setInitiativeScheduleId(java.lang.String newValue)

Set the primary key for this object

Parameters:
newValue - String
Returns:
void

setInitiativeScheduleId

public void setInitiativeScheduleId(java.lang.Integer newValue)

Set the primary key for this object

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

getEndDate

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

getEndDateInEJBType

public java.sql.Timestamp getEndDateInEJBType()
                                       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

setEndDate

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

setEndDate

public void setEndDate(java.sql.Timestamp 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

getOwnerStoreId

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

setOwnerStoreId

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

Feedback