com.ibm.commerce.negotiation.commands
Class RecordAuctionPaymentCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.negotiation.commands.RecordAuctionPaymentCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, RecordAuctionPaymentCmd, TaskCommand
Direct Known Subclasses:
DoDepositPaymentCmdImpl

public class RecordAuctionPaymentCmdImpl
extends TaskCommandImpl
implements RecordAuctionPaymentCmd

RecordAuctionPayment adds a payment record for a bid to bidpayment table. This command uses the following AccessBeans:

See Also:
Serialized Form

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
Copyright statement.
See Also:
Constant Field Values

amount

protected java.math.BigDecimal amount
Copyright statement.

bankName

protected java.lang.String bankName
The name of the bank.

bidId

protected java.lang.Long bidId
The bid id.

bidPaymentId

protected java.lang.Long bidPaymentId
The bid Payment record Id.

cardNumber

protected java.lang.String cardNumber
The card Number

comment

protected java.lang.String comment
The comment.

encryption

protected int encryption
The encryption. 1 for encryption, 0 for no-encryption.

expirationDate

protected java.sql.Timestamp expirationDate
The Expiration Date.

payMethod

protected java.lang.String payMethod
The payment Method. (e.g. Visa, MasterCard, etc.)

bidAccessBean

protected com.ibm.commerce.negotiation.objects.BidAccessBean bidAccessBean
The access bean representing the bid.

encryptedPaymentInfo

protected java.lang.String encryptedPaymentInfo
The encrypted payment info string.
Constructor Detail

RecordAuctionPaymentCmdImpl

public RecordAuctionPaymentCmdImpl()
RecordAuctionPaymentCmdImpl default constructor.
Method Detail

getAmount

public java.math.BigDecimal getAmount()
getAmount method comment.
Specified by:
getAmount in interface RecordAuctionPaymentCmd
Returns:
The pay amount.

getBidAccessBean

public com.ibm.commerce.negotiation.objects.BidAccessBean getBidAccessBean()
Returns the access bean representing the bid.
Returns:
com.ibm.commerce.negotiation.objects.BidAccessBean

getBidId

public java.lang.Long getBidId()
Get Bid Id.
Specified by:
getBidId in interface RecordAuctionPaymentCmd
Returns:
The bid ID.

getBidPaymentId

public java.lang.Long getBidPaymentId()
Get the Bid Payment record Id.
Specified by:
getBidPaymentId in interface RecordAuctionPaymentCmd
Returns:
The bid payment ID.

getComment

public java.lang.String getComment()
Description copied from interface: RecordAuctionPaymentCmd
Returns the comment.
Specified by:
getComment in interface RecordAuctionPaymentCmd
Returns:
The comment.

getEncryptedPaymentInfo

public java.lang.String getEncryptedPaymentInfo()
returns encrypted payment info string.
Specified by:
getEncryptedPaymentInfo in interface RecordAuctionPaymentCmd
Returns:
java.lang.String

getEncryption

public int getEncryption()
getEncryption method comment.
Specified by:
getEncryption in interface RecordAuctionPaymentCmd
Returns:
The encryption method.

getPaymentType

public int getPaymentType()
Get the payment type value.
Specified by:
getPaymentType in interface RecordAuctionPaymentCmd
Returns:
paymentType int -

isReadyToCallExecute

public boolean isReadyToCallExecute()
Is the command ready to be executed.
Overrides:
isReadyToCallExecute in class AbstractECTargetableCommand
Returns:
true if the command is ready, false otherwise.

performExecute

public void performExecute()
                    throws ECException
Execute the command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECApplicationException - is raised with a generic application error when there is a problem recording the payment.
ECException

recordPayment

protected void recordPayment()
                      throws java.lang.Exception
Creates or updates a payment record.
Throws:
java.lang.Exception

reset

public void reset()
Reset the command parameters.
Overrides:
reset in class AbstractECTargetableCommand

setActionType

public void setActionType(int actionType)
Set the payment action type for Update an existing payment or create a new one.
Specified by:
setActionType in interface RecordAuctionPaymentCmd
Parameters:
actionType - int - Create or Update.

setAmount

public void setAmount(java.math.BigDecimal amt)
set the pay amount.
Specified by:
setAmount in interface RecordAuctionPaymentCmd
Parameters:
amt - The pay amount.

setBidAccessBean

public void setBidAccessBean(com.ibm.commerce.negotiation.objects.BidAccessBean newBidAccessBean)
Stores the incoming access bean representing the bid.
Parameters:
newBidAccessBean -

setBidId

public void setBidId(java.lang.Long bidid)
set Bid Id.
Specified by:
setBidId in interface RecordAuctionPaymentCmd
Parameters:
bidid - The bid Id.

setComment

public void setComment(java.lang.String newComment)
set the Comment.
Specified by:
setComment in interface RecordAuctionPaymentCmd
Parameters:
newComment -

setEncryptedPaymentInfo

public void setEncryptedPaymentInfo(java.lang.String aName)
Set encrypted payment string.
Specified by:
setEncryptedPaymentInfo in interface RecordAuctionPaymentCmd
Parameters:
aName - java.lang.String

setEncryption

public void setEncryption(int encrypt)
set Encryption. 1 for encryption, 0 for no-encryption.
Specified by:
setEncryption in interface RecordAuctionPaymentCmd
Parameters:
encrypt - The encryption, 1 for encryption, 0 for no-encryption.

setExpirationDate

public void setExpirationDate(java.sql.Timestamp aDate)
set the Expiration Date.

setPaymentType

public void setPaymentType(int paymentType)
Set the payment type value. 1 for deposit, 2 for order payment
Specified by:
setPaymentType in interface RecordAuctionPaymentCmd
Parameters:
paymentType -

setPayMethod

public void setPayMethod(java.lang.String aMethod)
set Payment Method (e.g. Visa, MasterCard, etc.).
Parameters:
aMethod - The payment method (e.g. Visa, MasterCard, etc.).

validateParameters

public void validateParameters()
                        throws ECException
Checks for the validity of the incoming parameters.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECApplicationException - The exception description.
ECException