com.ibm.commerce.negotiation.objects
Class MessageAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.negotiation.objects.MessageAccessBean
All Implemented Interfaces:
MessageAccessBeanData, java.io.Serializable
Direct Known Subclasses:
MessageDataBean

public class MessageAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements MessageAccessBeanData

This bean provides access to the MESSAGE table.

The following is a description of this table:

This table contains messages generated by the Auctions component.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
MessageAccessBean()
          Zero argument constructor used to initialize the access bean.
MessageAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
MessageAccessBean(java.lang.Long senderId)
          Creates an access bean with the specified attributes.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findAllMessages(com.ibm.commerce.negotiation.util.SortingAttribute sort)
          Retrieves all messages.
 java.util.Enumeration findBySender(java.lang.Long senderId, com.ibm.commerce.negotiation.util.SortingAttribute sort)
          Retrieves all messages from the specified sender.
 java.lang.String getBase()
          This method provides access to the MESSAGE.BASE column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getBaseInEJBType()
          This method provides access to the MESSAGE.BASE column of DB2 type TIMESTAMP NULL.
 java.lang.String getContent()
          This method provides access to the MESSAGE.CONTENT column of DB2 type LONG NULL.
 java.lang.String getDelayTime()
          This method provides access to the MESSAGE.DELAY column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getDelayTimeInEJBType()
          This method provides access to the MESSAGE.DELAY column of DB2 type TIMESTAMP NULL.
 java.lang.String getId()
          This method provides access to the MESSAGE.MESSAGE_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getIdInEJBType()
          This method provides access to the MESSAGE.MESSAGE_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getMsgParam1()
          This method provides access to the MESSAGE.MSGPARAM1 column of DB2 type VARCHAR(254) NULL.
 java.lang.String getMsgParam2()
          This method provides access to the MESSAGE.MSGPARAM2 column of DB2 type VARCHAR(254) NULL.
 java.lang.String getMsgParam3()
          This method provides access to the MESSAGE.MSGPARAM3 column of DB2 type VARCHAR(254) NULL.
 java.lang.String getMsgType()
          This method provides access to the MESSAGE.MSGTYPE column of DB2 type INTEGER NULL.
 int getMsgTypeInEJBType()
          This method provides access to the MESSAGE.MSGTYPE column of DB2 type INTEGER NULL.
 java.lang.String getPostTime()
          This method provides access to the MESSAGE.POSTTIME column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getPostTimeInEJBType()
          This method provides access to the MESSAGE.POSTTIME column of DB2 type TIMESTAMP NULL.
 java.lang.String getSenderId()
          This method provides access to the MESSAGE.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getSenderIdInEJBType()
          This method provides access to the MESSAGE.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getSubject()
          This method provides access to the MESSAGE.SUBJECT column of DB2 type VARCHAR(254) NULL.
 java.lang.String getTargetId()
          This method provides access to the MESSAGE.TARGET_ID column of DB2 type BIGINT NULL.
 java.lang.Long getTargetIdInEJBType()
          This method provides access to the MESSAGE.TARGET_ID column of DB2 type BIGINT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void sendTo(java.lang.Long memberId)
          Send this message to the specified member.
 void setBase(java.lang.String aBase1)
          This method provides access to the MESSAGE.BASE column of DB2 type TIMESTAMP NULL.
 void setBase(java.sql.Timestamp aBase1)
          This method provides access to the MESSAGE.BASE column of DB2 type TIMESTAMP NULL.
 void setContent(java.lang.String aContent1)
          This method provides access to the MESSAGE.CONTENT column of DB2 type LONG NULL.
 void setDelayTime(java.lang.String aDelayTime1)
          This method provides access to the MESSAGE.DELAY column of DB2 type TIMESTAMP NULL.
 void setDelayTime(java.sql.Timestamp aDelayTime1)
          This method provides access to the MESSAGE.DELAY column of DB2 type TIMESTAMP NULL.
 void setDelayTimePeriod(int days, int hours, int minutes)
          Sets how many days, hours and minutes to wait until this message gets sent to the shopper's e-mail if they haven't read it.
 void setId(java.lang.Long aId1)
          This method provides access to the MESSAGE.MESSAGE_ID column of DB2 type BIGINT NOT NULL.
 void setId(java.lang.String aId1)
          This method provides access to the MESSAGE.MESSAGE_ID column of DB2 type BIGINT NOT NULL.
 void setInitKey_id(java.lang.Long aInitKey_id1)
          Set the primary key for this object
 void setMsgParam1(java.lang.String aMsgParam11)
          This method provides access to the MESSAGE.MSGPARAM1 column of DB2 type VARCHAR(254) NULL.
 void setMsgParam2(java.lang.String aMsgParam21)
          This method provides access to the MESSAGE.MSGPARAM2 column of DB2 type VARCHAR(254) NULL.
 void setMsgParam3(java.lang.String aMsgParam31)
          This method provides access to the MESSAGE.MSGPARAM3 column of DB2 type VARCHAR(254) NULL.
 void setMsgStatus(java.lang.Long memberId, java.lang.String status)
          Sets the status of the message for the specified member.
 void setMsgType(int aMsgType1)
          This method provides access to the MESSAGE.MSGTYPE column of DB2 type INTEGER NULL.
 void setMsgType(java.lang.String aMsgType1)
          This method provides access to the MESSAGE.MSGTYPE column of DB2 type INTEGER NULL.
 void setPostTime(java.lang.String aPostTime1)
          This method provides access to the MESSAGE.POSTTIME column of DB2 type TIMESTAMP NULL.
 void setPostTime(java.sql.Timestamp aPostTime1)
          This method provides access to the MESSAGE.POSTTIME column of DB2 type TIMESTAMP NULL.
 void setSenderId(java.lang.Long aSenderId1)
          This method provides access to the MESSAGE.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setSenderId(java.lang.String aSenderId1)
          This method provides access to the MESSAGE.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setSendStatus(java.lang.Long memberId, java.lang.String sendStatus)
          Sets the send status of the message for the specified member.
 void setSubject(java.lang.String aSubject1)
          This method provides access to the MESSAGE.SUBJECT column of DB2 type VARCHAR(254) NULL.
 void setTargetId(java.lang.Long aTargetId1)
          This method provides access to the MESSAGE.TARGET_ID column of DB2 type BIGINT NULL.
 void setTargetId(java.lang.String aTargetId1)
          This method provides access to the MESSAGE.TARGET_ID column of DB2 type BIGINT NULL.
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageAccessBean

