com.ibm.commerce.negotiation.objects
Class AuctionDescriptionAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.negotiation.objects.AuctionDescriptionAccessBean
All Implemented Interfaces:
AuctionDescriptionAccessBeanData
Direct Known Subclasses:
AuctionDescriptionDataBean

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

This table stores locale sensitive information for an auction. The table is updated when an auction is created or changed. This access bean corresponds to the database table 'AUCTDESC'.

See Also:
Serialized Form

Constructor Summary
AuctionDescriptionAccessBean()
Zero argument constructor used to initialize the access bean.
AuctionDescriptionAccessBean(javax.ejb.EJBObject o)
constructor
AuctionDescriptionAccessBean(java.lang.Long auctionid, java.lang.Integer languageid)
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()
java.util.Enumeration findDescriptionsByAuctionId(java.lang.Long auctid, 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).
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).
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setAuctionId(java.lang.Long newValue)
This method accesses a non-CMP field
void setAuctionId(java.lang.String newValue)
This method accesses a non-CMP field
void setDescription(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_auctionId(java.lang.Long newValue)
Set the primary key for this object
void setInitKey_languageId(java.lang.Integer newValue)
Set the primary key for this object
void setLanguageId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setLanguageId(java.lang.String newValue)
This method accesses a non-CMP field
void setLongDescription(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

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: setInitKey_auctionId( java.lang.Long ) setInitKey_languageId( java.lang.Integer )

AuctionDescriptionAccessBean

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

AuctionDescriptionAccessBean

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

Creates an access bean with the specified attributes.

Parameters:
auctionid - The auction id.
languageid - The language id.
Method Detail

findDescriptionsByAuctionId

public java.util.Enumeration findDescriptionsByAuctionId(java.lang.Long auctid,
                                                         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:
auctid - 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.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

setInitKey_auctionId

public void setInitKey_auctionId(java.lang.Long newValue)

Set the primary key for this object

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

setInitKey_languageId

public void setInitKey_languageId(java.lang.Integer newValue)

Set the primary key for this object

Parameters:
newValue - java.lang.Integer
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 provides access to the AUCTDESC.AUSDESC column of DB2 type VARCHAR(254).

The following is a description of this column:

Short description of the auction. This value is updated when an auction is created or modified.

Specified by:
getDescription in interface AuctionDescriptionAccessBeanData
Returns:
java.lang.String
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 AuctionDescriptionAccessBeanData

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setAuctionId

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

setAuctionId

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

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setLanguageId

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

setLanguageId

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

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

The following is a description of this column:

A detailed or long description of the auction.

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

setLongDescription

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

Feedback