com.ibm.commerce.pvcdevices.objects
Class PVCBindingAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.pvcdevices.objects.PVCBindingAccessBean
All Implemented Interfaces:
PVCBindingAccessBeanData, java.io.Serializable

public class PVCBindingAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements PVCBindingAccessBeanData

This bean provides access to the PVCBINDING table.

The following is a description of this table:

Represents relation between a customer and a terminal for pervasive computing.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
PVCBindingAccessBean()
          Default constructor.
PVCBindingAccessBean(javax.ejb.EJBObject ejbObject)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
PVCBindingAccessBean(java.lang.Long pvcSessionId, java.lang.Long userId)
          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).
 PVCBindingAccessBean findActiveByPVCSessionId(java.lang.Long pvcSessionId)
          Returns PVCBindingAccessBean found by the search on provided value of PVCSessionId
 PVCBindingAccessBean findActiveByUserId(java.lang.Long userId)
          Returns PVCBindingAccessBean found by the search based on userId
 PVCBindingAccessBean findActiveByUserIdAndPVCSessionId(java.lang.Long userId, java.lang.Long pvcSessionId)
          Returns PVCBindingAccessBean found by the search based on userId and PVCSessionId
 java.util.Enumeration findByPVCSessionIdAndStatus(java.lang.Long sessionId, java.lang.String status)
          Returns results of the search based on the provided values of SessioID and Status
 java.util.Enumeration findByUserIdAndStatus(java.lang.Long userId, java.lang.String status)
          Returns results of the search based on the values of the current user's ID and status
 java.lang.String getCreated()
          This method provides access to the PVCBINDING.CREATED
 java.sql.Timestamp getCreatedInEJBType()
          Get the Time stamp value of the CREATED field in the PVCBINDING table
 java.lang.String getPVCBindingId()
          This method provides access to the PVCBINDING.PVCBINDING_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getPVCBindingIdInEJBType()
          This method provides access to the PVCBINDING.PVCBINDING_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getPVCSessionId()
          This method provides access to the PVCBINDING.PVCSESSION_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getPVCSessionIdInEJBType()
          This method provides access to the PVCBINDING.PVCSESSION_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getStatus()
          This method provides access to the PVCBINDING.STATUS column of DB2 type CHAR NOT NULL.
 java.lang.String getUsersId()
          This method provides access to the PVCBINDING.USERS_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getUsersIdInEJBType()
          This method provides access to the PVCBINDING.USERS_ID column of DB2 type BIGINT NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCreated(java.lang.String aCreated)
          This method provides access to the PVCBINDING.CREATED
 void setCreated(java.sql.Timestamp aCreated)
          This method provides access to the PVCBINDING.CREATED
 void setInitKey_PVCBindingId(java.lang.Long aInitKey_PVCBindingId)
          Set the primary key for this object
 void setPVCBindingId(java.lang.Long aPVCBindingId)
          This method provides access to the PVCBINDING.PVCBINDING_ID column of DB2 type BIGINT NOT NULL.
 void setPVCBindingId(java.lang.String aPVCBindingId)
          This method provides access to the PVCBINDING.PVCBINDING_ID column of DB2 type BIGINT NOT NULL.
 void setPVCSessionId(java.lang.Long aPVCSessionId)
          This method provides access to the PVCBINDING.PVCSESSION_ID column of DB2 type BIGINT NOT NULL.
 void setPVCSessionId(java.lang.String aPVCSessionId)
          This method provides access to the PVCBINDING.PVCSESSION_ID column of DB2 type BIGINT NOT NULL.
 void setStatus(java.lang.String aStatus)
          This method provides access to the PVCBINDING.STATUS column of DB2 type CHAR NOT NULL.
 void setUsersId(java.lang.Long aUsersId)
          This method provides access to the PVCBINDING.USERS_ID column of DB2 type BIGINT NOT NULL.
 void setUsersId(java.lang.String aUsersId)
          This method provides access to the PVCBINDING.USERS_ID column of DB2 type BIGINT 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

PVCBindingAccessBean

public PVCBindingAccessBean()

Default constructor. Maps to findByPrimaryKey.


PVCBindingAccessBean

public PVCBindingAccessBean(javax.ejb.EJBObject ejbObject)
                     throws java.rmi.RemoteException

Maps to a corresponding ejbCreate method in the home interface of the EJB

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

PVCBindingAccessBean

public PVCBindingAccessBean(java.lang.Long pvcSessionId,
                            java.lang.Long userId)
                     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

Bean is created based on the provided userId and PVCSessionID

Parameters:
pvcSessionId - java.lang.Long - pvc session ID
userId - java.lang.Long - user Id
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

findActiveByPVCSessionId

public PVCBindingAccessBean findActiveByPVCSessionId(java.lang.Long pvcSessionId)
                                              throws java.rmi.RemoteException,
                                                     javax.ejb.FinderException,
                                                     javax.naming.NamingException

Returns PVCBindingAccessBean found by the search on provided value of PVCSessionId

Parameters:
pvcSessionId - java.lang.Long - the pvc session id
Returns:
com.ibm.commerce.pvcdevices.objects.PVCBindingAccessBean
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

findActiveByUserId

public PVCBindingAccessBean findActiveByUserId(java.lang.Long userId)
                                        throws java.rmi.RemoteException,
                                               javax.ejb.FinderException,
                                               javax.naming.NamingException

Returns PVCBindingAccessBean found by the search based on userId