public MessageAccessBean()

Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method:

public abstract com.ibm.commerce.negotiation.objects.Message com.ibm.commerce.negotiation.objects.MessageHome.findByPrimaryKey(com.ibm.commerce.negotiation.objects.MessageKey) 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:


MessageAccessBean

public MessageAccessBean(javax.ejb.EJBObject object)
                  throws java.rmi.RemoteException

Creates an access bean for the specified EJB

Parameters:
object - The EJB Object used for the access bean construction.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception.

MessageAccessBean

public MessageAccessBean(java.lang.Long senderId)
                  throws javax.ejb.CreateException,
                         java.rmi.RemoteException,
                         javax.naming.NamingException

Creates an access bean with the specified attributes.

Parameters:
senderId - The member who is sending the message.
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).

Overrides:
commitCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findAllMessages

public java.util.Enumeration findAllMessages(com.ibm.commerce.negotiation.util.SortingAttribute sort)
                                      throws java.rmi.RemoteException,
                                             javax.ejb.FinderException,
                                             javax.naming.NamingException

Retrieves all messages.

The SQL query used to fetch all the required rows from the MESSAGE table is:

SELECT * FROM MESSAGE T1 WHERE 1=1

Parameters:
sort - The sorting attribute. This is a set of column names and the order in which they are each to be sorted (ascending, descending). This is used to build an ORDER BY clause.
Returns:
An Enumeration of all the MessageAccessBeans representing rows that match the search criteria.

findBySender

public java.util.Enumeration findBySender(java.lang.Long senderId,
                                          com.ibm.commerce.negotiation.util.SortingAttribute sort)
                                   throws java.rmi.RemoteException,
                                          javax.ejb.FinderException,
                                          javax.naming.NamingException

Retrieves all messages from the specified sender.

The SQL query used to fetch all the required rows from the MESSAGE table is:

