|
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.beasys.commerce.foundation.BelongingImpl
|
+--com.beasys.commerce.axiom.contact.CreditCardImpl
Information needed to submit a transaction to a credit card company on behalf of a customer.
CreditCard,
CreditCardHome, Serialized Form| Field Summary | |
Address |
billingAddress
Containment: By Value Multiplicity: 1:1 |
java.lang.String |
company
The name of the company if this is a corporate card. |
java.lang.String |
displayNumber
Display number in the form XXXX XXXX XXXX 1234. |
java.sql.Date |
expirationDate
The date on which the card expires. |
java.lang.String |
name
The name printed on the card. |
java.lang.String |
number
The account number for the card. |
java.lang.String |
type
The issuing authority for the account number (e.g. |
| Fields inherited from class com.beasys.commerce.foundation.BelongingImpl |
__classIdentifier, __containingBelonging, __containingEntity, __mapKey, __sequenceNumber, _isDirty |
| Constructor Summary | |
CreditCardImpl()
|
|
| Method Summary | |
int |
compareTo(java.lang.Object o)
Compare this belonging to another |
java.lang.String |
findCreditCardTypeFromNumber(java.lang.String creditCardNumber)
Determines the credit card type (as defined in CreditCardTypes) based on the credit card number. |
Address |
getBillingAddress()
Get the value of billingAddress |
java.lang.String |
getCompany()
Get the value of company |
java.lang.String |
getDisplayNumber()
Get the value of displayNumber |
java.sql.Date |
getExpirationDate()
Get the value of expirationDate |
java.lang.String |
getName()
Get the value of name |
java.lang.String |
getNumber()
Get the value of number |
java.lang.String |
getType()
Get the value of type |
java.lang.String |
interfaceName()
interfaceName() returns the unqualified name of the interface from the UML model |
void |
setBillingAddress(Address billingAddress)
Set the value of billingAddress |
void |
setByValue(Belonging value)
It is possible to call set-by-value with a superclass. |
void |
setCompany(java.lang.String company)
Set the value of company |
void |
setDisplayNumber(java.lang.String displayNumber)
Set the value of displayNumber |
void |
setExpirationDate(java.sql.Date expirationDate)
Set the value of expirationDate |
void |
setName(java.lang.String name)
Set the value of name |
void |
setNumber(java.lang.String number)
Set the value of number |
void |
setType(java.lang.String type)
Set the value of type |
boolean |
validate()
|
Belonging |
value()
value() is a more typesafe implementation of clone() |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.beasys.commerce.foundation.Belonging |
clone, equals |
| Field Detail |
public java.lang.String number
public Address billingAddress
public java.lang.String company
public java.lang.String type
public java.sql.Date expirationDate
public java.lang.String name
public java.lang.String displayNumber
| Constructor Detail |
public CreditCardImpl()
| Method Detail |
public java.lang.String getNumber()
getNumber in interface CreditCardpublic void setNumber(java.lang.String number)
setNumber in interface CreditCardnumber - number to be addedpublic Address getBillingAddress()
getBillingAddress in interface CreditCardpublic void setBillingAddress(Address billingAddress)
setBillingAddress in interface CreditCardbillingAddress - billingAddress to be addedpublic java.lang.String getCompany()
getCompany in interface CreditCardpublic void setCompany(java.lang.String company)
setCompany in interface CreditCardcompany - company to be addedpublic java.lang.String getType()
getType in interface CreditCardpublic void setType(java.lang.String type)
setType in interface CreditCardtype - type to be addedpublic java.sql.Date getExpirationDate()
getExpirationDate in interface CreditCardpublic void setExpirationDate(java.sql.Date expirationDate)
setExpirationDate in interface CreditCardexpirationDate - expirationDate to be addedpublic java.lang.String getName()
getName in interface CreditCardpublic void setName(java.lang.String name)
setName in interface CreditCardname - name to be addedpublic java.lang.String getDisplayNumber()
getDisplayNumber in interface CreditCardpublic void setDisplayNumber(java.lang.String displayNumber)
setDisplayNumber in interface CreditCarddisplayNumber - displayNumber to be addedpublic Belonging value()
value in interface Belongingpublic java.lang.String interfaceName()
interfaceName in interface Belongingpublic void setByValue(Belonging value)
It is also possible to call set-by-value with a subclass. In this case, the specialized fields in the subclass will be ignored. The overridden fields in the subclass will be populated.
setByValue in interface BelongingsetByValue in class BelongingImplcom.beasys.commerce.foundation.Belongingbelonging - The Belonging to use for initialization.public int compareTo(java.lang.Object o)
compareTo in interface java.lang.ComparablecompareTo in class BelongingImplo - target object for comparisionpublic boolean validate()
validate in interface CreditCard
public java.lang.String findCreditCardTypeFromNumber(java.lang.String creditCardNumber)
throws InvalidArgumentException
CreditCardfindCreditCardTypeFromNumber in interface CreditCardInvalidArgumentException -
|
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||