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

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.tools.optools.order.objects.OrderCommentAccessBean

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

No External description assigned yet This access bean corresponds to the database table 'ORCOMMENT'.

See Also:
Serialized Form

Constructor Summary
OrderCommentAccessBean()
Zero argument constructor used to initialize the access bean.
OrderCommentAccessBean(javax.ejb.EJBObject o)
constructor
OrderCommentAccessBean(java.lang.Long arg1, java.lang.String arg2)
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).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByOrder(java.lang.Long argOrderId)
Retrieves all the OrderCommentAccessBeans for the specified Order.
java.lang.String getComment()
This method provides access to the ORCOMMENT.COMMENTS column of DB2 type VARCHAR(1024).
java.lang.String getLastupdate()
This method provides access to the ORCOMMENT.LASTUPDATE column of DB2 type TIMESTAMP.
java.sql.Timestamp getLastupdateInEJBType()
This method provides access to the ORCOMMENT.LASTUPDATE column of DB2 type TIMESTAMP.
java.lang.String getOrcommentId()
This method provides access to the ORCOMMENT.ORCOMMENT_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getOrcommentIdInEJBType()
This method provides access to the ORCOMMENT.ORCOMMENT_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getOrderId()
This method provides access to the ORCOMMENT.ORDERS_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getOrderIdInEJBType()
This method provides access to the ORCOMMENT.ORDERS_ID column of DB2 type BIGINT NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setComment(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_orcommentId(java.lang.String newValue)
Set the primary key for this object
void setLastupdate(java.lang.String newValue)
This method accesses a non-CMP field
void setLastupdate(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setOrcommentId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOrcommentId(java.lang.String newValue)
This method accesses a non-CMP field
void setOrderId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOrderId(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

OrderCommentAccessBean

public OrderCommentAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.tools.optools.order.objects.OrderComment com.ibm.commerce.tools.optools.order.objects.OrderCommentHome.findByPrimaryKey(com.ibm.commerce.tools.optools.order.objects.OrderCommentKey) 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_orcommentId( java.lang.Long )

OrderCommentAccessBean

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

OrderCommentAccessBean

public OrderCommentAccessBean(java.lang.Long arg1,
                              java.lang.String arg2)
                       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:
arg1 - The ID of the order.
arg2 - The content of the arg2.
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

findByOrder

public java.util.Enumeration findByOrder(java.lang.Long argOrderId)
                                  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:
argOrderId - 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

setInitKey_orcommentId

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

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.COMMENTS column of DB2 type VARCHAR(1024).

The following is a description of this column:

The content of the comment.

Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setComment

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

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.

The following is a description of this column:

The time this comment is created.

Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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.

The following is a description of this column:

The time this comment is created.

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

setLastupdate

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

setLastupdate

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

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.

The following is a description of this column:

The Order.

Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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.

The following is a description of this column:

The Order.

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

setOrderId

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

setOrderId

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

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.

The following is a description of this column:

Generated unique key.

Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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.

The following is a description of this column:

Generated unique key.

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

setOrcommentId

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

setOrcommentId

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

Feedback