com.ibm.commerce.negotiation.objects
Class AuctionDescriptionAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.negotiation.objects.AuctionDescriptionAccessBean
All Implemented Interfaces:
AuctionDescriptionAccessBeanData, java.io.Serializable
Direct Known Subclasses:
AuctionDescriptionDataBean

public class AuctionDescriptionAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements AuctionDescriptionAccessBeanData

This bean provides access to the AUCTDESC table.

The following is a description of this table:

This table stores locale sensitive information for an auction. The table is updated when an auction is created or changed.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
AuctionDescriptionAccessBean()
          Zero argument constructor used to initialize the access bean.
AuctionDescriptionAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
AuctionDescriptionAccessBean(java.lang.Long auctId, java.lang.Integer langId)
          Creates an access bean with the specified attributes.
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findDescriptionsByAuctionId(java.lang.Long auctionId, com.ibm.commerce.negotiation.util.SortingAttribute sort)
          Retrieves all auction descriptions for the specified auction.
 java.lang.String getAuctionId()
          This method provides access to the AUCTDESC.AUCT_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getAuctionIdInEJBType()
          This method provides access to the AUCTDESC.AUCT_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getDescription()
          This method provides access to the AUCTDESC.AUSDESC column of DB2 type VARCHAR(254) NULL.
 java.lang.String getLanguageId()
          This method provides access to the AUCTDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getLanguageIdInEJBType()
          This method provides access to the AUCTDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getLongDescription()
          This method provides access to the AUCTDESC.AULDESC column of DB2 type VARCHAR(2048) NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setAuctionId(java.lang.Long aAuctionId1)
          This method provides access to the AUCTDESC.AUCT_ID column of DB2 type BIGINT NOT NULL.
 void setAuctionId(java.lang.String aAuctionId1)
          This method provides access to the AUCTDESC.AUCT_ID column of DB2 type BIGINT NOT NULL.
 void setDescription(java.lang.String aDescription1)
          This method provides access to the AUCTDESC.AUSDESC column of DB2 type VARCHAR(254) NULL.
 void setInitKey_auctionId(java.lang.Long aInitKey_auctionId1)
          Set the primary key for this object
 void setInitKey_languageId(java.lang.Integer aInitKey_languageId1)
          Set the primary key for this object
 void setLanguageId(java.lang.Integer aLanguageId1)
          This method provides access to the AUCTDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 void setLanguageId(java.lang.String aLanguageId1)
          This method provides access to the AUCTDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 void setLongDescription(java.lang.String aLongDescription1)
          This method provides access to the AUCTDESC.AULDESC column of DB2 type VARCHAR(2048) 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

AuctionDescriptionAccessBean

public AuctionDescriptionAccessBean()

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.AuctionDescription com.ibm.commerce.negotiation.objimpl.AuctionDescriptionHomeBase.findByPrimaryKey(com.ibm.commerce.negotiation.objects.AuctionDescriptionKey) 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:


AuctionDescriptionAccessBean

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

AuctionDescriptionAccessBean

public AuctionDescriptionAccessBean(java.lang.Long auctId,
                                    java.lang.Integer langId)
                             throws javax.ejb.CreateException,
                                    java.rmi.RemoteException,
                                    javax.naming.NamingException

Creates an access bean with the specified attributes.

Parameters:
auctId - The auction id.
langId - The language id.
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

findDescriptionsByAuctionId

public java.util.Enumeration findDescriptionsByAuctionId(java.lang.Long auctionId,
                                                         com.ibm.commerce.negotiation.util.SortingAttribute sort)
                                                  throws java.rmi.RemoteException,
                                                         javax.ejb.FinderException,
                                                         javax.naming.NamingException

Retrieves all auction descriptions for the specified auction.

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

SELECT * FROM AUCTDESC T1 WHERE T1.AUCT_ID=?

Parameters:
auctionId - The auction id.
sort - The sorting attribute. This is a set of column names and the order in which they are each to be sorted (ascending, descending). This is used to build an ORDER BY clause.
Returns:
An Enumeration of all the AuctionDescriptionAccessBeans representing rows that match the search criteria.

getAuctionId

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

This method provides access to the AUCTDESC.AUCT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Auction ID.

Specified by:
getAuctionId in interface AuctionDescriptionAccessBeanData
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

getAuctionIdInEJBType

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

This method provides access to the AUCTDESC.AUCT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

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

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 AUCTDESC.AUSDESC column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Short description that gets updated when an auction is created or modified.

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

getLanguageId

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

This method provides access to the AUCTDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The Language ID. For a list of language components, see the LANGUAGE table.

Specified by:
getLanguageId in interface AuctionDescriptionAccessBeanData
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

getLanguageIdInEJBType

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

This method provides access to the AUCTDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The Language ID. For a list of language components, see the LANGUAGE table.

Returns:
java.lang.Integer
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

getLongDescription

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

This method provides access to the AUCTDESC.AULDESC column of DB2 type VARCHAR(2048) NULL.

The following is a description of this column:

The long description.

Specified by:
getLongDescription in interface AuctionDescriptionAccessBeanData
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

setAuctionId

public void setAuctionId(java.lang.Long aAuctionId1)

This method provides access to the AUCTDESC.AUCT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Auction ID.

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

setAuctionId

public void setAuctionId(java.lang.String aAuctionId1)

This method provides access to the AUCTDESC.AUCT_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The Auction ID.

Specified by:
setAuctionId in interface AuctionDescriptionAccessBeanData
Parameters:
aAuctionId1 - java.lang.String
Returns:
void

setDescription

public void setDescription(java.lang.String aDescription1)

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

The following is a description of this column:

Short description that gets updated when an auction is created or modified.

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

setInitKey_auctionId

public void setInitKey_auctionId(java.lang.Long aInitKey_auctionId1)

Set the primary key for this object

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

setInitKey_languageId

public void setInitKey_languageId(java.lang.Integer aInitKey_languageId1)

Set the primary key for this object

Parameters:
aInitKey_languageId1 - java.lang.Integer
Returns:
void

setLanguageId

public void setLanguageId(java.lang.Integer aLanguageId1)

This method provides access to the AUCTDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The Language ID. For a list of language components, see the LANGUAGE table.

Parameters:
aLanguageId1 - java.lang.Integer
Returns:
void

setLanguageId

public void setLanguageId(java.lang.String aLanguageId1)

This method provides access to the AUCTDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The Language ID. For a list of language components, see the LANGUAGE table.

Specified by:
setLanguageId in interface AuctionDescriptionAccessBeanData
Parameters:
aLanguageId1 - java.lang.String
Returns:
void

setLongDescription

public void setLongDescription(java.lang.String aLongDescription1)

This method provides access to the AUCTDESC.AULDESC column of DB2 type VARCHAR(2048) NULL.

The following is a description of this column:

The long description.

Specified by:
setLongDescription in interface AuctionDescriptionAccessBeanData
Parameters:
aLongDescription1 - java.lang.String
Returns:
void