FileDocCategorySizeDatePackage
CreditCard.javaAPI DocJBoss 4.2.12346Fri Jul 13 20:55:36 BST 2007xpetstore.domain

CreditCard

public class CreditCard extends Object implements Serializable
author
Herve Tchepannou

Fields Summary
public static final String
VISA
public static final String
MASTERCARD
public static final String
AMEX
private String
_number
private String
_type
private String
_expiryDate
Constructors Summary
public CreditCard()


    //~ Constructors -----------------------------------------------------------

       
    
        super(  );
    
public CreditCard(CreditCard cc)

        set( cc );
    
Methods Summary
public java.lang.StringgetExpiryDate()

return
String
hibernate.property
column="creditCardExpiryDate" length="10"

        return _expiryDate;
    
public java.lang.StringgetNumber()

return
String
hibernate.property
column="creditCardNumber" length="25"

        return _number;
    
public java.lang.StringgetType()

return
String
hibernate.property
column="creditCardType" length="25"

        return _type;
    
public voidset(xpetstore.domain.CreditCard cc)

        _type       = cc.getType(  );
        _number     = cc.getNumber(  );
        _expiryDate = cc.getExpiryDate(  );
    
public voidsetExpiryDate(java.lang.String expiryDate)
Sets the expiryDate.

param
expiryDate The expiryDate to set

        _expiryDate = expiryDate;
    
public voidsetNumber(java.lang.String number)
Sets the number.

param
number The number to set

        _number = number;
    
public voidsetType(java.lang.String type)
Sets the type.

param
type The type to set

        _type = type;