com.ibm.commerce.inventory.objects
Class ItemVersionAccessBean

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

public class ItemVersionAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements ItemVersionAccessBeanData

Each row of this table represents an ItemVersion for a BaseItem. An ItemVersion expires when its expiration date is in the past. Each BaseItem must only have a single ItemVersion defined. This access bean corresponds to the database table 'ITEMVERSN'.

See Also:
Serialized Form

Constructor Summary
ItemVersionAccessBean()
Zero argument constructor used to initialize the access bean.
ItemVersionAccessBean(javax.ejb.EJBObject o)
constructor
ItemVersionAccessBean(java.lang.Long newBaseItemId, java.sql.Timestamp newExpirationDate)
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 the ItemVersion for the specified BASEITEM_ID The SQL query used to fetch the requested row from the ITEMVERSN table is:
SELECT * FROM ITEMVERSN T1 WHERE T1.BASEITEM_ID = ?
java.lang.String getBaseItemId()
This method provides access to the ITEMVERSN.BASEITEM_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getBaseItemIdInEJBType()
This method provides access to the ITEMVERSN.BASEITEM_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getExpirationDate()
This method provides access to the ITEMVERSN.EXPIRATIONDATE column of DB2 type TIMESTAMP NOT NULL.
java.sql.Timestamp getExpirationDateInEJBType()
This method provides access to the ITEMVERSN.EXPIRATIONDATE column of DB2 type TIMESTAMP NOT NULL.
java.lang.String getItemversnId()
This method provides access to the ITEMVERSN.ITEMVERSN_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getItemversnIdInEJBType()
This method provides access to the ITEMVERSN.ITEMVERSN_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getLastupdate()
This method provides access to the ITEMVERSN.LASTUPDATE column of DB2 type TIMESTAMP.
java.sql.Timestamp getLastupdateInEJBType()
This method provides access to the ITEMVERSN.LASTUPDATE column of DB2 type TIMESTAMP.
java.lang.String getVersionName()
This method provides access to the ITEMVERSN.VERSIONNAME column of DB2 type CHAR(30) NOT NULL DEFAULT 'Version 1'.
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 setExpirationDate(java.lang.String newValue)
This method accesses a non-CMP field
void setExpirationDate(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setInitKey_itemversnId(java.lang.String newValue)
Set the primary key for this object
void setItemversnId(java.lang.Long newValue)
This method accesses a non-CMP field
void setItemversnId(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 setVersionName(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

ItemVersionAccessBean

public ItemVersionAccessBean()
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.ItemVersion com.ibm.commerce.inventory.objimpl.ItemVersionHomeBase.findByPrimaryKey(com.ibm.commerce.inventory.objects.ItemVersionKey) 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_itemversnId( java.lang.Long )

ItemVersionAccessBean

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

ItemVersionAccessBean

public ItemVersionAccessBean(java.lang.Long newBaseItemId,
                             java.sql.Timestamp newExpirationDate)
                      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
newExpirationDate - - java.sql.Timestamp
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 the ItemVersion for the specified BASEITEM_ID
The SQL query used to fetch the requested row from the
ITEMVERSN table is:
SELECT * FROM ITEMVERSN 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 - The javax.naming.NamingException exception

setInitKey_itemversnId

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

getItemversnId

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

This method provides access to the ITEMVERSN.ITEMVERSN_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated primary key.

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

getItemversnIdInEJBType

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

This method provides access to the ITEMVERSN.ITEMVERSN_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated primary key.

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

setItemversnId

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

setItemversnId

public void setItemversnId(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 ITEMVERSN.LASTUPDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

The time this ItemVersion was most recently updated.

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

The following is a description of this column:

The time this ItemVersion was most recently updated.

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 ItemVersionAccessBeanData

setLastupdate

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

getVersionName

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

This method provides access to the ITEMVERSN.VERSIONNAME column of DB2 type CHAR(30) NOT NULL DEFAULT 'Version 1'.

The following is a description of this column:

Uniquely identifies this ItemVersion for its BaseItem.

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

setVersionName

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

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 ITEMVERSN.BASEITEM_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The BaseItem for this ItemVersion.

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

The following is a description of this column:

The BaseItem for this ItemVersion.

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 ItemVersionAccessBeanData

setBaseItemId

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

getExpirationDate

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

This method provides access to the ITEMVERSN.EXPIRATIONDATE column of DB2 type TIMESTAMP NOT NULL.

The following is a description of this column:

The time this ItemVersion expires.

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

getExpirationDateInEJBType

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

This method provides access to the ITEMVERSN.EXPIRATIONDATE column of DB2 type TIMESTAMP NOT NULL.

The following is a description of this column:

The time this ItemVersion expires.

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

setExpirationDate

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

setExpirationDate

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

Feedback