com.ibm.commerce.tools.optools.order.objects
Class OrderCommentAccessBean

com.ibm.commerce.tools.optools.order.objects.OrderCommentAccessBean

public class OrderCommentAccessBean

This bean provides access to the ORCOMMENT table.

The following is a description of this table:

Each row in this table represents a comment associated to an Order in a Store.


Constructor Summary
OrderCommentAccessBean()
          Default constructor.
OrderCommentAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
OrderCommentAccessBean(java.lang.Long orderId, java.lang.String comment)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByOrder(java.lang.Long orderId)
          Retrieves all the OrderCommentAccessBeans for the specified Order.
 java.lang.String getComment()
          This method provides access to the ORCOMMENT.LASTUPDATE column of DB2 type TIMESTAMP NULL and Oracle type DATE NULL.
 java.lang.String getLastupdate()
          This method provides access to the ORCOMMENT.LASTUPDATE column of DB2 type TIMESTAMP NULL and Oracle type DATE NULL.
 java.sql.Timestamp getLastupdateInEJBType()
          This method provides access to the ORCOMMENT.LASTUPDATE column of DB2 type TIMESTAMP NULL and Oracle type DATE NULL.
 java.lang.String getOrcommentId()
          This method provides access to the ORCOMMENT.ORCOMMENT_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.
 java.lang.Long getOrcommentIdInEJBType()
          This method provides access to the ORCOMMENT.ORCOMMENT_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.
 java.lang.String getOrderId()
          This method provides access to the ORCOMMENT.ORDERS_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.
 java.lang.Long getOrderIdInEJBType()
          This method provides access to the ORCOMMENT.ORDERS_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setComment(java.lang.String comment)
          This method provides access to the ORCOMMENT.LASTUPDATE column of DB2 type TIMESTAMP NULL and Oracle type DATE NULL.
 void setInitKey_orcommentId(java.lang.String aInitKey_orcommentId1)
          Set the primary key for this object
 void setLastupdate(java.lang.String aLastupdate1)
          This method provides access to the ORCOMMENT.LASTUPDATE column of DB2 type TIMESTAMP NULL and Oracle type DATE NULL.
 void setLastupdate(java.sql.Timestamp lastupdate)
          This method provides access to the ORCOMMENT.LASTUPDATE column of DB2 type TIMESTAMP NULL and Oracle type DATE NULL.
 void setOrcommentId(java.lang.Long orcommentId)
          This method provides access to the ORCOMMENT.ORCOMMENT_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.
 void setOrcommentId(java.lang.String orcommentId)
          This method provides access to the ORCOMMENT.ORCOMMENT_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.
 void setOrderId(java.lang.Long orderId)
          This method provides access to the ORCOMMENT.ORDERS_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.
 void setOrderId(java.lang.String orderId)
          This method provides access to the ORCOMMENT.ORDERS_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.
 

Constructor Detail

OrderCommentAccessBean

public OrderCommentAccessBean()

Default constructor. Maps to findByPrimaryKey.


OrderCommentAccessBean

public OrderCommentAccessBean(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

OrderCommentAccessBean

public OrderCommentAccessBean(java.lang.Long orderId,
                              java.lang.String comment)
                       throws javax.naming.NamingException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              java.rmi.RemoteException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
orderId - The ID of the order.
comment - The content of the comment.
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
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).

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

findByOrder

public java.util.Enumeration findByOrder(java.lang.Long orderId)
                                  throws java.rmi.RemoteException,
                                         javax.ejb.FinderException,
                                         javax.naming.NamingException

Retrieves all the OrderCommentAccessBeans for the specified Order.

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

SELECT * FROM ORCOMMENT T1 WHERE (T1.ORDERS_ID = ?) ORDER BY T1.LASTUPDATE

Parameters:
orderId - The ID of the order.
Returns:
java.util.Enumeration
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

getComment

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

This method provides access to the ORCOMMENT.LASTUPDATE column of DB2 type TIMESTAMP NULL and Oracle type DATE NULL.

The following is a description of this column:

The content of the comment.

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

getLastupdate

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

This method provides access to the ORCOMMENT.LASTUPDATE column of DB2 type TIMESTAMP NULL and Oracle type DATE NULL.

The following is a description of this column:

The time this comment is created.

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

getLastupdateInEJBType

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

This method provides access to the ORCOMMENT.LASTUPDATE column of DB2 type TIMESTAMP NULL and Oracle type DATE NULL.

The following is a description of this column:

The time this comment is created.

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

getOrcommentId

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

This method provides access to the ORCOMMENT.ORCOMMENT_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.

The following is a description of this column:

Generated unique key.

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

getOrcommentIdInEJBType

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

This method provides access to the ORCOMMENT.ORCOMMENT_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.

The following is a description of this column:

Generated unique key.

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

getOrderId

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

This method provides access to the ORCOMMENT.ORDERS_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.

The following is a description of this column:

The ID of the order.

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

getOrderIdInEJBType

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

This method provides access to the ORCOMMENT.ORDERS_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.

The following is a description of this column:

The ID of the order.

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.

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

setComment

public void setComment(java.lang.String comment)

This method provides access to the ORCOMMENT.LASTUPDATE column of DB2 type TIMESTAMP NULL and Oracle type DATE NULL.

The following is a description of this column:

The content of the comment.

Parameters:
comment - java.lang.String

setInitKey_orcommentId

public void setInitKey_orcommentId(java.lang.String aInitKey_orcommentId1)

Set the primary key for this object

Parameters:
aInitKey_orcommentId1 - java.lang.String

setLastupdate

public void setLastupdate(java.lang.String aLastupdate1)

This method provides access to the ORCOMMENT.LASTUPDATE column of DB2 type TIMESTAMP NULL and Oracle type DATE NULL.

The following is a description of this column:

The time this comment is created.

Parameters:
aLastupdate1 - java.lang.String

setLastupdate

public void setLastupdate(java.sql.Timestamp lastupdate)

This method provides access to the ORCOMMENT.LASTUPDATE column of DB2 type TIMESTAMP NULL and Oracle type DATE NULL.

The following is a description of this column:

The time this comment is created.

Parameters:
lastupdate - java.sql.Timestamp

setOrcommentId

public void setOrcommentId(java.lang.Long orcommentId)

This method provides access to the ORCOMMENT.ORCOMMENT_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.

The following is a description of this column:

Generated unique key.

Parameters:
orcommentId - java.lang.Long

setOrcommentId

public void setOrcommentId(java.lang.String orcommentId)

This method provides access to the ORCOMMENT.ORCOMMENT_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.

The following is a description of this column:

Generated unique key.

Parameters:
orcommentId - java.lang.String

setOrderId

public void setOrderId(java.lang.Long orderId)

This method provides access to the ORCOMMENT.ORDERS_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.

The following is a description of this column:

The ID of the order.

Parameters:
orderId - java.lang.Long

setOrderId

public void setOrderId(java.lang.String orderId)

This method provides access to the ORCOMMENT.ORDERS_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.

The following is a description of this column:

The ID of an Order.

Parameters:
orderId - java.lang.String