java.lang.Objectcom.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
com.ibm.commerce.negotiation.objects.MessageAccessBean
This table contains messages generated by the Auctions component. This access bean corresponds to the database table 'MESSAGE'.
Constructor Summary | |
MessageAccessBean() Zero argument constructor used to initialize the access bean. |
|
MessageAccessBean(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 | 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. |
java.sql.Timestamp | getBaseInEJBType() This method provides access to the MESSAGE.BASE column of DB2 type TIMESTAMP. |
java.lang.String | getContent() This method accesses a non-CMP field |
java.lang.String | getDelayTime() This method provides access to the MESSAGE.DELAY column of DB2 type TIMESTAMP. |
java.sql.Timestamp | getDelayTimeInEJBType() This method provides access to the MESSAGE.DELAY column of DB2 type TIMESTAMP. |
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). |
java.lang.String | getMsgParam2() This method provides access to the MESSAGE.MSGPARAM2 column of DB2 type VARCHAR(254). |
java.lang.String | getMsgParam3() This method provides access to the MESSAGE.MSGPARAM3 column of DB2 type VARCHAR(254). |
java.lang.String | getMsgType() This method provides access to the MESSAGE.MSGTYPE column of DB2 type INTEGER. |
int | getMsgTypeInEJBType() This method provides access to the MESSAGE.MSGTYPE column of DB2 type INTEGER. |
java.lang.String | getPostTime() This method provides access to the MESSAGE.POSTTIME column of DB2 type TIMESTAMP. |
java.sql.Timestamp | getPostTimeInEJBType() This method provides access to the MESSAGE.POSTTIME column of DB2 type TIMESTAMP. |
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). |
java.lang.String | getTargetId() This method provides access to the MESSAGE.TARGET_ID column of DB2 type BIGINT. |
java.lang.Long | getTargetIdInEJBType() This method provides access to the MESSAGE.TARGET_ID column of DB2 type BIGINT. |
protected void | instantiateEJB() |
protected boolean | instantiateEJBByPrimaryKey() |
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 newValue) This method accesses a non-CMP field |
void | setBase(java.sql.Timestamp newValue) This method accesses a non-CMP field |
void | setContent(java.lang.String newValue) This method accesses a non-CMP field |
void | setDelayTime(java.lang.String newValue) This method accesses a non-CMP field |
void | setDelayTime(java.sql.Timestamp newValue) This method accesses a non-CMP field |
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 newValue) This method accesses a non-CMP field |
void | setId(java.lang.String newValue) This method accesses a non-CMP field |
void | setInitKey_id(java.lang.Long newValue) Set the primary key for this object |
void | setMsgParam1(java.lang.String newValue) This method accesses a non-CMP field |
void | setMsgParam2(java.lang.String newValue) This method accesses a non-CMP field |
void | setMsgParam3(java.lang.String newValue) This method accesses a non-CMP field |
void | setMsgStatus(java.lang.Long receiverid, java.lang.String newStatus) Sets the newStatus of the message for the specified member. |
void | setMsgType(int newValue) This method accesses a non-CMP field |
void | setMsgType(java.lang.String newValue) This method accesses a non-CMP field |
void | setPostTime(java.lang.String newValue) This method accesses a non-CMP field |
void | setPostTime(java.sql.Timestamp newValue) This method accesses a non-CMP field |
void | setSenderId(java.lang.Long newValue) This method accesses a non-CMP field |
void | setSenderId(java.lang.String newValue) This method accesses a non-CMP field |
void | setSendStatus(java.lang.Long receiverid, java.lang.String newSendStatus) Sets the send status of the message for the specified member. |
void | setSubject(java.lang.String newValue) This method accesses a non-CMP field |
void | setTargetId(java.lang.Long newValue) This method accesses a non-CMP field |
void | setTargetId(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 |
public MessageAccessBean()
public MessageAccessBean(javax.ejb.EJBObject o) throws java.rmi.RemoteException
Method Detail |
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
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=?
public void setInitKey_id(java.lang.Long newValue)
Set the primary key for this object
protected java.lang.String defaultJNDIName()
protected void instantiateEJB() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
protected boolean instantiateEJBByPrimaryKey() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.naming.NamingException
public void commitCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Update(flush) data to the EJBObject (persistent storage).
public void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Load data from the EJBObject.
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).
The following is a description of this column:
Reserved for IBM internal use.
public void setMsgParam3(java.lang.String newValue)
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).
The following is a description of this column:
Contains the auction ID used with the start auction message.
public void setMsgParam2(java.lang.String newValue)
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).
The following is a description of this column:
Contains the bid ID used for for the following messages: auction won, bid overridden, or order completed.
public void setMsgParam1(java.lang.String newValue)
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.
The following is a description of this column:
Auction ID and bid ID.
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.
The following is a description of this column:
Auction ID and bid ID.
public void setTargetId(java.lang.String newValue)
public void setTargetId(java.lang.Long newValue)
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.
The following is a description of this column:
Message type. Valid values are as follows:&l
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.
The following is a description of this column:
Message type. Valid values are as follows:&l
public void setMsgType(java.lang.String newValue)
public void setMsgType(int newValue)
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).
The following is a description of this column:
A text field that contains the subject of the message.
public void setSubject(java.lang.String newValue)
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.
The following is a description of this column:
Date and time the message was posted.
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.
The following is a description of this column:
Date and time the message was posted.
public void setPostTime(java.lang.String newValue)
public void setPostTime(java.sql.Timestamp newValue)
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.
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.
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.
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.
public void setBase(java.lang.String newValue)
public void setBase(java.sql.Timestamp newValue)
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.
The following is a description of this column:
The amount of time that must elapse before an email is sent to the recipient. The delay is the base plus the delay time (for example, 1 hour).
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.
The following is a description of this column:
The amount of time that must elapse before an email is sent to the recipient. The delay is the base plus the delay time (for example, 1 hour).
public void setDelayTime(java.lang.String newValue)
public void setDelayTime(java.sql.Timestamp newValue)
public java.lang.String getContent() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setContent(java.lang.String newValue)
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.
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.
public void setId(java.lang.String newValue)
public void setId(java.lang.Long newValue)
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.
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.
public void setSenderId(java.lang.String newValue)
public void setSenderId(java.lang.Long newValue)
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).
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.
public void setMsgStatus(java.lang.Long receiverid, java.lang.String newStatus) throws java.rmi.RemoteException, java.lang.Exception, javax.ejb.FinderException, javax.naming.NamingException
Sets the newStatus of the message for the specified member.
public void setSendStatus(java.lang.Long receiverid, java.lang.String newSendStatus) throws java.rmi.RemoteException, java.lang.Exception, javax.ejb.FinderException, javax.naming.NamingException
Sets the send status of the message for the specified member.
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.