com.ibm.commerce.payment.objects
Class CreditCardCheckAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.payment.objects.CreditCardCheckAccessBean
All Implemented Interfaces:
CreditCardCheckAccessBeanData, java.io.Serializable

public class CreditCardCheckAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CreditCardCheckAccessBeanData

This bean provides access to the CCCHECK table.

The following is a description of this table:

The Credit Card Check table is used to store the length and prefix of credit cards. This information is used by the CheckCCNumber Task Command to help determine the validity of the credit card number. Initially, the Credit Card Check table is empty.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
CreditCardCheckAccessBean()
          Default constructor.
CreditCardCheckAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByType(java.lang.String type)
          Retrieves all the CreditCardCheckAccessBeans representing entries in the CCCHECK table for the specified credit card brand, also referred to as credit card type.
 java.lang.String getCardType()
          This method provides access to the CCCHECK.CCTYPE column of DB2 type VARCHAR(40) NOT NULL.
 java.lang.String getCheckTaskName()
          This method provides access to the CCCHECK.CCALGTASKRN column of DB2 type VARCHAR(256) NULL.
 java.lang.String getCreditCardReferenceNumber()
          This method provides access to the CCCHECK.CCRFNBR column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getCreditCardReferenceNumberInEJBType()
          This method provides access to the CCCHECK.CCRFNBR column of DB2 type INTEGER NOT NULL.
 java.lang.String getLength()
          This method provides access to the CCCHECK.CCLENGTH column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getLengthInEJBType()
          This method provides access to the CCCHECK.CCLENGTH column of DB2 type INTEGER NOT NULL.
 java.lang.String getPrefix()
          This method provides access to the CCCHECK.CCPREFIX column of DB2 type CHAR(16) NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCardType(java.lang.String aCardType)
          This method provides access to the CCCHECK.CCTYPE column of DB2 type VARCHAR(40) NOT NULL.
 void setCheckTaskName(java.lang.String aCheckTaskName)
          This method provides access to the CCCHECK.CCALGTASKRN column of DB2 type VARCHAR(256) NULL.
 void setCreditCardReferenceNumber(java.lang.Integer aCreditCardReferenceNumber)
          This method provides access to the CCCHECK.CCRFNBR column of DB2 type INTEGER NOT NULL.
 void setCreditCardReferenceNumber(java.lang.String aCreditCardReferenceNumber)
          This method provides access to the CCCHECK.CCRFNBR column of DB2 type INTEGER NOT NULL.
 void setInitKey_creditCardReferenceNumber(java.lang.String aInitKey_creditCardReferenceNumber)
          Sets the primary key for this object
 void setLength(java.lang.Integer aLength)
          This method provides access to the CCCHECK.CCLENGTH column of DB2 type INTEGER NOT NULL.
 void setLength(java.lang.String aLength)
          This method provides access to the CCCHECK.CCLENGTH column of DB2 type INTEGER NOT NULL.
 void setPrefix(java.lang.String aPrefix)
          This method provides access to the CCCHECK.CCPREFIX column of DB2 type CHAR(16) 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

CreditCardCheckAccessBean

public CreditCardCheckAccessBean()

Default constructor. Maps to findByPrimaryKey.


CreditCardCheckAccessBean

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

Creates an access bean for the specified EJB

Parameters:
object - The EJB Object used for the access bean construction.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException 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
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

findByType

public java.util.Enumeration findByType(java.lang.String type)
                                 throws java.rmi.RemoteException,
                                        javax.ejb.FinderException,
                                        javax.naming.NamingException

Retrieves all the CreditCardCheckAccessBeans representing entries in the CCCHECK table for the specified credit card brand, also referred to as credit card type.

The SQL query used to fetch the requested row from the CCCHECK table is:

SELECT * FROM CCCHECK T1 WHERE T1.CCTYPE = ?

Parameters:
type - The credit card brand.
Returns:
An Enumeration of all the CreditCardCheckAccessBeans that match the search criteria.
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

getCardType

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

This method provides access to the CCCHECK.CCTYPE column of DB2 type VARCHAR(40) NOT NULL.

The following is a description of this column:

The credit card brand. (This is a case-sensitive string and is used as a search key for a query to this table.)

Specified by:
getCardType in interface CreditCardCheckAccessBeanData
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

getCheckTaskName

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

This method provides access to the CCCHECK.CCALGTASKRN column of DB2 type VARCHAR(256) NULL.

