com.ibm.commerce.pvcdevices.objects
Class PVCDeviceModelAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
        |
        +--com.ibm.commerce.pvcdevices.objects.PVCDeviceModelAccessBean
All Implemented Interfaces:
PVCDeviceModelAccessBeanData

public class PVCDeviceModelAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements PVCDeviceModelAccessBeanData

This table stores device model information. Records will be looked up by the value returned by the WebSphere Commerce pervasive computing adapter. Each subclass of PVCAdapterImpl is responsible to get a device model name from the HTTP request.

See Also:
Serialized Form

Constructor Summary
PVCDeviceModelAccessBean()
          constructor
PVCDeviceModelAccessBean(javax.ejb.EJBObject o)
          constructor
PVCDeviceModelAccessBean(java.lang.String arg0, java.lang.String arg1)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
  PVCDeviceModelAccessBean findBySessionTypeAndDefaultModelName(java.lang.String arg0)
          Returns PVCDeviceModel found on base of provided values for SessionType and DefaultModelName
  PVCDeviceModelAccessBean findBySessionTypeAndModelName(java.lang.String arg0, java.lang.String arg1)
          Returns PVCDeviceModel found based on provided SessionType and ModelName
 java.lang.String getDescription()
          This method provides access to the PVCDEVMDL.DESCRIPTION column of DB2 type VARCHAR(128).
 java.lang.String getDeviceModelId()
          This method provides access to the PVCDEVMDL.MODEL_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getDeviceModelIdInEJBType()
          This method provides access to the PVCDEVMDL.MODEL_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getDevModelName()
          This method provides access to the PVCDEVMDL.DEVMDLNAME column of DB2 type VARCHAR(128).
 java.lang.String getModelName()
          This method provides access to the PVCDEVMDL.MODELNAME column of DB2 type VARCHAR(40).
 java.lang.String getSessionType()
          This method provides access to the PVCDEVMDL.SESSIONTYPE column of DB2 type VARCHAR(32) NOT NULL.
 java.lang.String getVendorName()
          This method provides access to the PVCDEVMDL.VENDOR column of DB2 type VARCHAR(80).
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setDescription(java.lang.String newValue)
          This method provides access to the PVCDEVMDL.DESCRIPTION column of DB2 type VARCHAR(128).
 void setDeviceModelId(java.lang.Integer newValue)
          This method provides access to the PVCDEVMDL.MODEL_ID column of DB2 type INTEGER NOT NULL.
 void setDeviceModelId(java.lang.String newValue)
          This method provides access to the PVCDEVMDL.MODEL_ID column of DB2 type INTEGER NOT NULL.
 void setDevModelName(java.lang.String newValue)
          This method provides access to the PVCDEVMDL.DEVMDLNAME column of DB2 type VARCHAR(128).
 void setInitKey_deviceModelId(java.lang.String newValue)
          Set the primary key for this object
 void setModelName(java.lang.String newValue)
          This method provides access to the PVCDEVMDL.MODELNAME column of DB2 type VARCHAR(40).
 void setSessionType(java.lang.String newValue)
          This method provides access to the PVCDEVMDL.SESSIONTYPE column of DB2 type VARCHAR(32) NOT NULL.
 void setVendorName(java.lang.String newValue)
          This method provides access to the PVCDEVMDL.VENDOR column of DB2 type VARCHAR(80).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PVCDeviceModelAccessBean

public PVCDeviceModelAccessBean()
constructor

PVCDeviceModelAccessBean

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

PVCDeviceModelAccessBean

public PVCDeviceModelAccessBean(java.lang.String arg0,
                                java.lang.String arg1)
                         throws javax.naming.NamingException,
                                javax.ejb.CreateException,
                                java.rmi.RemoteException,
                                javax.ejb.FinderException
constructor
Parameters:
arg0 - java.lang.String
arg1 - java.lang.String
Throws:
javax.naming.NamingException
javax.ejb.CreateException
java.rmi.RemoteException
javax.ejb.FinderException
Method Detail

findBySessionTypeAndDefaultModelName