SELECT * FROM MESSAGE T1 WHERE T1.MEMBER_ID=?

Parameters:
senderId - The member who is sending the message.
sort - The sorting attribute. This is a set of column names and the order in which they are each to be sorted (ascending, descending). This is used to build an ORDER BY clause.
Returns:
An Enumeration of all the MessageAccessBeans representing rows that match the search criteria.

getBase

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

This method provides access to the MESSAGE.BASE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Fixed time stamp used with the delay to determine when a message is sent by e-mail.

Specified by:
getBase in interface MessageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getBaseInEJBType

public java.sql.Timestamp getBaseInEJBType()
                                    throws java.rmi.RemoteException,
                                           javax.ejb.CreateException,
                                           javax.ejb.FinderException,
                                           javax.naming.NamingException

This method provides access to the MESSAGE.BASE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Fixed time stamp used with the delay to determine when a message is sent by e-mail.

Returns:
java.sql.Timestamp
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getContent

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

This method provides access to the MESSAGE.CONTENT column of DB2 type LONG NULL.

The following is a description of this column:

A text field that contains the message content.

Specified by:
getContent in interface MessageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getDelayTime

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

This method provides access to the MESSAGE.DELAY column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The amount of time that must elapse before an e-mail is sent to the recipient. The delay is the base plus the delay time (for example, 1 hour).

Specified by:
getDelayTime in interface MessageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getDelayTimeInEJBType

public java.sql.Timestamp getDelayTimeInEJBType()
                                         throws java.rmi.RemoteException,
                                                javax.ejb.CreateException,
                                                javax.ejb.FinderException,
                                                javax.naming.NamingException

This method provides access to the MESSAGE.DELAY column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The amount of time that must elapse before an e-mail is sent to the recipient. The delay is the base plus the delay time (for example, 1 hour).

Returns:
java.sql.Timestamp
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getId

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

This method provides access to the MESSAGE.MESSAGE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Message ID. The primary key for the table.

Specified by:
getId in interface MessageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getIdInEJBType

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

This method provides access to the MESSAGE.MESSAGE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Message ID. The primary key for the table.

Returns:
java.lang.Long
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getMsgParam1

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

This method provides access to the MESSAGE.MSGPARAM1 column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Contains the bid ID used for the following messages: auction won, bid overridden, or order completed.

Specified by:
getMsgParam1 in interface MessageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getMsgParam2

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

This method provides access to the MESSAGE.MSGPARAM2 column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Contains the auction ID used with the start auction message.

Specified by:
getMsgParam2 in interface MessageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getMsgParam3

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

This method provides access to the MESSAGE.MSGPARAM3 column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Reserved for IBM internal use.

Specified by:
getMsgParam3 in interface MessageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getMsgType

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

This method provides access to the MESSAGE.MSGTYPE column of DB2 type INTEGER NULL.

The following is a description of this column:

Message type. Valid values: 1=start auction, 2=auction won, 3=auction lost, 4=bid overridden, 5=order completed

Specified by:
getMsgType in interface MessageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getMsgTypeInEJBType

public int getMsgTypeInEJBType()
                        throws java.rmi.RemoteException,
                               javax.ejb.CreateException,
                               javax.ejb.FinderException,
                               javax.naming.NamingException

This method provides access to the MESSAGE.MSGTYPE column of DB2 type INTEGER NULL.

The following is a description of this column:

Message type. Valid values: 1=start auction, 2=auction won, 3=auction lost, 4=bid overridden, 5=order completed

Returns:
int
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getPostTime

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

This method provides access to the MESSAGE.POSTTIME column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Date and time the message was posted.

Specified by:
getPostTime in interface MessageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getPostTimeInEJBType

public java.sql.Timestamp getPostTimeInEJBType()
                                        throws java.rmi.RemoteException,
                                               javax.ejb.CreateException,
                                               javax.ejb.FinderException,
                                               javax.naming.NamingException

This method provides access to the MESSAGE.POSTTIME column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Date and time the message was posted.

Returns:
java.sql.Timestamp
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getSenderId

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

This method provides access to the MESSAGE.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Member ID. The member who is sending the message. For auctions, this is the owner of the auction.

Specified by:
getSenderId in interface MessageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getSenderIdInEJBType

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

