|
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 FormField 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)
|
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 |
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()
public void setNumber(java.lang.String number)
number
- number to be addedpublic Address getBillingAddress()
public void setBillingAddress(Address billingAddress)
billingAddress
- billingAddress to be addedpublic java.lang.String getCompany()
public void setCompany(java.lang.String company)
company
- company to be addedpublic java.lang.String getType()
public void setType(java.lang.String type)
type
- type to be addedpublic java.sql.Date getExpirationDate()
public void setExpirationDate(java.sql.Date expirationDate)
expirationDate
- expirationDate to be addedpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- name to be addedpublic java.lang.String getDisplayNumber()
public void setDisplayNumber(java.lang.String displayNumber)
displayNumber
- displayNumber to be addedpublic Belonging value()
public java.lang.String interfaceName()
public 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.
belonging
- The Belonging
to use for initialization.public int compareTo(java.lang.Object o)
o
- target object for comparisionpublic boolean validate()
public java.lang.String findCreditCardTypeFromNumber(java.lang.String creditCardNumber) throws InvalidArgumentException
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |