java.lang.Object | +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean | +--com.ibm.commerce.payment.objects.CreditCardCheckAccessBean
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.
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 |
---|
public CreditCardCheckAccessBean()
public CreditCardCheckAccessBean(javax.ejb.EJBObject o) throws java.rmi.RemoteException
o
- javax.ejb.EJBObjectjava.rmi.RemoteException
Method Detail |
---|
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 = ?
java.rmi.RemoteException
- The java.rmi.RemoteException
exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException
exceptionjavax.naming.NamingException
public void setInitKey_creditCardReferenceNumber(java.lang.String newValue)
Set the primary key for this object
newValue
- java.lang.Stringprotected java.lang.String defaultJNDIName()
protected void instantiateEJB() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException
protected boolean instantiateEJBByPrimaryKey() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.naming.NamingException
java.rmi.RemoteException
javax.ejb.CreateException
javax.naming.NamingException
public void commitCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Update(flush) data to the EJBObject (persistent storage).
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
public void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Load data from the EJBObject.
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
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.
getPrefix
in interface
CreditCardCheckAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
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.
setPrefix
in interface
CreditCardCheckAccessBeanData
newValue
- java.lang.Stringpublic 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.
getCardType
in interface
CreditCardCheckAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
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.
setCardType
in interface
CreditCardCheckAccessBeanData
newValue
- java.lang.Stringpublic 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.
getLength
in interface
CreditCardCheckAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
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.
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
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.
setLength
in interface
CreditCardCheckAccessBeanData
newValue
- Stringpublic 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.
newValue
- java.lang.Integerpublic 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.
getCreditCardReferenceNumber
in interface
CreditCardCheckAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
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.
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
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.
setCreditCardReferenceNumber
in interface
CreditCardCheckAccessBeanData
newValue
- Stringpublic 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.
newValue
- java.lang.Integerpublic 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
getCheckTaskName
in interface
CreditCardCheckAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException
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
setCheckTaskName
in interface
CreditCardCheckAccessBeanData
newValue
- java.lang.String