public PVCDeviceModelAccessBean findBySessionTypeAndDefaultModelName(java.lang.String arg0)
                                                              throws java.rmi.RemoteException,
                                                                     javax.ejb.FinderException,
                                                                     javax.naming.NamingException

Returns PVCDeviceModel found on base of provided values for SessionType and DefaultModelName

Returns:
com.ibm.commerce.pvcdevices.objects.PVCDeviceModel
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findBySessionTypeAndModelName

public PVCDeviceModelAccessBean findBySessionTypeAndModelName(java.lang.String arg0,
                                                              java.lang.String arg1)
                                                       throws java.rmi.RemoteException,
                                                              javax.ejb.FinderException,
                                                              javax.naming.NamingException

Returns PVCDeviceModel found based on provided SessionType and ModelName

Returns:
com.ibm.commerce.pvcdevices.objects.PVCDeviceModel
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

setInitKey_deviceModelId

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

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 PVCDEVMDL.DESCRIPTION column of DB2 type VARCHAR(128).

The following is a description of this column:

Short description of the device model.

Specified by:
getDescription in interface PVCDeviceModelAccessBeanData
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 provides access to the PVCDEVMDL.DESCRIPTION column of DB2 type VARCHAR(128).

The following is a description of this column:

Short description of the device model.

Specified by:
setDescription in interface PVCDeviceModelAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

getVendorName

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

This method provides access to the PVCDEVMDL.VENDOR column of DB2 type VARCHAR(80).

The following is a description of this column:

Vendor name of this model.

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

setVendorName

public void setVendorName(java.lang.String newValue)

This method provides access to the PVCDEVMDL.VENDOR column of DB2 type VARCHAR(80).

The following is a description of this column:

Vendor name of this model.

Specified by:
setVendorName in interface PVCDeviceModelAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

getModelName

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

This method provides access to the PVCDEVMDL.MODELNAME column of DB2 type VARCHAR(40).

The following is a description of this column:

The model name. An empty string means default for devices which have the same SESSION_TYPE. This column is &l

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

setModelName

public void setModelName(java.lang.String newValue)

This method provides access to the PVCDEVMDL.MODELNAME column of DB2 type VARCHAR(40).

The following is a description of this column:

The model name. An empty string means default for devices which have the same SESSION_TYPE. This column is &l

Specified by:
setModelName in interface PVCDeviceModelAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

getSessionType

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

This method provides access to the PVCDEVMDL.SESSIONTYPE column of DB2 type VARCHAR(32) NOT NULL.

The following is a description of this column:

Type of carrier. For example, iMode.

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

setSessionType

public void setSessionType(java.lang.String newValue)

This method provides access to the PVCDEVMDL.SESSIONTYPE column of DB2 type VARCHAR(32) NOT NULL.

The following is a description of this column:

Type of carrier. For example, iMode.

Specified by:
setSessionType in interface PVCDeviceModelAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

getDeviceModelId

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

This method provides access to the PVCDEVMDL.MODEL_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Reference number.

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

getDeviceModelIdInEJBType

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

This method provides access to the PVCDEVMDL.MODEL_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Reference number.

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

setDeviceModelId

public void setDeviceModelId(java.lang.String newValue)

This method provides access to the PVCDEVMDL.MODEL_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Reference number.

Specified by:
setDeviceModelId in interface PVCDeviceModelAccessBeanData
Parameters:
newValue - String
Returns:
void

setDeviceModelId

public void setDeviceModelId(java.lang.Integer newValue)

This method provides access to the PVCDEVMDL.MODEL_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Reference number.

Parameters:
newValue - java.lang.Integer
Returns:
void

getDevModelName

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

This method provides access to the PVCDEVMDL.DEVMDLNAME column of DB2 type VARCHAR(128).

The following is a description of this column:

The model name. A NULL value means default for devices which have the same SESSION_TYPE.

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

setDevModelName

public void setDevModelName(java.lang.String newValue)

This method provides access to the PVCDEVMDL.DEVMDLNAME column of DB2 type VARCHAR(128).

The following is a description of this column:

The model name. A NULL value means default for devices which have the same SESSION_TYPE.

Specified by:
setDevModelName in interface PVCDeviceModelAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void