com.ibm.commerce.negotiation.commands
Class RecordAuctionPaymentCmdImpl

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

public class RecordAuctionPaymentCmdImpl
extends TaskCommandImpl
implements RecordAuctionPaymentCmd

RecordAuctionPayment adds a payment record for a bid to bidpayment table.


Field Summary
protected  java.math.BigDecimal amount
           
protected  java.lang.String bankName
           
protected  BidAccessBean bidAccessBean
           
protected  java.lang.Long bidId
           
protected  java.lang.Long bidPaymentId
           
protected  java.lang.String cardNumber
           
protected  java.lang.String comment
           
protected  java.lang.String encryptedPaymentInfo
           
protected  int encryption
           
protected  java.sql.Timestamp expirationDate
           
protected  java.lang.String payMethod
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.negotiation.commands.RecordAuctionPaymentCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Constructor Summary
RecordAuctionPaymentCmdImpl()
          RecordAuctionPaymentCmdImpl default constructor.
 
Method Summary
 java.math.BigDecimal getAmount()
          getAmount method comment.
 BidAccessBean getBidAccessBean()
          Returns the access bean representing the bid.
 java.lang.Long getBidId()
          get Bid Id.
 java.lang.Long getBidPaymentId()
          get Bid Payment record Id.
 java.lang.String getComment()
          get 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(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.
 void validateParameters()
          Checks for the validity of the incoming parameters.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 

Field Detail

amount

protected java.math.BigDecimal amount

bankName

protected java.lang.String bankName

bidAccessBean

protected BidAccessBean bidAccessBean

bidId

protected java.lang.Long bidId

bidPaymentId

protected java.lang.Long bidPaymentId

cardNumber

protected java.lang.String cardNumber

comment

protected java.lang.String comment

encryptedPaymentInfo

protected java.lang.String encryptedPaymentInfo

encryption

protected int encryption

expirationDate

protected java.sql.Timestamp expirationDate

payMethod

protected java.lang.String payMethod
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
Following copied from interface: com.ibm.commerce.negotiation.commands.RecordAuctionPaymentCmd
Returns:
java.math.BigDecimal

getBidAccessBean

public 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
Following copied from interface: com.ibm.commerce.negotiation.commands.RecordAuctionPaymentCmd
Returns:
java.lang.Long

getBidPaymentId

public java.lang.Long getBidPaymentId()
get Bid Payment record Id.
Specified by:
getBidPaymentId in interface RecordAuctionPaymentCmd
Following copied from interface: com.ibm.commerce.negotiation.commands.RecordAuctionPaymentCmd
Returns:
java.lang.Long

getComment

public java.lang.String getComment()
get the comment.
Specified by:
getComment in interface RecordAuctionPaymentCmd
Following copied from interface: com.ibm.commerce.negotiation.commands.RecordAuctionPaymentCmd
Returns:
java.lang.String

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
Following copied from interface: com.ibm.commerce.negotiation.commands.RecordAuctionPaymentCmd
Returns:
int

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 AbstractECCommand
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 AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

recordPayment

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

reset

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

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
Following copied from interface: com.ibm.commerce.negotiation.commands.RecordAuctionPaymentCmd
Parameters:
amt - java.math.BigDecimal

setBidAccessBean

public void setBidAccessBean(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
Following copied from interface: com.ibm.commerce.negotiation.commands.RecordAuctionPaymentCmd
Parameters:
bidid - java.lang.Long

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
Following copied from interface: com.ibm.commerce.negotiation.commands.RecordAuctionPaymentCmd
Parameters:
encrypt - int

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.)

validateParameters

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