com.ibm.commerce.inventory.objects
Class ItemSpecificationAccessBean

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

public class ItemSpecificationAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements ItemSpecificationAccessBeanData

Information about specified items. A specified item is a product with values for all its attributes. A specified item could correspond to a 2L bottle of milk, with 2% fat content. A specified item is the customer view of what the merchant sells. This access bean corresponds to the database table 'ITEMSPC'.

See Also:
Serialized Form

Constructor Summary
ItemSpecificationAccessBean()
Zero argument constructor used to initialize the access bean.
ItemSpecificationAccessBean(javax.ejb.EJBObject o)
constructor
ItemSpecificationAccessBean(java.lang.Long newBaseItemId, java.lang.Long newMemberId, java.lang.String newPartNumber)
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 findByBaseItemId(java.lang.Long aBaseItemId) Retrieves information about specified items for the given BASEITEM_ID The SQL query used to fetch the requested row from the ITEMSPC table is:
SELECT * FROM ITEMSPC T1 WHERE T1.BASEITEM_ID = ?
java.util.Enumeration findByMemberIdAndPartNumber(java.lang.Long aMemberId, java.lang.String aPartNumber) Retrieves information about specified items for the given MEMBER_ID and PARTNUMBER The SQL query used to fetch the requested row from the ITEMSPC table is:
SELECT * FROM ITEMSPC T1 WHERE T1.MEMBER_ID = ? AND T1.PARTNUMBER = ?
java.util.Enumeration findByPartNumberAndStore(java.lang.String astrPartNumber, java.lang.Integer anStoreId)
findByPartNumberAndStore
java.lang.String getBaseItemId()
This method provides access to the ITEMSPC.BASEITEM_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getBaseItemIdInEJBType()
This method provides access to the ITEMSPC.BASEITEM_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getDiscontinued()
This method provides access to the ITEMSPC.DISCONTINUED column of DB2 type CHAR(1) NOT NULL DEFAULT 'N'.
java.lang.String getItemspcId()
This method provides access to the ITEMSPC.ITEMSPC_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getItemspcIdInEJBType()
This method provides access to the ITEMSPC.ITEMSPC_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getLastupdate()
This method provides access to the ITEMSPC.LASTUPDATE column of DB2 type TIMESTAMP.
java.sql.Timestamp getLastupdateInEJBType()
This method provides access to the ITEMSPC.LASTUPDATE column of DB2 type TIMESTAMP.
java.lang.String getMarkForDelete()
This method provides access to the ITEMSPC.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.Integer getMarkForDeleteInEJBType()
This method provides access to the ITEMSPC.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
java.lang.String getMemberId()
This method provides access to the ITEMSPC.MEMBER_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getMemberIdInEJBType()
This method provides access to the ITEMSPC.MEMBER_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getPartNumber()
This method provides access to the ITEMSPC.PARTNUMBER column of DB2 type VARCHAR(64) NOT NULL.
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 setDiscontinued(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_itemspcId(java.lang.String newValue)
Set the primary key for this object
void setItemspcId(java.lang.Long newValue)
This method accesses a non-CMP field
void setItemspcId(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 setMarkForDelete(java.lang.Integer newValue)
This method accesses a non-CMP field
void setMarkForDelete(java.lang.String newValue)
This method accesses a non-CMP field
void setMemberId(java.lang.Long newValue)
This method accesses a non-CMP field
void setMemberId(java.lang.String newValue)
This method accesses a non-CMP field
void setPartNumber(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

ItemSpecificationAccessBean

public ItemSpecificationAccessBean()
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.ItemSpecification com.ibm.commerce.inventory.objimpl.ItemSpecificationHomeBase.findByPrimaryKey(com.ibm.commerce.inventory.objects.ItemSpecificationKey) 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_itemspcId( java.lang.Long )

ItemSpecificationAccessBean

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

ItemSpecificationAccessBean

public ItemSpecificationAccessBean(java.lang.Long newBaseItemId,
                                   java.lang.Long newMemberId,
                                   java.lang.String newPartNumber)
                            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
newMemberId - - java.lang.Long
newPartNumber - - java.lang.String
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

findByBaseItemId

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

Retrieves information about specified items for the given BASEITEM_ID
The SQL query used to fetch the requested row from the
ITEMSPC table is:
SELECT * FROM ITEMSPC T1 WHERE T1.BASEITEM_ID = ?

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

findByMemberIdAndPartNumber

public java.util.Enumeration findByMemberIdAndPartNumber(java.lang.Long aMemberId,
                                                         java.lang.String aPartNumber)
                                                  throws java.rmi.RemoteException,
                                                         javax.ejb.FinderException,
                                                         javax.naming.NamingException

Retrieves information about specified items for the given MEMBER_ID and PARTNUMBER
The SQL query used to fetch the requested row from the
ITEMSPC table is:
SELECT * FROM ITEMSPC T1 WHERE T1.MEMBER_ID = ? AND T1.PARTNUMBER = ?

Parameters:
aMemberId - - java.lang.Long
aPartNumber - - java.lang.String
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_itemspcId

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

getDiscontinued

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

This method provides access to the ITEMSPC.DISCONTINUED column of DB2 type CHAR(1) NOT NULL DEFAULT 'N'.

The following is a description of this column:

Y = This item specification has been discontinued. It can be ordered if there is sufficient inventory but it cannot be backordered.&l

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

setDiscontinued

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

getItemspcId

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

This method provides access to the ITEMSPC.ITEMSPC_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

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

getItemspcIdInEJBType

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

This method provides access to the ITEMSPC.ITEMSPC_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

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

setItemspcId

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

setItemspcId

public void setItemspcId(java.lang.Long 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 ITEMSPC.LASTUPDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

Timestamp of last update.

Specified by:
getLastupdate in interface ItemSpecificationAccessBeanData
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 ITEMSPC.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 ItemSpecificationAccessBeanData

setLastupdate

public void setLastupdate(java.sql.Timestamp 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 ITEMSPC.BASEITEM_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The product BaseItem.

Specified by:
getBaseItemId in interface ItemSpecificationAccessBeanData
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 ITEMSPC.BASEITEM_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The product 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 ItemSpecificationAccessBeanData

setBaseItemId

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

getMarkForDelete

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

This method provides access to the ITEMSPC.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates if the specified item is marked for deletion:&l

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

getMarkForDeleteInEJBType

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

This method provides access to the ITEMSPC.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Indicates if the specified item is marked for deletion:&l

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

setMarkForDelete

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

setMarkForDelete

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

getPartNumber

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

This method provides access to the ITEMSPC.PARTNUMBER column of DB2 type VARCHAR(64) NOT NULL.

The following is a description of this column:

Uniquely identifies an item for a particular owner.

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

setPartNumber

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

getMemberId

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

This method provides access to the ITEMSPC.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The owner of this specified item.

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

getMemberIdInEJBType

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

This method provides access to the ITEMSPC.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The owner of this specified item.

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

setMemberId

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

setMemberId

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

findByPartNumberAndStore

public java.util.Enumeration findByPartNumberAndStore(java.lang.String astrPartNumber,
                                                      java.lang.Integer anStoreId)
                                               throws javax.naming.NamingException,
                                                      javax.ejb.FinderException,
                                                      java.rmi.RemoteException
findByPartNumberAndStore
Parameters:
astrPartNumber - java.lang.String
anStoreId - java.lang.Integer
Returns:
java.util.Enumeration
Throws:
javax.naming.NamingException
javax.ejb.FinderException
java.rmi.RemoteException

Feedback