com.ibm.commerce.inventory.objects
Class VendorDescriptionAccessBean

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

public class VendorDescriptionAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements VendorDescriptionAccessBeanData

Language-specific information about Vendors. This access bean corresponds to the database table 'VENDORDESC'.

See Also:
Serialized Form

Constructor Summary
VendorDescriptionAccessBean()
Zero argument constructor used to initialize the access bean.
VendorDescriptionAccessBean(javax.ejb.EJBObject o)
constructor
VendorDescriptionAccessBean(java.lang.Long newVendorId, java.lang.Integer newLanguageId, java.lang.Integer newStAddressId)
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 findByStoreentIdAndLanguageIdSortedByVendorName(java.lang.Long storeentId, java.lang.Integer languageId) Retrieves language specific information about a vendor with the specified STOREENT_ID and LANGUAGE_ID The SQL query used to fetch the requested row from the VENDORDESC and VENDORtables is:
SELECT * FROM VENDORDESC T1,VENDOR WHERE VENDOR.VENDOR_ID = T1.VENDOR_ID AND VENDOR.STOREENT_ID = ? AND T1.LANGUAGE_ID = ? ORDER BY T1.VENDORNAME
java.util.Enumeration findByVendorId(java.lang.Long vendorId) Retrieves language specific information about a vendor with the specified VENDOR_ID The SQL query used to fetch the requested row from the VENDORDESC table is:
SELECT * FROM VENDORDESC T1 WHERE T1.VENDOR_ID = ?
java.lang.String getDescription()
This method provides access to the VENDORDESC.DESCRIPTION column of DB2 type VARCHAR(254).
java.lang.String getLanguageId()
This method provides access to the VENDORDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getLanguageIdInEJBType()
This method provides access to the VENDORDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getLastupdate()
This method provides access to the VENDORDESC.LASTUPDATE column of DB2 type TIMESTAMP.
java.sql.Timestamp getLastupdateInEJBType()
This method provides access to the VENDORDESC.LASTUPDATE column of DB2 type TIMESTAMP.
java.lang.String getStAddressId()
This method provides access to the VENDORDESC.STADDRESS_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getStAddressIdInEJBType()
This method provides access to the VENDORDESC.STADDRESS_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getVendorId()
This method provides access to the VENDORDESC.VENDOR_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getVendorIdInEJBType()
This method provides access to the VENDORDESC.VENDOR_ID column of DB2 type BIGINT NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setDescription(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_languageId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_vendorId(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 setStAddressId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setStAddressId(java.lang.String newValue)
This method accesses a non-CMP field
void setVendorId(java.lang.Long newValue)
This method accesses a non-CMP field
void setVendorId(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

VendorDescriptionAccessBean

public VendorDescriptionAccessBean()
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.VendorDescription com.ibm.commerce.inventory.objimpl.VendorDescriptionHomeBase.findByPrimaryKey(com.ibm.commerce.inventory.objects.VendorDescriptionKey) 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_vendorId( java.lang.Long ) setInitKey_languageId( java.lang.Integer )

VendorDescriptionAccessBean

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

VendorDescriptionAccessBean

public VendorDescriptionAccessBean(java.lang.Long newVendorId,
                                   java.lang.Integer newLanguageId,
                                   java.lang.Integer newStAddressId)
                            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:
newVendorId - - java.lang.Long
newLanguageId - - java.lang.Integer
newStAddressId - - 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

findByStoreentIdAndLanguageIdSortedByVendorName

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

Retrieves language specific information about a vendor with the specified STOREENT_ID and LANGUAGE_ID
The SQL query used to fetch the requested row from the
VENDORDESC and VENDORtables is:
SELECT * FROM VENDORDESC T1,VENDOR WHERE VENDOR.VENDOR_ID = T1.VENDOR_ID AND VENDOR.STOREENT_ID = ? AND T1.LANGUAGE_ID = ? ORDER BY T1.VENDORNAME

Parameters:
storeentId - - java.lang.Long
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

findByVendorId

public java.util.Enumeration findByVendorId(java.lang.Long vendorId)
                                     throws java.rmi.RemoteException,
                                            javax.ejb.FinderException,
                                            javax.naming.NamingException

Retrieves language specific information about a vendor with the specified VENDOR_ID
The SQL query used to fetch the requested row from the
VENDORDESC table is:
SELECT * FROM VENDORDESC T1 WHERE T1.VENDOR_ID = ?

Parameters:
vendorId - - java.lang.Long
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_vendorId

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

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 VENDORDESC.DESCRIPTION column of DB2 type VARCHAR(254).

The following is a description of this column:

Language specific descriptive information about the Vendor.

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

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 VENDORDESC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Language ID for this description. For a list of language components, see the LANGUAGE table.

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

The following is a description of this column:

Language ID for this description. 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 VendorDescriptionAccessBeanData

setLanguageId

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

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

The following is a description of this column:

Timestamp of last update.

Specified by:
getLastupdate in interface VendorDescriptionAccessBeanData
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 VENDORDESC.LASTUPDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

Timestamp of last update.

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 VendorDescriptionAccessBeanData

setLastupdate

public void setLastupdate(java.sql.Timestamp newValue)
This method accesses a non-CMP field

getVendorId

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

This method provides access to the VENDORDESC.VENDOR_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Unique identifier for the Vendor.

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

getVendorIdInEJBType

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

This method provides access to the VENDORDESC.VENDOR_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Unique identifier for the Vendor.

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

setVendorId

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

setVendorId

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

getStAddressId

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

This method provides access to the VENDORDESC.STADDRESS_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Refers to address information for this Vendor in the STADDRESS table.

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

getStAddressIdInEJBType

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

This method provides access to the VENDORDESC.STADDRESS_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Refers to address information for this Vendor in the STADDRESS table.

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

setStAddressId

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

setStAddressId

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

Feedback