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.

See Also:
Serialized Form

Constructor Summary
ItemSpecificationAccessBean()
          constructor
ItemSpecificationAccessBean(javax.ejb.EJBObject o)
          constructor
ItemSpecificationAccessBean(java.lang.Long arg0, java.lang.Long arg1, java.lang.String arg2)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
 java.util.Enumeration findByBaseItemId(java.lang.Long arg0)           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 arg0, java.lang.String arg1)           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 provides access to the ITEMSPC.BASEITEM_ID column of DB2 type BIGINT NOT NULL.
 void setBaseItemId(java.lang.String newValue)
          This method provides access to the ITEMSPC.BASEITEM_ID column of DB2 type BIGINT NOT NULL.
 void setDiscontinued(java.lang.String newValue)
          This method provides access to the ITEMSPC.DISCONTINUED column of DB2 type CHAR(1) NOT NULL DEFAULT 'N'.
 void setInitKey_itemspcId(java.lang.String newValue)
          Set the primary key for this object
 void setItemspcId(java.lang.Long newValue)
          This method provides access to the ITEMSPC.ITEMSPC_ID column of DB2 type BIGINT NOT NULL.
 void setItemspcId(java.lang.String newValue)
          This method provides access to the ITEMSPC.ITEMSPC_ID column of DB2 type BIGINT NOT NULL.
 void setLastupdate(java.lang.String newValue)
          This method provides access to the ITEMSPC.LASTUPDATE column of DB2 type TIMESTAMP.
 void setLastupdate(java.sql.Timestamp newValue)
          This method provides access to the ITEMSPC.LASTUPDATE column of DB2 type TIMESTAMP.
 void setMarkForDelete(java.lang.Integer newValue)
          This method provides access to the ITEMSPC.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setMarkForDelete(java.lang.String newValue)
          This method provides access to the ITEMSPC.MARKFORDELETE column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setMemberId(java.lang.Long newValue)
          This method provides access to the ITEMSPC.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setMemberId(java.lang.String newValue)
          This method provides access to the ITEMSPC.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setPartNumber(java.lang.String newValue)
          This method provides access to the ITEMSPC.PARTNUMBER column of DB2 type VARCHAR(64) NOT NULL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemSpecificationAccessBean

public ItemSpecificationAccessBean()
constructor

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 arg0,
                                   java.lang.Long arg1,
                                   java.lang.String arg2)
                            throws javax.naming.NamingException,
                                   javax.ejb.CreateException,
                                   java.rmi.RemoteException,
                                   javax.ejb.FinderException
constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.Long
arg2 - java.lang.String
Throws:
javax.naming.NamingException
javax.ejb.CreateException
java.rmi.RemoteException
javax.ejb.FinderException
Method Detail

findByBaseItemId

public java.util.Enumeration findByBaseItemId(java.lang.Long arg0)
                                       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 = ?

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 arg0,
                                                         java.lang.String arg1)
                                                  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 = ?

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 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:
setDiscontinued in interface ItemSpecificationAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

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 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:
setItemspcId in interface ItemSpecificationAccessBeanData
Parameters:
newValue - String
Returns:
void

setItemspcId

public void setItemspcId(java.lang.Long newValue)

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.

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

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 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:
setLastupdate in interface ItemSpecificationAccessBeanData
Parameters:
newValue - String
Returns:
void

setLastupdate

public void setLastupdate(java.sql.Timestamp newValue)

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.

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

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 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:
setBaseItemId in interface ItemSpecificationAccessBeanData
Parameters:
newValue - String
Returns:
void

setBaseItemId

public void setBaseItemId(java.lang.Long newValue)

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.

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

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 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:
setMarkForDelete in interface ItemSpecificationAccessBeanData
Parameters:
newValue - String
Returns:
void

setMarkForDelete

public void setMarkForDelete(java.lang.Integer newValue)

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

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

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 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:
setPartNumber in interface ItemSpecificationAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

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 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:
setMemberId in interface ItemSpecificationAccessBeanData
Parameters:
newValue - String
Returns:
void

setMemberId

public void setMemberId(java.lang.Long newValue)

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.

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

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