This method provides access to the MESSAGE.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Member ID. The member who is sending the message. For auctions, this is the owner of the auction.

Returns:
java.lang.Long
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getSubject

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

This method provides access to the MESSAGE.SUBJECT column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

A text field that contains the subject of the message.

Specified by:
getSubject in interface MessageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTargetId

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

This method provides access to the MESSAGE.TARGET_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

Auction ID and bid ID.

Specified by:
getTargetId in interface MessageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getTargetIdInEJBType

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

This method provides access to the MESSAGE.TARGET_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

Auction ID and bid ID.

Returns:
java.lang.Long
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Load data from the EJBObject.

Overrides:
refreshCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

sendTo

public void sendTo(java.lang.Long memberId)
            throws java.rmi.RemoteException,
                   java.lang.Exception,
                   javax.ejb.FinderException,
                   javax.naming.NamingException

Send this message to the specified member. This creates a record in the MSGMEMREL table where STATUS='N' (new) and SENDSTAT='NS' (not submitted).

Parameters:
memberId - The member Id.
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
java.lang.Exception - The java.lang.Exception exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setBase

public void setBase(java.lang.String aBase1)

This method provides access to the MESSAGE.BASE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Fixed time stamp used with the delay to determine when a message is sent by e-mail.

Specified by:
setBase in interface MessageAccessBeanData
Parameters:
aBase1 - java.lang.String
Returns:
void

setBase

public void setBase(java.sql.Timestamp aBase1)

This method provides access to the MESSAGE.BASE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Fixed time stamp used with the delay to determine when a message is sent by e-mail.

Parameters:
aBase1 - java.sql.Timestamp
Returns:
void

setContent

public void setContent(java.lang.String aContent1)

This method provides access to the MESSAGE.CONTENT column of DB2 type LONG NULL.

The following is a description of this column:

A text field that contains the message content.

Specified by:
setContent in interface MessageAccessBeanData
Parameters:
aContent1 - java.lang.String
Returns:
void

setDelayTime

public void setDelayTime(java.lang.String aDelayTime1)

This method provides access to the MESSAGE.DELAY column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The amount of time that must elapse before an e-mail is sent to the recipient. The delay is the base plus the delay time (for example, 1 hour).

Specified by:
setDelayTime in interface MessageAccessBeanData
Parameters:
aDelayTime1 - java.lang.String
Returns:
void

setDelayTime

public void setDelayTime(java.sql.Timestamp aDelayTime1)

This method provides access to the MESSAGE.DELAY column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The amount of time that must elapse before an e-mail is sent to the recipient. The delay is the base plus the delay time (for example, 1 hour).

Parameters:
aDelayTime1 - java.sql.Timestamp
Returns:
void

setDelayTimePeriod

public void setDelayTimePeriod(int days,
                               int hours,
                               int minutes)
                        throws java.rmi.RemoteException,
                               javax.ejb.FinderException,
                               javax.naming.NamingException

Sets how many days, hours and minutes to wait until this message gets sent to the shopper's e-mail if they haven't read it.

Parameters:
days - The number of days.
hours - The number of hours.
minutes - The number of minutes.
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setId

public void setId(java.lang.Long aId1)

This method provides access to the MESSAGE.MESSAGE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Message ID. The primary key for the table.

Parameters:
aId1 - java.lang.Long
Returns:
void

setId

public void setId(java.lang.String aId1)

This method provides access to the MESSAGE.MESSAGE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Message ID. The primary key for the table.

Specified by:
setId in interface MessageAccessBeanData
Parameters:
aId1 - java.lang.String
Returns:
void

setInitKey_id

public void setInitKey_id(java.lang.Long aInitKey_id1)

Set the primary key for this object

Parameters:
aInitKey_id1 - java.lang.Long
Returns:
void

setMsgParam1

public void setMsgParam1(java.lang.String aMsgParam11)

This method provides access to the MESSAGE.MSGPARAM1 column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Contains the bid ID used for the following messages: auction won, bid overridden, or order completed.

Specified by:
setMsgParam1 in interface MessageAccessBeanData
Parameters:
aMsgParam11 - java.lang.String
Returns:
void

setMsgParam2

