com.ibm.commerce.negotiation.objects
Class ForumAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.negotiation.objects.ForumAccessBean
All Implemented Interfaces:
ForumAccessBeanData, java.io.Serializable

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

This bean provides access to the FORUM table.

The following is a description of this table:

This table contains a list of valid forums. Forums are used to exchange messages between administrators and customers.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
ForumAccessBean()
          Zero argument constructor used to initialize the access bean.
ForumAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
ForumAccessBean(java.lang.Long id, java.lang.Long ownerid, java.lang.String name, java.lang.String type)
          Creates an access bean with the specified attributes.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 ForumAccessBean findByOwnerAndName(java.lang.Long ownerId, java.lang.String name)
          Retrieves the forum, owned by the specified owner, with the specified name.
 ForumAccessBean findByOwnerAndSubjectType(java.lang.Long ownerId, java.lang.String type)
          Retrieves the forum, owned by the specified owner, with the specified type.
 java.lang.String getBannerURL()
          This method provides access to the FORUM.BANNERURL column of DB2 type CHAR(254) NULL.
 java.lang.String getCreateTime()
          This method provides access to the FORUM.CREATETIME column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getCreateTimeInEJBType()
          This method provides access to the FORUM.CREATETIME column of DB2 type TIMESTAMP NULL.
 java.lang.String getDescription()
          This method provides access to the FORUM.DESCRIPTION column of DB2 type LONG NULL.
 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 NULL.
 java.lang.Long getMemberGroupIdInEJBType()
          This method provides access to the FORUM.MBRGRP_ID column of DB2 type BIGINT NULL.
 java.lang.String getName()
          This method provides access to the FORUM.NAME column of DB2 type VARCHAR(254) NULL.
 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) NULL.
 java.lang.String getSubjectType()
          This method provides access to the FORUM.SUBJTYPE column of DB2 type CHAR(32) NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setBannerURL(java.lang.String aBannerURL1)
          This method provides access to the FORUM.BANNERURL column of DB2 type CHAR(254) NULL.
 void setCreateTime(java.lang.String aCreateTime1)
          This method provides access to the FORUM.CREATETIME column of DB2 type TIMESTAMP NULL.
 void setCreateTime(java.sql.Timestamp aCreateTime1)
          This method provides access to the FORUM.CREATETIME column of DB2 type TIMESTAMP NULL.
 void setDescription(java.lang.String aDescription1)
          This method provides access to the FORUM.DESCRIPTION column of DB2 type LONG NULL.
 void setId(java.lang.Long aId1)
          This method provides access to the FORUM.FORUM_ID column of DB2 type BIGINT NOT NULL.
 void setId(java.lang.String aId1)
          This method provides access to the FORUM.FORUM_ID column of DB2 type BIGINT NOT NULL.
 void setInitKey_id(java.lang.Long aInitKey_id1)
          Set the primary key for this object
 void setMemberGroupId(java.lang.Long aMemberGroupId1)
          This method provides access to the FORUM.MBRGRP_ID column of DB2 type BIGINT NULL.
 void setMemberGroupId(java.lang.String aMemberGroupId1)
          This method provides access to the FORUM.MBRGRP_ID column of DB2 type BIGINT NULL.
 void setName(java.lang.String aName1)
          This method provides access to the FORUM.NAME column of DB2 type VARCHAR(254) NULL.
 void setOwnerId(java.lang.Long aOwnerId1)
          This method provides access to the FORUM.OWNER_ID column of DB2 type BIGINT NOT NULL.
 void setOwnerId(java.lang.String aOwnerId1)
          This method provides access to the FORUM.OWNER_ID column of DB2 type BIGINT NOT NULL.
 void setStatus(java.lang.String aStatus1)
          This method provides access to the FORUM.STATUS column of DB2 type CHAR(4) NULL.
 void setSubjectType(java.lang.String aSubjectType1)
          This method provides access to the FORUM.SUBJTYPE column of DB2 type CHAR(32) 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

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:


ForumAccessBean