Parameters:
userId - java.lang.Long - the user Id
Returns:
com.ibm.commerce.pvcdevices.objects.PVCBindingAccessBean
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

findActiveByUserIdAndPVCSessionId

public PVCBindingAccessBean findActiveByUserIdAndPVCSessionId(java.lang.Long userId,
                                                              java.lang.Long pvcSessionId)
                                                       throws java.rmi.RemoteException,
                                                              javax.ejb.FinderException,
                                                              javax.naming.NamingException

Returns PVCBindingAccessBean found by the search based on userId and PVCSessionId

Parameters:
userId - java.lang.Long - the user Id
pvcSessionId - java.lang.Long - the pvc session Id
Returns:
com.ibm.commerce.pvcdevices.objects.PVCBindingAccessBean
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

findByPVCSessionIdAndStatus

public java.util.Enumeration findByPVCSessionIdAndStatus(java.lang.Long sessionId,
                                                         java.lang.String status)
                                                  throws java.rmi.RemoteException,
                                                         javax.ejb.FinderException,
                                                         javax.naming.NamingException

Returns results of the search based on the provided values of SessioID and Status

Parameters:
sessionId - java.lang.Long - the session Id
status - java.lang.String - the status
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

findByUserIdAndStatus

public java.util.Enumeration findByUserIdAndStatus(java.lang.Long userId,
                                                   java.lang.String status)
                                            throws java.rmi.RemoteException,
                                                   javax.ejb.FinderException,
                                                   javax.naming.NamingException

Returns results of the search based on the values of the current user's ID and status

Parameters:
userId - java.lang.Long - user Id
status - java.lang.String - status value
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

getCreated

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

This method provides access to the PVCBINDING.CREATED

The following is a description of this column:

The creation time stamp

Specified by:
getCreated in interface PVCBindingAccessBeanData
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

getCreatedInEJBType

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

Get the Time stamp value of the CREATED field in the PVCBINDING table

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

getPVCBindingId

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

This method provides access to the PVCBINDING.PVCBINDING_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reference number of a record.

Specified by:
getPVCBindingId in interface PVCBindingAccessBeanData
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

getPVCBindingIdInEJBType

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

This method provides access to the PVCBINDING.PVCBINDING_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reference number of a record.

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

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

The following is a description of this column:

Identifier of the terminal.

Specified by:
getPVCSessionId in interface PVCBindingAccessBeanData
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

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

The following is a description of this column:

Identifier of the terminal.

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

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 PVCBINDING.STATUS column of DB2 type CHAR NOT NULL.

The following is a description of this column:

Valid values: A (active record), S (superceded)

Specified by:
getStatus in interface PVCBindingAccessBeanData
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

getUsersId

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

This method provides access to the PVCBINDING.USERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reference number of a customer who is allowed to login using a terminal corresponding to PVCSESSION_ID.

Specified by:
getUsersId in interface PVCBindingAccessBeanData
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

getUsersIdInEJBType

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

This method provides access to the PVCBINDING.USERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reference number of a customer who is allowed to login using a terminal corresponding to PVCSESSION_ID.

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

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

setCreated

public void setCreated(java.lang.String aCreated)

This method provides access to the PVCBINDING.CREATED

The following is a description of this column:

The creation time stamp

Specified by:
setCreated in interface PVCBindingAccessBeanData
Parameters:
aCreated - java.lang.String
Returns:
void

setCreated

public void setCreated(java.sql.Timestamp aCreated)

This method provides access to the PVCBINDING.CREATED

The following is a description of this column:

The creation time stamp

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

setInitKey_PVCBindingId

public void setInitKey_PVCBindingId(java.lang.Long aInitKey_PVCBindingId)

Set the primary key for this object

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

setPVCBindingId

public void setPVCBindingId(java.lang.Long aPVCBindingId)

This method provides access to the PVCBINDING.PVCBINDING_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reference number of a record.

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

setPVCBindingId

public void setPVCBindingId(java.lang.String aPVCBindingId)

This method provides access to the PVCBINDING.PVCBINDING_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reference number of a record.

Specified by:
setPVCBindingId in interface PVCBindingAccessBeanData
Parameters:
aPVCBindingId - java.lang.String
Returns:
void

setPVCSessionId

public void setPVCSessionId(java.lang.Long aPVCSessionId)

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

The following is a description of this column:

Identifier of the terminal.

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

setPVCSessionId

public void setPVCSessionId(java.lang.String aPVCSessionId)

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

The following is a description of this column:

Identifier of the terminal.

Specified by:
setPVCSessionId in interface PVCBindingAccessBeanData
Parameters:
aPVCSessionId - java.lang.String
Returns:
void

setStatus

public void setStatus(java.lang.String aStatus)

This method provides access to the PVCBINDING.STATUS column of DB2 type CHAR NOT NULL.

Specified by:
setStatus in interface PVCBindingAccessBeanData
Parameters:
aStatus - java.lang.String
Returns:
void

setUsersId

public void setUsersId(java.lang.Long aUsersId)

This method provides access to the PVCBINDING.USERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reference number of a customer who is allowed to login using a terminal corresponding to PVCSESSION_ID.

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

setUsersId

public void setUsersId(java.lang.String aUsersId)

This method provides access to the PVCBINDING.USERS_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Reference number of a customer who is allowed to login using a terminal corresponding to PVCSESSION_ID.

Specified by:
setUsersId in interface PVCBindingAccessBeanData
Parameters:
aUsersId - java.lang.String
Returns:
void