public void setMsgParam2(java.lang.String aMsgParam21)

This method provides access to the MESSAGE.MSGPARAM2 column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Contains the auction ID used with the start auction message.

Specified by:
setMsgParam2 in interface MessageAccessBeanData
Parameters:
aMsgParam21 - java.lang.String
Returns:
void

setMsgParam3

public void setMsgParam3(java.lang.String aMsgParam31)

This method provides access to the MESSAGE.MSGPARAM3 column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Reserved for IBM internal use.

Specified by:
setMsgParam3 in interface MessageAccessBeanData
Parameters:
aMsgParam31 - java.lang.String
Returns:
void

setMsgStatus

public void setMsgStatus(java.lang.Long memberId,
                         java.lang.String status)
                  throws java.rmi.RemoteException,
                         java.lang.Exception,
                         javax.ejb.FinderException,
                         javax.naming.NamingException

Sets the status of the message for the specified member.

Parameters:
memberId - The member Id.
status - The new message status.
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
java.lang.Exception - The java.lang.Exception exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setMsgType

public void setMsgType(int aMsgType1)

This method provides access to the MESSAGE.MSGTYPE column of DB2 type INTEGER NULL.

The following is a description of this column:

Message type. Valid values: 1=start auction, 2=auction won, 3=auction lost, 4=bid overridden, 5=order completed

Parameters:
aMsgType1 - int
Returns:
void

setMsgType

public void setMsgType(java.lang.String aMsgType1)

This method provides access to the MESSAGE.MSGTYPE column of DB2 type INTEGER NULL.

The following is a description of this column:

Message type. Valid values: 1=start auction, 2=auction won, 3=auction lost, 4=bid overridden, 5=order completed

Specified by:
setMsgType in interface MessageAccessBeanData
Parameters:
aMsgType1 - java.lang.String
Returns:
void

setPostTime

public void setPostTime(java.lang.String aPostTime1)

This method provides access to the MESSAGE.POSTTIME column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Date and time the message was posted.

Specified by:
setPostTime in interface MessageAccessBeanData
Parameters:
aPostTime1 - java.lang.String
Returns:
void

setPostTime

public void setPostTime(java.sql.Timestamp aPostTime1)

This method provides access to the MESSAGE.POSTTIME column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

Date and time the message was posted.

Parameters:
aPostTime1 - java.sql.Timestamp
Returns:
void

setSenderId

public void setSenderId(java.lang.Long aSenderId1)

This method provides access to the MESSAGE.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Member ID. The member who is sending the message. For auctions, this is the owner of the auction.

Parameters:
aSenderId1 - java.lang.Long
Returns:
void

setSenderId

public void setSenderId(java.lang.String aSenderId1)

This method provides access to the MESSAGE.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Member ID. The member who is sending the message. For auctions, this is the owner of the auction.

Specified by:
setSenderId in interface MessageAccessBeanData
Parameters:
aSenderId1 - java.lang.String
Returns:
void

setSendStatus

public void setSendStatus(java.lang.Long memberId,
                          java.lang.String sendStatus)
                   throws java.rmi.RemoteException,
                          java.lang.Exception,
                          javax.ejb.FinderException,
                          javax.naming.NamingException

Sets the send status of the message for the specified member.

Parameters:
memberId - The member Id.
sendStatus - The new send status.
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
java.lang.Exception - The java.lang.Exception exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setSubject

public void setSubject(java.lang.String aSubject1)

This method provides access to the MESSAGE.SUBJECT column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

A text field that contains the subject of the message.

Specified by:
setSubject in interface MessageAccessBeanData
Parameters:
aSubject1 - java.lang.String
Returns:
void

setTargetId

public void setTargetId(java.lang.Long aTargetId1)

This method provides access to the MESSAGE.TARGET_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

Auction ID and bid ID.

Parameters:
aTargetId1 - java.lang.Long
Returns:
void

setTargetId

public void setTargetId(java.lang.String aTargetId1)

This method provides access to the MESSAGE.TARGET_ID column of DB2 type BIGINT NULL.

The following is a description of this column:

Auction ID and bid ID.

Specified by:
setTargetId in interface MessageAccessBeanData
Parameters:
aTargetId1 - java.lang.String
Returns:
void