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.

See Also:
Serialized Form

Constructor Summary
ItemVersionAccessBean()
          constructor
ItemVersionAccessBean(javax.ejb.EJBObject o)
          constructor
ItemVersionAccessBean(java.lang.Long arg0, java.sql.Timestamp arg1)
          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 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 provides access to the ITEMVERSN.BASEITEM_ID column of DB2 type BIGINT NOT NULL.
 void setBaseItemId(java.lang.String newValue)
          This method provides access to the ITEMVERSN.BASEITEM_ID column of DB2 type BIGINT NOT NULL.
 void setExpirationDate(java.lang.String newValue)
          This method provides access to the ITEMVERSN.EXPIRATIONDATE column of DB2 type TIMESTAMP NOT NULL.
 void setExpirationDate(java.sql.Timestamp newValue)
          This method provides access to the ITEMVERSN.EXPIRATIONDATE column of DB2 type TIMESTAMP NOT NULL.
 void setInitKey_itemversnId(java.lang.String newValue)
          Set the primary key for this object
 void setItemversnId(java.lang.Long newValue)
          This method provides access to the ITEMVERSN.ITEMVERSN_ID column of DB2 type BIGINT NOT NULL.
 void setItemversnId(java.lang.String newValue)
          This method provides access to the ITEMVERSN.ITEMVERSN_ID column of DB2 type BIGINT NOT NULL.
 void setLastupdate(java.lang.String newValue)
          This method provides access to the ITEMVERSN.LASTUPDATE column of DB2 type TIMESTAMP.
 void setLastupdate(java.sql.Timestamp newValue)
          This method provides access to the ITEMVERSN.LASTUPDATE column of DB2 type TIMESTAMP.
 void setVersionName(java.lang.String newValue)
          This method provides access to the ITEMVERSN.VERSIONNAME column of DB2 type CHAR(30) NOT NULL DEFAULT 'Version 1'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemVersionAccessBean

public ItemVersionAccessBean()
constructor

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 arg0,
                             java.sql.Timestamp arg1)
                      throws javax.naming.NamingException,
                             javax.ejb.CreateException,
                             java.rmi.RemoteException,
                             javax.ejb.FinderException
constructor
Parameters:
arg0 - java.lang.Long
arg1 - java.sql.Timestamp
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 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 = ?

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 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:
newValue - String
Returns:
void

setItemversnId

public void setItemversnId(java.lang.Long newValue)

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

setLastupdate

public void setLastupdate(java.sql.Timestamp newValue)

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.

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

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

setBaseItemId

public void setBaseItemId(java.lang.Long newValue)

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:
newValue - java.lang.Long
Returns:
void

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 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:
newValue - String
Returns:
void

setExpirationDate

public void setExpirationDate(java.sql.Timestamp newValue)

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:
newValue - java.sql.Timestamp
Returns:
void