com.ibm.commerce.inventory.objects
Class ItemVersionAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.inventory.objects.ItemVersionAccessBean
All Implemented Interfaces:
ItemVersionAccessBeanData, java.io.Serializable

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

This bean provides access to the ITEMVERSN table.

The following is a description of this table:

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.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
ItemVersionAccessBean()
          Default constructor.
ItemVersionAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
ItemVersionAccessBean(java.lang.Long BaseItemId, java.sql.Timestamp ExpirationDate)
          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).
 java.util.Enumeration findByBaseItemId(java.lang.Long BaseItemId)
          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 NULL.
 java.sql.Timestamp getLastupdateInEJBType()
          This method provides access to the ITEMVERSN.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 java.lang.String getVersionName()
          This method provides access to the ITEMVERSN.VERSIONNAME column of DB2 type CHAR(30) NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setBaseItemId(java.lang.Long aBaseItemId)
          This method provides access to the ITEMVERSN.BASEITEM_ID column of DB2 type BIGINT NOT NULL.
 void setBaseItemId(java.lang.String aBaseItemId)
          This method provides access to the ITEMVERSN.BASEITEM_ID column of DB2 type BIGINT NOT NULL.
 void setExpirationDate(java.lang.String aExpirationDate)
          This method provides access to the ITEMVERSN.EXPIRATIONDATE column of DB2 type TIMESTAMP NOT NULL.
 void setExpirationDate(java.sql.Timestamp aExpirationDate)
          This method provides access to the ITEMVERSN.EXPIRATIONDATE column of DB2 type TIMESTAMP NOT NULL.
 void setInitKey_itemversnId(java.lang.String aInitKey_itemversnId)
          Set the primary key for this object
 void setItemversnId(java.lang.Long aItemversnId)
          This method provides access to the ITEMVERSN.ITEMVERSN_ID column of DB2 type BIGINT NOT NULL.
 void setItemversnId(java.lang.String aItemversnId)
          This method provides access to the ITEMVERSN.ITEMVERSN_ID column of DB2 type BIGINT NOT NULL.
 void setLastupdate(java.lang.String aLastupdate)
          This method provides access to the ITEMVERSN.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 void setLastupdate(java.sql.Timestamp aLastupdate)
          This method provides access to the ITEMVERSN.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 void setVersionName(java.lang.String aVersionName)
          This method provides access to the ITEMVERSN.VERSIONNAME column of DB2 type CHAR(30) NOT NULL.
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemVersionAccessBean

public ItemVersionAccessBean()

Default constructor. Maps to findByPrimaryKey.


ItemVersionAccessBean

public ItemVersionAccessBean(javax.ejb.EJBObject object)
                      throws java.rmi.RemoteException

Creates an access bean for the specified EJB

Parameters:
object - - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

ItemVersionAccessBean

public ItemVersionAccessBean(java.lang.Long BaseItemId,
                             java.sql.Timestamp ExpirationDate)
                      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:
BaseItemId - - java.lang.Long
ExpirationDate - - 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

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).

Overrides:
commitCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByBaseItemId

public java.util.Enumeration findByBaseItemId(java.lang.Long BaseItemId)
                                       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:
BaseItemId - - 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

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:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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 - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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 - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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 - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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 NULL.

The following is a description of this column:

The time this ItemVersion was most recently updated.

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

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 NULL.

The following is a description of this column:

The time this ItemVersion was most recently updated.

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

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.

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 - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Load data from the EJBObject.

Overrides:
refreshCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setBaseItemId

public void setBaseItemId(java.lang.Long aBaseItemId)

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.

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

setBaseItemId

public void setBaseItemId(java.lang.String aBaseItemId)

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:
setBaseItemId in interface ItemVersionAccessBeanData
Parameters:
aBaseItemId - java.lang.String
Returns:
void

setExpirationDate

public void setExpirationDate(java.lang.String aExpirationDate)

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:
setExpirationDate in interface ItemVersionAccessBeanData
Parameters:
aExpirationDate - java.lang.String
Returns:
void

setExpirationDate

public void setExpirationDate(java.sql.Timestamp aExpirationDate)

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.

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

setInitKey_itemversnId

public void setInitKey_itemversnId(java.lang.String aInitKey_itemversnId)

Set the primary key for this object

Parameters:
aInitKey_itemversnId - java.lang.String
Returns:
void

setItemversnId

public void setItemversnId(java.lang.Long aItemversnId)

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.

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

setItemversnId

public void setItemversnId(java.lang.String aItemversnId)

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:
setItemversnId in interface ItemVersionAccessBeanData
Parameters:
aItemversnId - java.lang.String
Returns:
void

setLastupdate

public void setLastupdate(java.lang.String aLastupdate)

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

The following is a description of this column:

The time this ItemVersion was most recently updated.

Specified by:
setLastupdate in interface ItemVersionAccessBeanData
Parameters:
aLastupdate - java.lang.String
Returns:
void

setLastupdate

public void setLastupdate(java.sql.Timestamp aLastupdate)

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

The following is a description of this column:

The time this ItemVersion was most recently updated.

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

setVersionName

public void setVersionName(java.lang.String aVersionName)

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

The following is a description of this column:

Uniquely identifies this ItemVersion for its BaseItem.

Specified by:
setVersionName in interface ItemVersionAccessBeanData
Parameters:
aVersionName - java.lang.String
Returns:
void