com.ibm.commerce.catalog.objects
Class InterestItemListAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.catalog.objects.InterestItemListAccessBean
All Implemented Interfaces:
InterestItemListAccessBeanData

public class InterestItemListAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements InterestItemListAccessBeanData

Each row in this table represents an InterestItemList. This access bean corresponds to the database table 'IITEMLIST'.

See Also:
Serialized Form

Constructor Summary
InterestItemListAccessBean()
Zero argument constructor used to initialize the access bean.
InterestItemListAccessBean(javax.ejb.EJBObject o)
constructor
InterestItemListAccessBean(java.lang.Long userReferenceNumber, java.lang.String description)
Maps to a corresponding ejbCreate method in the home interface of the EJB This method creates an InterestItemList Access Bean with the specified User reference number, and the Interest Item List Description.
InterestItemListAccessBean(java.lang.Long userReferenceNumber, java.lang.String description, java.lang.Double displaySequenceNumber)
Maps to a corresponding ejbCreate method in the home interface of the EJB This method creates an InterestItemList Access Bean with the specified User reference number, the Interest Item List Description, and the Display Sequence.
Method Summary
InterestItemAccessBean addInterestItem(java.lang.Long arg1, java.lang.Integer arg2)
This method adds an Interest Item to the Interest Item List for the specified store.
void addToCurrentUserList(java.lang.Long arg1)
Makes this list current for the given user.
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
InterestItemListAccessBean findByMaximumDisplaySequenceNumber(java.lang.Long user_id)
This finder method return an InterestItemList Access Bean with highest display sequence number and the specified owner ID.
java.util.Enumeration findCurrentListsForUser(java.lang.Long currentUser)
This finder method return an enumeration of InterestItemList Access Bean with the specified User reference number.
java.util.Enumeration findListsForUser(java.lang.Long ser)
This finder method return an enumeration of InterestItemList Access Bean for the specified user.
InterestItemListAccessBean findNewestListForUser(java.lang.Long currentUser)
This finder method return the latest InterestItemList Access Bean that was last updated by the specified user.
java.util.Enumeration findWithPushDownQuery(java.lang.String query)
This finder method returns an enumeration of InterestItemList Access Bean with specified query.
boolean fulfills(java.lang.Long arg0, java.lang.String arg1)
java.lang.String getDescription()
This method provides access to the IITEMLIST.DESCRIPTION column of DB2 type VARCHAR(254) NOT NULL DEFAULT ''.
java.lang.String getDisplaySequenceNumber()
This method provides access to the IITEMLIST.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.
java.lang.Double getDisplaySequenceNumberInEJBType()
This method provides access to the IITEMLIST.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.
InterestItemAccessBean[] getInterestItems()
The method returns the list of InterestItem Access Bean in the Interest Item List.
java.lang.String getInterestListNumber()
This method provides access to the IITEMLIST.IITEMLIST_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getInterestListNumberInEJBType()
This method provides access to the IITEMLIST.IITEMLIST_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getLastChangeTime()
This method provides access to the IITEMLIST.LASTUPDATE column of DB2 type TIMESTAMP.
java.sql.Timestamp getLastChangeTimeInEJBType()
This method provides access to the IITEMLIST.LASTUPDATE column of DB2 type TIMESTAMP.
java.lang.Long getOwner()
This method accesses a non-CMP field
java.lang.String getUserReferenceNumber()
This method provides access to the IITEMLIST.MEMBER_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getUserReferenceNumberInEJBType()
This method provides access to the IITEMLIST.MEMBER_ID column of DB2 type BIGINT NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void removeFromCurrentUserList(java.lang.Long arg1)
Removes the list from the user's current interest item list.
void removeInterestItem(java.lang.Long arg1)
Removes the interest item for the given catalog entry from this list
void setDescription(java.lang.String newValue)
This method accesses a non-CMP field
void setDisplaySequenceNumber(java.lang.Double newValue)
This method accesses a non-CMP field
void setDisplaySequenceNumber(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_interestListNumber(java.lang.String newValue)
Set the primary key for this object
void setInterestListNumber(java.lang.Long newValue)
This method accesses a non-CMP field
void setInterestListNumber(java.lang.String newValue)
This method accesses a non-CMP field
void setLastChangeTime(java.lang.String newValue)
This method accesses a non-CMP field
void setLastChangeTime(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setUserReferenceNumber(java.lang.Long newValue)
This method accesses a non-CMP field
void setUserReferenceNumber(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

InterestItemListAccessBean

public InterestItemListAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.catalog.objects.InterestItemList com.ibm.commerce.catalog.objimpl.InterestItemListHomeBase.findByPrimaryKey(com.ibm.commerce.catalog.objects.InterestItemListKey) 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_interestListNumber( java.lang.Long )

InterestItemListAccessBean

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

InterestItemListAccessBean

public InterestItemListAccessBean(java.lang.Long userReferenceNumber,
                                  java.lang.String description)
                           throws javax.naming.NamingException,
                                  javax.ejb.CreateException,
                                  javax.ejb.FinderException,
                                  java.rmi.RemoteException

Maps to a corresponding ejbCreate method in the home interface of the EJB This method creates an InterestItemList Access Bean with the specified User reference number, and the Interest Item List Description.

Parameters:
userReferenceNumber - The Owner of the Interest Item List java.lang.Long
description - The Description for the Interest Item List java.lang.String
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

InterestItemListAccessBean

public InterestItemListAccessBean(java.lang.Long userReferenceNumber,
                                  java.lang.String description,
                                  java.lang.Double displaySequenceNumber)
                           throws javax.naming.NamingException,
                                  javax.ejb.CreateException,
                                  javax.ejb.FinderException,
                                  java.rmi.RemoteException

Maps to a corresponding ejbCreate method in the home interface of the EJB This method creates an InterestItemList Access Bean with the specified User reference number, the Interest Item List Description, and the Display Sequence.

Parameters:
userReferenceNumber - The Owner of the Interest Item List java.lang.Long
description - The Description for the Interest Item List java.lang.String
displaySequenceNumber - The display sequence for the Interest Item List java.lang.Double
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
Method Detail

findByMaximumDisplaySequenceNumber

public InterestItemListAccessBean findByMaximumDisplaySequenceNumber(java.lang.Long user_id)
                                                              throws java.rmi.RemoteException,
                                                                     javax.ejb.FinderException,
                                                                     javax.naming.NamingException

This finder method return an InterestItemList Access Bean with highest display sequence number and the specified owner ID.

SQL:
SELECT * FROM IITEMLIST WHERE IITEM.MEMBER_ID = user_id ORDER BY T1.SEQUENCE DESC

Parameters:
user_id - java.lang.Long
Returns:
com.ibm.commerce.catalog.objects.InterestItemListAccessBean
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

findNewestListForUser

public InterestItemListAccessBean findNewestListForUser(java.lang.Long currentUser)
                                                 throws java.rmi.RemoteException,
                                                        javax.ejb.FinderException,
                                                        javax.naming.NamingException

This finder method return the latest InterestItemList Access Bean that was last updated by the specified user.

SQL:
SELECT * FROM IITEMLIST WHERE IITEMLIST.MEMBER_ID = anMemberId ORDER BY IITEMLIST.LASTUPDATE DESC

Returns:
com.ibm.commerce.catalog.objects.InterestItemListAccessBean
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

findCurrentListsForUser

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

This finder method return an enumeration of InterestItemList Access Bean with the specified User reference number.

SQL:
SELECT * FROM IITEMLIST WHERE IITEMLIST.MEMBER_ID = currentUser

Parameters:
currentUser - The owner of the Interest Item List 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 - The javax.naming.NamingException exception

findListsForUser

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

This finder method return an enumeration of InterestItemList Access Bean for the specified user.

SQL:
SELECT * FROM IITEMLIST WHERE IITEMLIST.MEMBER_ID =ser

Parameters:
ser - The owner ID for the Interest Item List 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 - The javax.naming.NamingException exception

findWithPushDownQuery

public java.util.Enumeration findWithPushDownQuery(java.lang.String query)
                                            throws java.rmi.RemoteException,
                                                   javax.ejb.FinderException,
                                                   javax.naming.NamingException

This finder method returns an enumeration of InterestItemList Access Bean with specified query. The push down query act as the where clause to search in the IITEMLIST table.

An example of the pus down query: "MEMBER_ID=1234 AND IITEMLIST_ID =5678"
Parameters:
query - The push down query 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 - The javax.naming.NamingException exception

setInitKey_interestListNumber

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

getDisplaySequenceNumber

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

This method provides access to the IITEMLIST.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.

The following is a description of this column:

May be used by a user interface to control the sequence of IItemLists in a list.

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

getDisplaySequenceNumberInEJBType

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

This method provides access to the IITEMLIST.SEQUENCE column of DB2 type FLOAT NOT NULL DEFAULT 0.

The following is a description of this column:

May be used by a user interface to control the sequence of IItemLists in a list.

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

setDisplaySequenceNumber

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

setDisplaySequenceNumber

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

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 IITEMLIST.DESCRIPTION column of DB2 type VARCHAR(254) NOT NULL DEFAULT ''.

The following is a description of this column:

A mnemonic description of the IItemList, entered by the customer and suitable for display to the customer.

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

getLastChangeTime

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

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

The following is a description of this column:

The last time this IItemList was updated.

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

getLastChangeTimeInEJBType

public java.sql.Timestamp getLastChangeTimeInEJBType()
                                              throws java.rmi.RemoteException,
                                                     javax.ejb.CreateException,
                                                     javax.ejb.FinderException,
                                                     javax.naming.NamingException

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

The following is a description of this column:

The last time this IItemList was updated.

Returns:
java.sql.Timestamp
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setLastChangeTime

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

setLastChangeTime

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

getUserReferenceNumber

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

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

The following is a description of this column:

The owner of the IItemList.

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

getUserReferenceNumberInEJBType

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

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

The following is a description of this column:

The owner of the IItemList.

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

setUserReferenceNumber

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

setUserReferenceNumber

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

getInterestListNumber

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

This method provides access to the IITEMLIST.IITEMLIST_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key for this interest item list.

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

getInterestListNumberInEJBType

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

This method provides access to the IITEMLIST.IITEMLIST_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key for this interest item list.

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

setInterestListNumber

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

setInterestListNumber

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

fulfills

public boolean fulfills(java.lang.Long arg0,
                        java.lang.String arg1)
                 throws java.rmi.RemoteException,
                        java.lang.Exception,
                        javax.ejb.FinderException,
                        javax.naming.NamingException
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.String
Returns:
boolean
Throws:
java.rmi.RemoteException
java.lang.Exception
javax.ejb.FinderException
javax.naming.NamingException

addInterestItem

public InterestItemAccessBean addInterestItem(java.lang.Long arg1,
                                              java.lang.Integer arg2)
                                       throws javax.naming.NamingException,
                                              javax.ejb.CreateException,
                                              javax.ejb.FinderException,
                                              java.rmi.RemoteException

This method adds an Interest Item to the Interest Item List for the specified store.

Parameters:
arg1 - The Catalog Entry ID adding into the Interest Item List java.lang.Long
arg2 - The Store Entry ID that the Interest Item belongs to java.lang.Integer
Returns:
com.ibm.commerce.catalog.objects.InterestItemAccessBean
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getInterestItems

public InterestItemAccessBean[] getInterestItems()
                                          throws javax.naming.NamingException,
                                                 javax.ejb.CreateException,
                                                 javax.ejb.FinderException,
                                                 java.rmi.RemoteException

The method returns the list of InterestItem Access Bean in the Interest Item List.

Returns:
com.ibm.commerce.catalog.objects.InterestItemAccessBean[]
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

getOwner

public java.lang.Long getOwner()
                        throws java.lang.Exception,
                               java.rmi.RemoteException,
                               javax.ejb.FinderException,
                               javax.naming.NamingException
This method accesses a non-CMP field
Throws:
java.lang.Exception
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

addToCurrentUserList

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

Makes this list current for the given user.

Parameters:
arg1 - java.lang.Long
Returns:
void
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

removeFromCurrentUserList

public void removeFromCurrentUserList(java.lang.Long arg1)
                               throws javax.naming.NamingException,
                                      javax.ejb.CreateException,
                                      javax.ejb.FinderException,
                                      javax.ejb.RemoveException,
                                      java.rmi.RemoteException

Removes the list from the user's current interest item list.

Parameters:
arg1 - The owner of the Interest Item List java.lang.Long
Returns:
void
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.ejb.RemoveException - The javax.ejb.RemoveException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

removeInterestItem

public void removeInterestItem(java.lang.Long arg1)
                        throws javax.naming.NamingException,
                               javax.ejb.CreateException,
                               javax.ejb.FinderException,
                               javax.ejb.RemoveException,
                               java.rmi.RemoteException

Removes the interest item for the given catalog entry from this list

Parameters:
arg1 - The Catalog Entry ID being remove from the Interest Item List java.lang.Long
Returns:
void
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.ejb.RemoveException - The javax.ejb.RemoveException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

Feedback