java.lang.Objectcom.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. This access bean corresponds to the database table 'CCCHECK'.
Constructor Summary | |
CreditCardCheckAccessBean() Zero argument constructor used to initialize the access bean. |
|
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 argType) 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 accesses a non-CMP field |
void | setCheckTaskName(java.lang.String newValue) This method accesses a non-CMP field |
void | setCreditCardReferenceNumber(java.lang.Integer newValue) This method accesses a non-CMP field |
void | setCreditCardReferenceNumber(java.lang.String newValue) This method accesses a non-CMP field |
void | setInitKey_creditCardReferenceNumber(java.lang.String newValue) Set the primary key for this object |
void | setLength(java.lang.Integer newValue) This method accesses a non-CMP field |
void | setLength(java.lang.String newValue) This method accesses a non-CMP field |
void | setPrefix(java.lang.String newValue) This method accesses a non-CMP field |
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
Method Detail |
public java.util.Enumeration findByType(java.lang.String argType) 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 = ?
public void setInitKey_creditCardReferenceNumber(java.lang.String newValue)
Set the primary key for this object
protected java.lang.String defaultJNDIName()
protected void instantiateEJB() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
protected boolean instantiateEJBByPrimaryKey() throws 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).
public void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Load data from the EJBObject.
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.
public void setPrefix(java.lang.String newValue)
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.
public void setCardType(java.lang.String newValue)
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.
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.
public void setLength(java.lang.String newValue)
public void setLength(java.lang.Integer newValue)
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.
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.
public void setCreditCardReferenceNumber(java.lang.String newValue)
public void setCreditCardReferenceNumber(java.lang.Integer newValue)
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
public void setCheckTaskName(java.lang.String newValue)
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.