com.ibm.commerce.negotiation.objects
Class ForumAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.negotiation.objects.ForumAccessBean
All Implemented Interfaces:
ForumAccessBeanData

public class ForumAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements ForumAccessBeanData

This table contains a list of valid forums. Forums are used to exchange messages between administrators and customers. This access bean corresponds to the database table 'FORUM'.

See Also:
Serialized Form

Constructor Summary
ForumAccessBean()
Zero argument constructor used to initialize the access bean.
ForumAccessBean(javax.ejb.EJBObject o)
constructor
ForumAccessBean(java.lang.Long arg1, java.lang.Long arg2, java.lang.String arg3, java.lang.String arg4)
Creates an access bean with the specified attributes.
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
ForumAccessBean findByOwnerAndName(java.lang.Long ownerid, java.lang.String aName)
Retrieves the forum, owned by the specified owner, with the specified aName.
ForumAccessBean findByOwnerAndSubjectType(java.lang.Long ownerid, java.lang.String subjtype)
Retrieves the forum, owned by the specified owner, with the specified subjtype.
java.lang.String getBannerURL()
This method provides access to the FORUM.BANNERURL column of DB2 type CHAR(254).
java.lang.String getCreateTime()
This method provides access to the FORUM.CREATETIME column of DB2 type TIMESTAMP.
java.sql.Timestamp getCreateTimeInEJBType()
This method provides access to the FORUM.CREATETIME column of DB2 type TIMESTAMP.
java.lang.String getDescription()
This method accesses a non-CMP field
java.lang.String getId()
This method provides access to the FORUM.FORUM_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getIdInEJBType()
This method provides access to the FORUM.FORUM_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getMemberGroupId()
This method provides access to the FORUM.MBRGRP_ID column of DB2 type BIGINT.
java.lang.Long getMemberGroupIdInEJBType()
This method provides access to the FORUM.MBRGRP_ID column of DB2 type BIGINT.
java.lang.String getName()
This method provides access to the FORUM.NAME column of DB2 type VARCHAR(254).
java.lang.String getOwnerId()
This method provides access to the FORUM.OWNER_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getOwnerIdInEJBType()
This method provides access to the FORUM.OWNER_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getStatus()
This method provides access to the FORUM.STATUS column of DB2 type CHAR(4).
java.lang.String getSubjectType()
This method provides access to the FORUM.SUBJTYPE column of DB2 type CHAR(32).
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setBannerURL(java.lang.String newValue)
This method accesses a non-CMP field
void setCreateTime(java.lang.String newValue)
This method accesses a non-CMP field
void setCreateTime(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setDescription(java.lang.String newValue)
This method accesses a non-CMP field
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 setMemberGroupId(java.lang.Long newValue)
This method accesses a non-CMP field
void setMemberGroupId(java.lang.String newValue)
This method accesses a non-CMP field
void setName(java.lang.String newValue)
This method accesses a non-CMP field
void setOwnerId(java.lang.Long newValue)
This method accesses a non-CMP field
void setOwnerId(java.lang.String newValue)
This method accesses a non-CMP field
void setStatus(java.lang.String newValue)
This method accesses a non-CMP field
void setSubjectType(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

ForumAccessBean

public ForumAccessBean()
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.Forum com.ibm.commerce.negotiation.objimpl.ForumHomeBase.findByPrimaryKey(com.ibm.commerce.negotiation.objects.ForumKey) 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_id( java.lang.Long )

ForumAccessBean

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

ForumAccessBean

public ForumAccessBean(java.lang.Long arg1,
                       java.lang.Long arg2,
                       java.lang.String arg3,
                       java.lang.String arg4)
                throws javax.ejb.CreateException,
                       java.rmi.RemoteException,
                       javax.naming.NamingException

Creates an access bean with the specified attributes.

Parameters:
arg1 - The forum arg1.
arg3 - The arg3 of the forum.
arg4 - The arg4 of subjects to be discussed in the forum.
Method Detail

findByOwnerAndName

public ForumAccessBean findByOwnerAndName(java.lang.Long ownerid,
                                          java.lang.String aName)
                                   throws java.rmi.RemoteException,
                                          javax.ejb.FinderException,
                                          javax.naming.NamingException

Retrieves the forum, owned by the specified owner, with the specified aName.

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

SELECT * FROM FORUM T1 WHERE T1.OWNER_ID=? AND T1.NAME=?

Parameters:
ownerid - The id of the owner of the forum.
aName - The aName of the forum.
Returns:
The ForumAccessBean representing the row that matches the search criteria.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

findByOwnerAndSubjectType

public ForumAccessBean findByOwnerAndSubjectType(java.lang.Long ownerid,
                                                 java.lang.String subjtype)
                                          throws java.rmi.RemoteException,
                                                 javax.ejb.FinderException,
                                                 javax.naming.NamingException

Retrieves the forum, owned by the specified owner, with the specified subjtype.

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

SELECT * FROM FORUM T1 WHERE T1.OWNER_ID=? AND T1.SUBJTYPE=?

Parameters:
ownerid - The id of the owner of the forum.
subjtype - The subjtype of subjects to be discussed in the forum. .
Returns:
The ForumAccessBean representing the row that matches the search criteria.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

setInitKey_id

public void setInitKey_id(java.lang.Long newValue)

Set the primary key for this object

Parameters:
newValue - java.lang.Long
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

getDescription

public java.lang.String getDescription()
                                throws java.rmi.RemoteException,
                                       javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getDescription in interface ForumAccessBeanData
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setDescription

public void setDescription(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setDescription in interface ForumAccessBeanData

getOwnerId

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

This method provides access to the FORUM.OWNER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Owner of the forum.

Specified by:
getOwnerId in interface ForumAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getOwnerIdInEJBType

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

This method provides access to the FORUM.OWNER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Owner of the forum.

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

setOwnerId

public void setOwnerId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setOwnerId in interface ForumAccessBeanData

setOwnerId

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

getMemberGroupId

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

This method provides access to the FORUM.MBRGRP_ID column of DB2 type BIGINT.

The following is a description of this column:

Member group ID.

Specified by:
getMemberGroupId in interface ForumAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getMemberGroupIdInEJBType

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

This method provides access to the FORUM.MBRGRP_ID column of DB2 type BIGINT.

The following is a description of this column:

Member group ID.

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

setMemberGroupId

public void setMemberGroupId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setMemberGroupId in interface ForumAccessBeanData

setMemberGroupId

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

getCreateTime

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

This method provides access to the FORUM.CREATETIME column of DB2 type TIMESTAMP.

The following is a description of this column:

The date and time the forum was created.

Specified by:
getCreateTime in interface ForumAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getCreateTimeInEJBType

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

This method provides access to the FORUM.CREATETIME column of DB2 type TIMESTAMP.

The following is a description of this column:

The date and time the forum was created.

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

setCreateTime

public void setCreateTime(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setCreateTime in interface ForumAccessBeanData

setCreateTime

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

getStatus

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

This method provides access to the FORUM.STATUS column of DB2 type CHAR(4).

The following is a description of this column:

The status of this forum. Valid values are as follows:&l

Specified by:
getStatus in interface ForumAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setStatus

public void setStatus(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setStatus in interface ForumAccessBeanData

getBannerURL

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

This method provides access to the FORUM.BANNERURL column of DB2 type CHAR(254).

The following is a description of this column:

The URL used as a banner for the forum.

Specified by:
getBannerURL in interface ForumAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setBannerURL

public void setBannerURL(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setBannerURL in interface ForumAccessBeanData

getSubjectType

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

This method provides access to the FORUM.SUBJTYPE column of DB2 type CHAR(32).

The following is a description of this column:

Subject type. Type of subjects to be discussed in the forum.

Specified by:
getSubjectType in interface ForumAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setSubjectType

public void setSubjectType(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setSubjectType in interface ForumAccessBeanData

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 FORUM.FORUM_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Forum ID. Primary key to the table.

Specified by:
getId in interface ForumAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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 FORUM.FORUM_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Forum ID. Primary key to the table.

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

setId

public void setId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setId in interface ForumAccessBeanData

setId

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

getName

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

This method provides access to the FORUM.NAME column of DB2 type VARCHAR(254).

The following is a description of this column:

Name of the forum.

Specified by:
getName in interface ForumAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setName

public void setName(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setName in interface ForumAccessBeanData

Feedback