com.ibm.commerce.payment.objects
Class CreditCardCheckAccessBean

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

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

The Credit Card Check table stores the length and prefix of credit cards. This information is used by the default CheckCCNumber task command to help determine the validity of the credit card number. Initially, the CCCHECK table is empty. If no entry is found in the table for the credit card brand, the default CheckCCNumber task command calls the DoLuhnCheck task command.

See Also:
Serialized Form

Constructor Summary
CreditCardCheckAccessBean()
          constructor
CreditCardCheckAccessBean(javax.ejb.EJBObject o)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
 java.util.Enumeration findByType(java.lang.String arg0)
          Retrieves all the CreditCardCheckAccessBeans representing entries in the CCCHECK table for the specified credit card brand, also referred to as credit card argType.
 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).
 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.
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCardType(java.lang.String newValue)
          This method provides access to the CCCHECK.CCTYPE column of DB2 type VARCHAR(40) NOT NULL.
 void setCheckTaskName(java.lang.String newValue)
          This method provides access to the CCCHECK.CCALGTASKRN column of DB2 type VARCHAR(256).
 void setCreditCardReferenceNumber(java.lang.Integer newValue)
          This method provides access to the CCCHECK.CCRFNBR column of DB2 type INTEGER NOT NULL.
 void setCreditCardReferenceNumber(java.lang.String newValue)
          This method provides access to the CCCHECK.CCRFNBR column of DB2 type INTEGER NOT NULL.
 void setInitKey_creditCardReferenceNumber(java.lang.String newValue)
          Set the primary key for this object
 void setLength(java.lang.Integer newValue)
          This method provides access to the CCCHECK.CCLENGTH column of DB2 type INTEGER NOT NULL.
 void setLength(java.lang.String newValue)
          This method provides access to the CCCHECK.CCLENGTH column of DB2 type INTEGER NOT NULL.
 void setPrefix(java.lang.String newValue)
          This method provides access to the CCCHECK.CCPREFIX column of DB2 type CHAR(16) NOT NULL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreditCardCheckAccessBean

public CreditCardCheckAccessBean()
constructor

CreditCardCheckAccessBean

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

findByType

public java.util.Enumeration findByType(java.lang.String arg0)
                                 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 argType.

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

SELECT * FROM CCCHECK T1 WHERE T1.CCTYPE = ?

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

setInitKey_creditCardReferenceNumber

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

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setPrefix

public void setPrefix(java.lang.String newValue)

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

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setCardType

public void setCardType(java.lang.String newValue)

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

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setLength

public void setLength(java.lang.String newValue)

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

setLength

public void setLength(java.lang.Integer newValue)

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

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setCreditCardReferenceNumber

public void setCreditCardReferenceNumber(java.lang.String newValue)

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

setCreditCardReferenceNumber

public void setCreditCardReferenceNumber(java.lang.Integer newValue)

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

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).

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setCheckTaskName

public void setCheckTaskName(java.lang.String newValue)

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

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