public ForumAccessBean(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.

ForumAccessBean

public ForumAccessBean(java.lang.Long id,
                       java.lang.Long ownerid,
                       java.lang.String name,
                       java.lang.String type)
                throws javax.ejb.CreateException,
                       java.rmi.RemoteException,
                       javax.naming.NamingException

Creates an access bean with the specified attributes.

Parameters:
id - The forum id.
ownerid - The owner of the forum.
name - The name of the forum.
type - The type of subjects to be discussed in the forum.
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

findByOwnerAndName

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

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

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.
name - The name of the forum.
Returns:
The ForumAccessBean representing the row that matches the search criteria.

findByOwnerAndSubjectType

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

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

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.
type - The type of subjects to be discussed in the forum. .
Returns:
The ForumAccessBean representing the row that matches the search criteria.

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) NULL.

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 - 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

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 NULL.

The following is a description of this column:

.The date and time the forum was created.

Specified by:
getCreateTime in interface ForumAccessBeanData
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

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 NULL.

The following is a description of this column:

.The date and time the forum was 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

getDescription

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

This method provides access to the FORUM.DESCRIPTION column of DB2 type LONG NULL.

The following is a description of this column:

A description of the forum.

Specified by:
getDescription in interface ForumAccessBeanData
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

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:
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 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 - 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

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 NULL.

The following is a description of this column:

Member group ID.

Specified by:
getMemberGroupId in interface ForumAccessBeanData
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

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 NULL.

The following is a description of this column:

Member group 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

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) NULL.

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 - 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

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:
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

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 - 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

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) NULL.

The following is a description of this column:

Valid values: A=active, D=deleted.

Specified by:
getStatus in interface ForumAccessBeanData
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

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) NULL.

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 - 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

setBannerURL

public void setBannerURL(java.lang.String aBannerURL1)

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

The following is a description of this column:

The URL used as a banner for the forum.

Specified by:
setBannerURL in interface ForumAccessBeanData
Parameters:
aBannerURL1 - java.lang.String
Returns:
void

setCreateTime

public void setCreateTime(java.lang.String aCreateTime1)

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

The following is a description of this column:

.The date and time the forum was created.

Specified by:
setCreateTime in interface ForumAccessBeanData
Parameters:
aCreateTime1 - java.lang.String
Returns:
void

setCreateTime

public void setCreateTime(java.sql.Timestamp aCreateTime1)

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

The following is a description of this column:

.The date and time the forum was created.

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

setDescription

public void setDescription(java.lang.String aDescription1)

This method provides access to the FORUM.DESCRIPTION column of DB2 type LONG NULL.

The following is a description of this column:

A description of the forum.

Specified by:
setDescription in interface ForumAccessBeanData
Parameters:
aDescription1 - java.lang.String
Returns:
void

setId

public void setId(java.lang.Long aId1)

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.

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

setId

public void setId(java.lang.String aId1)

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:
setId in interface ForumAccessBeanData
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

setMemberGroupId

public void setMemberGroupId(java.lang.Long aMemberGroupId1)

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

The following is a description of this column:

Member group ID.

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

setMemberGroupId

public void setMemberGroupId(java.lang.String aMemberGroupId1)

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

The following is a description of this column:

Member group ID.

Specified by:
setMemberGroupId in interface ForumAccessBeanData
Parameters:
aMemberGroupId1 - java.lang.String
Returns:
void

setName

public void setName(java.lang.String aName1)

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

The following is a description of this column:

Name of the forum.

Specified by:
setName in interface ForumAccessBeanData
Parameters:
aName1 - java.lang.String
Returns:
void

setOwnerId

public void setOwnerId(java.lang.Long aOwnerId1)

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.

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

setOwnerId

public void setOwnerId(java.lang.String aOwnerId1)

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:
setOwnerId in interface ForumAccessBeanData
Parameters:
aOwnerId1 - java.lang.String
Returns:
void

setStatus

public void setStatus(java.lang.String aStatus1)

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

The following is a description of this column:

Valid values: A=active, D=deleted.

Specified by:
setStatus in interface ForumAccessBeanData
Parameters:
aStatus1 - java.lang.String
Returns:
void

setSubjectType

public void setSubjectType(java.lang.String aSubjectType1)

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

The following is a description of this column:

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

Specified by:
setSubjectType in interface ForumAccessBeanData
Parameters:
aSubjectType1 - java.lang.String
Returns:
void