public class InterestItemListAccessBean extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean implements InterestItemListAccessBeanData
Constructor and Description |
---|
InterestItemListAccessBean()
Zero argument constructor used to initialize the access bean.
|
InterestItemListAccessBean(javax.ejb.EJBObject o) |
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
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() |
java.lang.String | getDisplaySequenceNumber() |
java.lang.Double | getDisplaySequenceNumberInEJBType() |
InterestItemAccessBean[] | getInterestItems()
The method returns the list of InterestItem Access Bean in the Interest Item List.
|
java.lang.String | getInterestListNumber() |
java.lang.Long | getInterestListNumberInEJBType() |
java.lang.String | getLastChangeTime() |
java.sql.Timestamp | getLastChangeTimeInEJBType() |
java.lang.Long | getOwner() |
java.lang.String | getUserReferenceNumber() |
java.lang.Long | getUserReferenceNumberInEJBType() |
protected void | instantiateEJB() |
protected boolean | instantiateEJBByPrimaryKey() |
void | refreshCopyHelper() |
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.It also updates the last update time of the list to the current timeStamp.To avoid possible losses to the lastChangeTime updates that was previously set, precede the call to this method by commitCopyHelper , followed by refreshCopyHelper to obtain the updated timeStamp value.
|
void | setDescription(java.lang.String newValue) |
void | setDisplaySequenceNumber(java.lang.Double newValue) |
void | setDisplaySequenceNumber(java.lang.String newValue) |
void | setInitKey_interestListNumber(java.lang.String newValue) |
void | setInterestListNumber(java.lang.Long newValue) |
void | setInterestListNumber(java.lang.String newValue) |
void | setLastChangeTime(java.lang.String newValue) |
void | setLastChangeTime(java.sql.Timestamp newValue) |
void | setUserReferenceNumber(java.lang.Long newValue) |
void | setUserReferenceNumber(java.lang.String newValue) |
public InterestItemListAccessBean()
public InterestItemListAccessBean(javax.ejb.EJBObject o) throws java.rmi.RemoteException
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.
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.
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
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
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
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
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"public void setInitKey_interestListNumber(java.lang.String newValue)
protected java.lang.String defaultJNDIName()
protected void instantiateEJB() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
protected boolean instantiateEJBByPrimaryKey() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.naming.NamingException
public void commitCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.String getDisplaySequenceNumber() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.Double getDisplaySequenceNumberInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setDisplaySequenceNumber(java.lang.String newValue)
public void setDisplaySequenceNumber(java.lang.Double newValue)
public java.lang.String getDescription() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setDescription(java.lang.String newValue)
public java.lang.String getLastChangeTime() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.sql.Timestamp getLastChangeTimeInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setLastChangeTime(java.lang.String newValue)
public void setLastChangeTime(java.sql.Timestamp newValue)
public java.lang.String getUserReferenceNumber() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.Long getUserReferenceNumberInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setUserReferenceNumber(java.lang.String newValue)
public void setUserReferenceNumber(java.lang.Long newValue)
public java.lang.String getInterestListNumber() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.Long getInterestListNumberInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void setInterestListNumber(java.lang.String newValue)
public void setInterestListNumber(java.lang.Long newValue)
public boolean fulfills(java.lang.Long arg0, java.lang.String arg1) throws java.rmi.RemoteException, java.lang.Exception, javax.ejb.FinderException, javax.naming.NamingException
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. It also updates the last update time of the list to the current timeStamp.To avoid possible losses to the lastChangeTime updates that was previously set, precede the call to this method by commitCopyHelper , followed by refreshCopyHelper to obtain the updated timeStamp value.
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.
public java.lang.Long getOwner() throws java.lang.Exception, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
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.
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.
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.It also updates the last update time of the list to the current timeStamp.To avoid possible losses to the lastChangeTime updates that was previously set, precede the call to this method by commitCopyHelper , followed by refreshCopyHelper to obtain the updated timeStamp value.