com.ibm.commerce.inventory.objects
Class BaseItemDescriptionAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.inventory.objects.BaseItemDescriptionAccessBean
All Implemented Interfaces:
BaseItemDescriptionAccessBeanData

public class BaseItemDescriptionAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements BaseItemDescriptionAccessBeanData

Each row of this table contains language-dependent information for a BaseItem. This access bean corresponds to the database table 'BASEITMDSC'.

See Also:
Serialized Form

Constructor Summary
BaseItemDescriptionAccessBean()
Zero argument constructor used to initialize the access bean.
BaseItemDescriptionAccessBean(javax.ejb.EJBObject o)
constructor
BaseItemDescriptionAccessBean(java.lang.Long newBaseItemId, java.lang.Integer newLanguageId)
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 findByStoreentIdAndLanguageIdSortedByShortDescription(java.lang.Integer storeentId, java.lang.Integer languageId) Retrieves all the base item descriptions with the specified LANGUAGE_ID and STOREENT_ID The SQL query used to fetch the requested row from the BASEITMDSC table is:
SELECT * FROM BASEITMDSC T1 WHERE STOREITEM.BASEITEM_ID = T1.BASEITEM_ID AND STOREITEM.STOREENT_ID = ? AND T1.LANGUAGE_ID = ? AND STOREITEM.TRACKINVENTORY = 'Y' ORDER BY T1.SHORTDESCRIPTION
java.lang.String getBaseItemId()
This method provides access to the BASEITMDSC.BASEITEM_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getBaseItemIdInEJBType()
This method provides access to the BASEITMDSC.BASEITEM_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getLanguageId()
This method provides access to the BASEITMDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getLanguageIdInEJBType()
This method provides access to the BASEITMDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getLastUpdate()
This method provides access to the BASEITMDSC.LASTUPDATE column of DB2 type TIMESTAMP.
java.sql.Timestamp getLastUpdateInEJBType()
This method provides access to the BASEITMDSC.LASTUPDATE column of DB2 type TIMESTAMP.
java.lang.String getLongDescription()
This method accesses a non-CMP field
java.lang.String getShortdescription()
This method provides access to the BASEITMDSC.SHORTDESCRIPTION column of DB2 type VARCHAR(254).
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setBaseItemId(java.lang.Long newValue)
This method accesses a non-CMP field
void setBaseItemId(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_baseItemId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_languageId(java.lang.String 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 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 setLongDescription(java.lang.String newValue)
This method accesses a non-CMP field
void setShortdescription(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

BaseItemDescriptionAccessBean

public BaseItemDescriptionAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.inventory.objects.BaseItemDescription com.ibm.commerce.inventory.objimpl.BaseItemDescriptionHomeBase.findByPrimaryKey(com.ibm.commerce.inventory.objects.BaseItemDescriptionKey) 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_baseItemId( java.lang.Long ) setInitKey_languageId( java.lang.Integer )

BaseItemDescriptionAccessBean

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

BaseItemDescriptionAccessBean

public BaseItemDescriptionAccessBean(java.lang.Long newBaseItemId,
                                     java.lang.Integer newLanguageId)
                              throws javax.naming.NamingException,
                                     javax.ejb.CreateException,
                                     java.rmi.RemoteException,
                                     javax.ejb.FinderException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
newBaseItemId - - java.lang.Long
newLanguageId - - java.lang.Integer
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
Method Detail

findByStoreentIdAndLanguageIdSortedByShortDescription

public java.util.Enumeration findByStoreentIdAndLanguageIdSortedByShortDescription(java.lang.Integer storeentId,
                                                                                   java.lang.Integer languageId)
                                                                            throws java.rmi.RemoteException,
                                                                                   javax.ejb.FinderException,
                                                                                   javax.naming.NamingException

Retrieves all the base item descriptions with the specified LANGUAGE_ID and STOREENT_ID
The SQL query used to fetch the requested row from the
BASEITMDSC table is:
SELECT * FROM BASEITMDSC T1 WHERE STOREITEM.BASEITEM_ID = T1.BASEITEM_ID AND STOREITEM.STOREENT_ID = ? AND T1.LANGUAGE_ID = ? AND STOREITEM.TRACKINVENTORY = 'Y' ORDER BY T1.SHORTDESCRIPTION

Parameters:
storeentId - - java.lang.Integer
languageId - - java.lang.Integer
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_baseItemId

public void setInitKey_baseItemId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_languageId

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

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 BASEITMDSC.LASTUPDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

The last time this information was updated.

Specified by:
getLastUpdate in interface BaseItemDescriptionAccessBeanData
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 BASEITMDSC.LASTUPDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

The last time this information was updated.

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
Specified by:
setLastUpdate in interface BaseItemDescriptionAccessBeanData

setLastUpdate

public void setLastUpdate(java.sql.Timestamp 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 BASEITMDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The Language for this information. For a list of language components, see the LANGUAGE table.

Specified by:
getLanguageId in interface BaseItemDescriptionAccessBeanData
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 BASEITMDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The Language for this information. 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 BaseItemDescriptionAccessBeanData

setLanguageId

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

getBaseItemId

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

This method provides access to the BASEITMDSC.BASEITEM_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The BaseItem.

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

getBaseItemIdInEJBType

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

This method provides access to the BASEITMDSC.BASEITEM_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The BaseItem.

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

setBaseItemId

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

setBaseItemId

public void setBaseItemId(java.lang.Long 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 accesses a non-CMP field
Specified by:
getLongDescription in interface BaseItemDescriptionAccessBeanData
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 BaseItemDescriptionAccessBeanData

getShortdescription

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

This method provides access to the BASEITMDSC.SHORTDESCRIPTION column of DB2 type VARCHAR(254).

The following is a description of this column:

A brief description of the BaseItem.

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

setShortdescription

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

Feedback