@Entity public class BankAccountPaymentImpl extends Object implements BankAccountPayment
| Modifier and Type | Field and Description |
|---|---|
protected String |
accountNumber |
protected EncryptionModule |
encryptionModule |
protected Long |
id |
protected String |
referenceNumber |
protected String |
routingNumber |
| Modifier | Constructor and Description |
|---|---|
protected |
BankAccountPaymentImpl()
Rather than constructing directly, use
SecureOrderPaymentService#create(org.broadleafcommerce.core.payment.service.type.PaymentType)
so that the appropriate EncryptionModule can be hooked up to this entity |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAccountNumber() |
EncryptionModule |
getEncryptionModule() |
Long |
getId() |
String |
getReferenceNumber()
The indirect link between non-secure data and the secure data represented here.
|
String |
getRoutingNumber() |
int |
hashCode() |
void |
setAccountNumber(String accountNumber) |
void |
setEncryptionModule(EncryptionModule encryptionModule)
Sets the encryption module used by to encrypt and decrypt the data saved in the blSecurePU persistence unit.
|
void |
setId(Long id) |
void |
setReferenceNumber(String referenceNumber)
Set the link between this secure entity and the
OrderPayment. |
void |
setRoutingNumber(String routingNumber) |
protected EncryptionModule encryptionModule
protected Long id
protected String referenceNumber
protected String accountNumber
protected String routingNumber
protected BankAccountPaymentImpl()
SecureOrderPaymentService#create(org.broadleafcommerce.core.payment.service.type.PaymentType)
so that the appropriate EncryptionModule can be hooked up to this entitypublic Long getId()
getId in interface BankAccountPaymentgetId in interface Referencedpublic void setId(Long id)
setId in interface BankAccountPaymentsetId in interface Referencedid - the id to setpublic String getReferenceNumber()
ReferencedThe indirect link between non-secure data and the secure data represented here. Since implementing entities should be in a separate persistence unit (blSecurePU), this is the only avenue to show a relationship between the two.
From the Order side of the domain, this is linked by OrderPayment.getReferenceNumber() on the
OrderPayment entity.
getReferenceNumber in interface ReferencedOrderPayment#getReferenceNumber()}public void setReferenceNumber(String referenceNumber)
ReferencedOrderPayment. This should not be null as this is requiredsetReferenceNumber in interface Referencedpublic String getAccountNumber()
getAccountNumber in interface BankAccountPaymentpublic void setAccountNumber(String accountNumber)
setAccountNumber in interface BankAccountPaymentpublic String getRoutingNumber()
getRoutingNumber in interface BankAccountPaymentpublic void setRoutingNumber(String routingNumber)
setRoutingNumber in interface BankAccountPaymentpublic EncryptionModule getEncryptionModule()
getEncryptionModule in interface ReferencedEncryptionModule used to encrypt and decrypt this secure information back and forthpublic void setEncryptionModule(EncryptionModule encryptionModule)
ReferencedSecureOrderPaymentService#findSecurePaymentInfo(String, org.broadleafcommerce.core.payment.service.type.PaymentType)
and SecureOrderPaymentService#create(org.broadleafcommerce.core.payment.service.type.PaymentType).setEncryptionModule in interface ReferencedSecureOrderPaymentService#findSecurePaymentInfo(String, org.broadleafcommerce.core.payment.service.type.PaymentType)},
SecureOrderPaymentService#create(org.broadleafcommerce.core.payment.service.type.PaymentType)}Copyright © 2014. All Rights Reserved.