The following is a description of this column:

The task command interface name to be called by the default CheckCCNumber task command to perform an algorithmic check of the credit card number after passing the length and prefix check. Example: com.ibm.commerce.payment.commands.DoLuhnCheckCmd

Specified by:
getCheckTaskName in interface CreditCardCheckAccessBeanData
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

getCreditCardReferenceNumber

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

This method provides access to the CCCHECK.CCRFNBR column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

This is the primary key. The combination of CCTYPE, CCLENGTH and CCPREFIX must be unique.

Specified by:
getCreditCardReferenceNumber in interface CreditCardCheckAccessBeanData
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

getCreditCardReferenceNumberInEJBType

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

This method provides access to the CCCHECK.CCRFNBR column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

This is the primary key. The combination of CCTYPE, CCLENGTH and CCPREFIX must be unique.

Returns:
java.lang.Integer
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

getLength

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

This method provides access to the CCCHECK.CCLENGTH column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

This is the credit card number length.

Specified by:
getLength in interface CreditCardCheckAccessBeanData
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

getLengthInEJBType

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

This method provides access to the CCCHECK.CCLENGTH column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

This is the credit card number length.

Returns:
java.lang.Integer
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

getPrefix

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

This method provides access to the CCCHECK.CCPREFIX column of DB2 type CHAR(16) NOT NULL.

The following is a description of this column:

This is the credit card prefix.

Specified by:
getPrefix in interface CreditCardCheckAccessBeanData
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
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

setCardType

public void setCardType(java.lang.String aCardType)

This method provides access to the CCCHECK.CCTYPE column of DB2 type VARCHAR(40) NOT NULL.

The following is a description of this column:

The credit card brand. (This is a case-sensitive string and is used as a search key for a query to this table.)

Specified by:
setCardType in interface CreditCardCheckAccessBeanData
Parameters:
aCardType - java.lang.String

setCheckTaskName

public void setCheckTaskName(java.lang.String aCheckTaskName)

This method provides access to the CCCHECK.CCALGTASKRN column of DB2 type VARCHAR(256) NULL.

The following is a description of this column:

The task command interface name to be called by the default CheckCCNumber task command to perform an algorithmic check of the credit card number after passing the length and prefix check. Example: com.ibm.commerce.payment.commands.DoLuhnCheckCmd

Specified by:
setCheckTaskName in interface CreditCardCheckAccessBeanData
Parameters:
aCheckTaskName - java.lang.String

setCreditCardReferenceNumber

public void setCreditCardReferenceNumber(java.lang.Integer aCreditCardReferenceNumber)

This method provides access to the CCCHECK.CCRFNBR column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

This is the primary key. The combination of CCTYPE, CCLENGTH and CCPREFIX must be unique.

Parameters:
aCreditCardReferenceNumber - java.lang.Integer

setCreditCardReferenceNumber

public void setCreditCardReferenceNumber(java.lang.String aCreditCardReferenceNumber)

This method provides access to the CCCHECK.CCRFNBR column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

This is the primary key. The combination of CCTYPE, CCLENGTH and CCPREFIX must be unique.

Specified by:
setCreditCardReferenceNumber in interface CreditCardCheckAccessBeanData
Parameters:
aCreditCardReferenceNumber - java.lang.String

setInitKey_creditCardReferenceNumber

public void setInitKey_creditCardReferenceNumber(java.lang.String aInitKey_creditCardReferenceNumber)

Sets the primary key for this object

Parameters:
aInitKey_creditCardReferenceNumber - The internal ID of the CreditCardCheck Table entry.

setLength

public void setLength(java.lang.Integer aLength)

This method provides access to the CCCHECK.CCLENGTH column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

This is the credit card number length.

Parameters:
aLength - java.lang.Integer

setLength

public void setLength(java.lang.String aLength)

This method provides access to the CCCHECK.CCLENGTH column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

This is the credit card number length.

Specified by:
setLength in interface CreditCardCheckAccessBeanData
Parameters:
aLength - java.lang.String

setPrefix

public void setPrefix(java.lang.String aPrefix)

This method provides access to the CCCHECK.CCPREFIX column of DB2 type CHAR(16) NOT NULL.

The following is a description of this column:

This is the credit card prefix.

Specified by:
setPrefix in interface CreditCardCheckAccessBeanData
Parameters:
aPrefix - java.lang.String