com.ibm.commerce.inventory.objects
Class BaseItemDescriptionAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.inventory.objects.BaseItemDescriptionAccessBean
All Implemented Interfaces:
BaseItemDescriptionAccessBeanData, java.io.Serializable

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

This bean provides access to the BASEITMDSC table.

The following is a description of this table:

Each row of this table contains language-dependent information for a BaseItem.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
BaseItemDescriptionAccessBean()
          Default constructor.
BaseItemDescriptionAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
BaseItemDescriptionAccessBean(java.lang.Long BaseItemId, java.lang.Integer LanguageId)
          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).
 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 NULL.
 java.sql.Timestamp getLastUpdateInEJBType()
          This method provides access to the BASEITMDSC.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 java.lang.String getLongDescription()
          This method provides access to the BASEITMDSC.LONGDESCRIPTION column of DB2 type LONG NULL.
 java.lang.String getShortdescription()
          This method provides access to the BASEITMDSC.SHORTDESCRIPTION column of DB2 type VARCHAR(254) NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setBaseItemId(java.lang.Long aBaseItemId)
          This method provides access to the BASEITMDSC.BASEITEM_ID column of DB2 type BIGINT NOT NULL.
 void setBaseItemId(java.lang.String aBaseItemId)
          This method provides access to the BASEITMDSC.BASEITEM_ID column of DB2 type BIGINT NOT NULL.
 void setInitKey_baseItemId(java.lang.String aInitKey_baseItemId)
          Set the primary key for this object
 void setInitKey_languageId(java.lang.String aInitKey_languageId)
          Set the primary key for this object
 void setLanguageId(java.lang.Integer aLanguageId)
          This method provides access to the BASEITMDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 void setLanguageId(java.lang.String aLanguageId)
          This method provides access to the BASEITMDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 void setLastUpdate(java.lang.String aLastUpdate)
          This method provides access to the BASEITMDSC.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 void setLastUpdate(java.sql.Timestamp aLastUpdate)
          This method provides access to the BASEITMDSC.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 void setLongDescription(java.lang.String aLongDescription)
          This method provides access to the BASEITMDSC.LONGDESCRIPTION column of DB2 type LONG NULL.
 void setShortdescription(java.lang.String aShortdescription)
          This method provides access to the BASEITMDSC.SHORTDESCRIPTION column of DB2 type VARCHAR(254) 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

BaseItemDescriptionAccessBean

public BaseItemDescriptionAccessBean()

Default constructor. Maps to findByPrimaryKey.


BaseItemDescriptionAccessBean

public BaseItemDescriptionAccessBean(javax.ejb.EJBObject object)
                              throws java.rmi.RemoteException

Creates an access bean for the specified EJB

Parameters:
object - - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

BaseItemDescriptionAccessBean

public BaseItemDescriptionAccessBean(java.lang.Long BaseItemId,
                                     java.lang.Integer LanguageId)
                              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:
BaseItemId - - java.lang.Long
LanguageId - - 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

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

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 - The javax.naming.NamingException exception

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

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

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

The following is a description of this column:

The last time this information was updated.

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

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

The following is a description of this column:

The last time this information was updated.

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

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 BASEITMDSC.LONGDESCRIPTION column of DB2 type LONG NULL.

The following is a description of this column:

A detailed description of the BaseItem.

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

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

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

setBaseItemId

public void setBaseItemId(java.lang.Long aBaseItemId)

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.

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

setBaseItemId

public void setBaseItemId(java.lang.String aBaseItemId)

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:
setBaseItemId in interface BaseItemDescriptionAccessBeanData
Parameters:
aBaseItemId - java.lang.String
Returns:
void

setInitKey_baseItemId

public void setInitKey_baseItemId(java.lang.String aInitKey_baseItemId)

Set the primary key for this object

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

setInitKey_languageId

public void setInitKey_languageId(java.lang.String aInitKey_languageId)

Set the primary key for this object

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

setLanguageId

public void setLanguageId(java.lang.Integer aLanguageId)

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.

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

setLanguageId

public void setLanguageId(java.lang.String aLanguageId)

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:
setLanguageId in interface BaseItemDescriptionAccessBeanData
Parameters:
aLanguageId - java.lang.String
Returns:
void

setLastUpdate

public void setLastUpdate(java.lang.String aLastUpdate)

This method provides access to the BASEITMDSC.LASTUPDATE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The last time this information was updated.

Specified by:
setLastUpdate in interface BaseItemDescriptionAccessBeanData
Parameters:
aLastUpdate - java.lang.String
Returns:
void

setLastUpdate

public void setLastUpdate(java.sql.Timestamp aLastUpdate)

This method provides access to the BASEITMDSC.LASTUPDATE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The last time this information was updated.

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

setLongDescription

public void setLongDescription(java.lang.String aLongDescription)

This method provides access to the BASEITMDSC.LONGDESCRIPTION column of DB2 type LONG NULL.

The following is a description of this column:

A detailed description of the BaseItem.

Specified by:
setLongDescription in interface BaseItemDescriptionAccessBeanData
Parameters:
aLongDescription - java.lang.String
Returns:
void

setShortdescription

public void setShortdescription(java.lang.String aShortdescription)

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

The following is a description of this column:

A brief description of the BaseItem.

Specified by:
setShortdescription in interface BaseItemDescriptionAccessBeanData
Parameters:
aShortdescription - java.lang.String
Returns:
void