java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.negotiation.commands.RecordAuctionPaymentCmdImpl
RecordAuctionPayment adds a payment record for a bid to bidpayment table. This command uses the following AccessBeans:
BidAccessBean
BidPaymentAccessBean
Field Summary | |
---|---|
protected
java.math.BigDecimal |
amount Copyright statement. |
protected
java.lang.String |
bankName The name of the bank. |
protected
com.ibm.commerce.negotiation.objects.BidAccessBean |
bidAccessBean The access bean representing the bid. |
protected
java.lang.Long |
bidId The bid id. |
protected
java.lang.Long |
bidPaymentId The bid Payment record Id. |
protected
java.lang.String |
cardNumber The card Number |
protected
java.lang.String |
comment The comment. |
static java.lang.String |
COPYRIGHT Copyright statement. |
protected
java.lang.String |
encryptedPaymentInfo The encrypted payment info string. |
protected
int |
encryption The encryption. |
protected
java.sql.Timestamp |
expirationDate The Expiration Date. |
protected
java.lang.String |
payMethod The payment Method. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.negotiation.commands. RecordAuctionPaymentCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
RecordAuctionPaymentCmdImpl() RecordAuctionPaymentCmdImpl default constructor. |
Method Summary | |
---|---|
java.math.BigDecimal |
getAmount() getAmount method comment. |
com.ibm.commerce.negotiation.objects.BidAccessBean |
getBidAccessBean() Returns the access bean representing the bid. |
java.lang.Long |
getBidId() Get Bid Id. |
java.lang.Long |
getBidPaymentId() Get the Bid Payment record Id. |
java.lang.String |
getComment() Returns the comment. |
java.lang.String |
getEncryptedPaymentInfo() returns encrypted payment info string. |
int |
getEncryption() getEncryption method comment. |
int |
getPaymentType() Get the payment type value. |
boolean |
isReadyToCallExecute() Is the command ready to be executed. |
void |
performExecute() Execute the command. |
protected
void |
recordPayment() Creates or updates a payment record. |
void |
reset() Reset the command parameters. |
void |
setActionType(int actionType) Set the payment action type for Update an existing payment or create a new one. |
void |
setAmount(java.math.BigDecimal amt) set the pay amount. |
void |
setBidAccessBean(com.ibm.commerce.negotiation.objects.BidAccessBean newBidAccessBean) Stores the incoming access bean representing the bid. |
void |
setBidId(java.lang.Long bidid) set Bid Id. |
void |
setComment(java.lang.String newComment) set the Comment. |
void |
setEncryptedPaymentInfo(java.lang.String aName) Set encrypted payment string. |
void |
setEncryption(int encrypt) set Encryption. |
void |
setExpirationDate(java.sql.Timestamp aDate) set the Expiration Date. |
void |
setPaymentType(int paymentType) Set the payment type value. |
void |
setPayMethod(java.lang.String aMethod) set Payment Method (e.g. |
void |
validateParameters() Checks for the validity of the incoming parameters. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected java.math.BigDecimal amount
protected java.lang.String bankName
protected java.lang.Long bidId
protected java.lang.Long bidPaymentId
protected java.lang.String cardNumber
protected java.lang.String comment
protected int encryption
protected java.sql.Timestamp expirationDate
protected java.lang.String payMethod
protected com.ibm.commerce.negotiation.objects.BidAccessBean bidAccessBean
protected java.lang.String encryptedPaymentInfo
Constructor Detail |
---|
public RecordAuctionPaymentCmdImpl()
Method Detail |
---|
public java.math.BigDecimal getAmount()
getAmount
in interface
RecordAuctionPaymentCmd
public com.ibm.commerce.negotiation.objects.BidAccessBean getBidAccessBean()
public java.lang.Long getBidId()
getBidId
in interface
RecordAuctionPaymentCmd
public java.lang.Long getBidPaymentId()
getBidPaymentId
in interface
RecordAuctionPaymentCmd
public java.lang.String getComment()
RecordAuctionPaymentCmd
getComment
in interface
RecordAuctionPaymentCmd
public java.lang.String getEncryptedPaymentInfo()
getEncryptedPaymentInfo
in interface
RecordAuctionPaymentCmd
public int getEncryption()
getEncryption
in interface
RecordAuctionPaymentCmd
public int getPaymentType()
getPaymentType
in interface
RecordAuctionPaymentCmd
public boolean isReadyToCallExecute()
isReadyToCallExecute
in class
AbstractECTargetableCommand
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECApplicationException
- is raised with a generic application error
when there is a problem recording the payment.ECException
protected void recordPayment() throws java.lang.Exception
java.lang.Exception
public void reset()
reset
in class
AbstractECTargetableCommand
public void setActionType(int actionType)
setActionType
in interface
RecordAuctionPaymentCmd
actionType
- int - Create or Update.public void setAmount(java.math.BigDecimal amt)
setAmount
in interface
RecordAuctionPaymentCmd
amt
- The pay amount.public void setBidAccessBean(com.ibm.commerce.negotiation.objects.BidAccessBean newBidAccessBean)
newBidAccessBean
-public void setBidId(java.lang.Long bidid)
setBidId
in interface
RecordAuctionPaymentCmd
bidid
- The bid Id.public void setComment(java.lang.String newComment)
setComment
in interface
RecordAuctionPaymentCmd
newComment
-public void setEncryptedPaymentInfo(java.lang.String aName)
setEncryptedPaymentInfo
in interface
RecordAuctionPaymentCmd
aName
- java.lang.Stringpublic void setEncryption(int encrypt)
setEncryption
in interface
RecordAuctionPaymentCmd
encrypt
- The encryption, 1 for encryption, 0 for
no-encryption.public void setExpirationDate(java.sql.Timestamp aDate)
public void setPaymentType(int paymentType)
setPaymentType
in interface
RecordAuctionPaymentCmd
paymentType
-public void setPayMethod(java.lang.String aMethod)
aMethod
- The payment method (e.g. Visa, MasterCard,
etc.).public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECApplicationException
- The exception description.ECException