com.ibm.commerce.pvcdevices.objects
Class PVCSessionAccessBean

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

public class PVCSessionAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements PVCSessionAccessBeanData

This table manages the session of various pervasive computing devices.

See Also:
Serialized Form

Constructor Summary
PVCSessionAccessBean()
          constructor
PVCSessionAccessBean(javax.ejb.EJBObject o)
          constructor
PVCSessionAccessBean(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()
           
  PVCSessionAccessBean findBySessionTypeAndTerminalId(java.lang.String arg0, java.lang.String arg1)
          Returns PVCSession based on the provided values of aSessionId and aTerminalId
 java.lang.String getGuestId()
          This method provides access to the PVCSESSION.GUEST_ID column of DB2 type BIGINT.
 java.lang.Long getGuestIdInEJBType()
          This method provides access to the PVCSESSION.GUEST_ID column of DB2 type BIGINT.
 java.lang.String getLastVisted()
          This method provides access to the PVCSESSION.LASTVISITED column of DB2 type TIMESTAMP NOT NULL.
 java.sql.Timestamp getLastVistedInEJBType()
          This method provides access to the PVCSESSION.LASTVISITED column of DB2 type TIMESTAMP NOT NULL.
 java.lang.String getPVCSessionId()
          This method provides access to the PVCSESSION.PVCSESSION_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getPVCSessionIdInEJBType()
          This method provides access to the PVCSESSION.PVCSESSION_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getRegisterId()
          This method provides access to the PVCSESSION.REGISTER_ID column of DB2 type BIGINT.
 java.lang.Long getRegisterIdInEJBType()
          This method provides access to the PVCSESSION.REGISTER_ID column of DB2 type BIGINT.
 java.lang.String getSessionType()
          This method provides access to the PVCSESSION.SESSIONTYPE column of DB2 type VARCHAR(32) NOT NULL.
 java.lang.String getStatus()
          This method provides access to the PVCSESSION.STATUS column of DB2 type INTEGER NOT NULL DEFAULT 0.
 java.lang.Integer getStatusInEJBType()
          This method provides access to the PVCSESSION.STATUS column of DB2 type INTEGER NOT NULL DEFAULT 0.
 java.lang.String getTerminalId()
          This method provides access to the PVCSESSION.TERMINAL column of DB2 type VARCHAR(254) NOT NULL.
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setGuestId(java.lang.Long newValue)
          This method provides access to the PVCSESSION.GUEST_ID column of DB2 type BIGINT.
 void setGuestId(java.lang.String newValue)
          This method provides access to the PVCSESSION.GUEST_ID column of DB2 type BIGINT.
 void setInitKey_PVCSessionId(java.lang.String newValue)
          Set the primary key for this object
 void setLastVisted(java.lang.String newValue)
          This method provides access to the PVCSESSION.LASTVISITED column of DB2 type TIMESTAMP NOT NULL.
 void setLastVisted(java.sql.Timestamp newValue)
          This method provides access to the PVCSESSION.LASTVISITED column of DB2 type TIMESTAMP NOT NULL.
 void setPVCSessionId(java.lang.Long newValue)
          This method provides access to the PVCSESSION.PVCSESSION_ID column of DB2 type BIGINT NOT NULL.
 void setPVCSessionId(java.lang.String newValue)
          This method provides access to the PVCSESSION.PVCSESSION_ID column of DB2 type BIGINT NOT NULL.
 void setRegisterId(java.lang.Long newValue)
          This method provides access to the PVCSESSION.REGISTER_ID column of DB2 type BIGINT.
 void setRegisterId(java.lang.String newValue)
          This method provides access to the PVCSESSION.REGISTER_ID column of DB2 type BIGINT.
 void setSessionType(java.lang.String newValue)
          This method provides access to the PVCSESSION.SESSIONTYPE column of DB2 type VARCHAR(32) NOT NULL.
 void setStatus(java.lang.Integer newValue)
          This method provides access to the PVCSESSION.STATUS column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setStatus(java.lang.String newValue)
          This method provides access to the PVCSESSION.STATUS column of DB2 type INTEGER NOT NULL DEFAULT 0.
 void setTerminalId(java.lang.String newValue)
          This method provides access to the PVCSESSION.TERMINAL column of DB2 type VARCHAR(254) NOT NULL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PVCSessionAccessBean

public PVCSessionAccessBean()
constructor

PVCSessionAccessBean

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

PVCSessionAccessBean

public PVCSessionAccessBean(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

findBySessionTypeAndTerminalId

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

Returns PVCSession based on the provided values of aSessionId and aTerminalId

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

setInitKey_PVCSessionId

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

getTerminalId

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

This method provides access to the PVCSESSION.TERMINAL column of DB2 type VARCHAR(254) NOT NULL.

The following is a description of this column:

The terminal identifier related to this session. CONSTRAINT unique_session_devic UNIQUE(SESSION_TYPE, TERMINAL).

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

setTerminalId

public void setTerminalId(java.lang.String newValue)

This method provides access to the PVCSESSION.TERMINAL column of DB2 type VARCHAR(254) NOT NULL.

The following is a description of this column:

The terminal identifier related to this session. CONSTRAINT unique_session_devic UNIQUE(SESSION_TYPE, TERMINAL).

Specified by:
setTerminalId in interface PVCSessionAccessBeanData
Parameters:
newValue - java.lang.String
Returns:
void

getLastVisted

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

This method provides access to the PVCSESSION.LASTVISITED column of DB2 type TIMESTAMP NOT NULL.

The following is a description of this column:

Last visited time. Will be updated on command execution while status is 1.

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

getLastVistedInEJBType

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

This method provides access to the PVCSESSION.LASTVISITED column of DB2 type TIMESTAMP NOT NULL.

The following is a description of this column:

Last visited time. Will be updated on command execution while status is 1.

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

setLastVisted

public void setLastVisted(java.lang.String newValue)

This method provides access to the PVCSESSION.LASTVISITED column of DB2 type TIMESTAMP NOT NULL.

The following is a description of this column:

Last visited time. Will be updated on command execution while status is 1.

Specified by:
setLastVisted in interface PVCSessionAccessBeanData
Parameters:
newValue - String
Returns:
void

setLastVisted

public void setLastVisted(java.sql.Timestamp newValue)

This method provides access to the PVCSESSION.LASTVISITED column of DB2 type TIMESTAMP NOT NULL.

The following is a description of this column:

Last visited time. Will be updated on command execution while status is 1.

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

getPVCSessionId

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

This method provides access to the PVCSESSION.PVCSESSION_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reference number of this record.

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

getPVCSessionIdInEJBType

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

This method provides access to the PVCSESSION.PVCSESSION_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reference number of this record.

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

setPVCSessionId

public void setPVCSessionId(java.lang.String newValue)

This method provides access to the PVCSESSION.PVCSESSION_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reference number of this record.

Specified by:
setPVCSessionId in interface PVCSessionAccessBeanData
Parameters:
newValue - String
Returns:
void

setPVCSessionId

public void setPVCSessionId(java.lang.Long newValue)

This method provides access to the PVCSESSION.PVCSESSION_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reference number of this record.

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

getRegisterId

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

This method provides access to the PVCSESSION.REGISTER_ID column of DB2 type BIGINT.

The following is a description of this column:

Reference number of a customer who is logging in. Or reference number of a customer who was previously logged in. This column is NULL if the pervasive computing customer has not registered by way of a registration command.

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

getRegisterIdInEJBType

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

This method provides access to the PVCSESSION.REGISTER_ID column of DB2 type BIGINT.

The following is a description of this column:

Reference number of a customer who is logging in. Or reference number of a customer who was previously logged in. This column is NULL if the pervasive computing customer has not registered by way of a registration command.

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

setRegisterId

public void setRegisterId(java.lang.String newValue)

This method provides access to the PVCSESSION.REGISTER_ID column of DB2 type BIGINT.

The following is a description of this column:

Reference number of a customer who is logging in. Or reference number of a customer who was previously logged in. This column is NULL if the pervasive computing customer has not registered by way of a registration command.

Specified by:
setRegisterId in interface PVCSessionAccessBeanData
Parameters:
newValue - String
Returns:
void

setRegisterId

public void setRegisterId(java.lang.Long newValue)

This method provides access to the PVCSESSION.REGISTER_ID column of DB2 type BIGINT.

The following is a description of this column:

Reference number of a customer who is logging in. Or reference number of a customer who was previously logged in. This column is NULL if the pervasive computing customer has not registered by way of a registration command.

Parameters:
newValue - java.lang.Long
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 PVCSESSION.SESSIONTYPE column of DB2 type VARCHAR(32) NOT NULL.

The following is a description of this column:

This column identifies the type of pervasive computing device: either iMode or WAP.

Specified by:
getSessionType in interface PVCSessionAccessBeanData
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 PVCSESSION.SESSIONTYPE column of DB2 type VARCHAR(32) NOT NULL.

The following is a description of this column:

This column identifies the type of pervasive computing device: either iMode or WAP.

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

getStatus

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

This method provides access to the PVCSESSION.STATUS column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Status of the customer whose reference number is same as SHOPPER_ID: &l

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

getStatusInEJBType

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

This method provides access to the PVCSESSION.STATUS column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Status of the customer whose reference number is same as SHOPPER_ID: &l

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

setStatus

public void setStatus(java.lang.String newValue)

This method provides access to the PVCSESSION.STATUS column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Status of the customer whose reference number is same as SHOPPER_ID: &l

Specified by:
setStatus in interface PVCSessionAccessBeanData
Parameters:
newValue - String
Returns:
void

setStatus

public void setStatus(java.lang.Integer newValue)

This method provides access to the PVCSESSION.STATUS column of DB2 type INTEGER NOT NULL DEFAULT 0.

The following is a description of this column:

Status of the customer whose reference number is same as SHOPPER_ID: &l

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

getGuestId

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

This method provides access to the PVCSESSION.GUEST_ID column of DB2 type BIGINT.

The following is a description of this column:

Reference number of a guest customer. When the status value is 1, this column is set to NULL.

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

getGuestIdInEJBType

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

This method provides access to the PVCSESSION.GUEST_ID column of DB2 type BIGINT.

The following is a description of this column:

Reference number of a guest customer. When the status value is 1, this column is set to NULL.

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

setGuestId

public void setGuestId(java.lang.String newValue)

This method provides access to the PVCSESSION.GUEST_ID column of DB2 type BIGINT.

The following is a description of this column:

Reference number of a guest customer. When the status value is 1, this column is set to NULL.

Specified by:
setGuestId in interface PVCSessionAccessBeanData
Parameters:
newValue - String
Returns:
void

setGuestId

public void setGuestId(java.lang.Long newValue)

This method provides access to the PVCSESSION.GUEST_ID column of DB2 type BIGINT.

The following is a description of this column:

Reference number of a guest customer. When the status value is 1, this column is set to NULL.

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