com.ibm.commerce.utf.commands
Class ModifyRFQBasicInfoCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.utf.commands.ModifyRFQBasicInfoCmdImpl
All Implemented Interfaces:
ECCommand, ModifyRFQBasicInfoCmd, TaskCommand

public class ModifyRFQBasicInfoCmdImpl
extends TaskCommandImpl
implements ModifyRFQBasicInfoCmd

Task command implementation to update basic RFQ details.


Field Summary
 java.lang.Integer accessType
           
 java.lang.Long accountId
           
 java.sql.Timestamp duration
           
 java.lang.Integer endResult
           
 java.sql.Timestamp endTime
           
 java.lang.Integer languageId
           
 java.lang.String longdesc
           
 java.lang.Integer majorVersion
           
 java.lang.Integer markForDelete
           
 java.lang.Integer minorVersion
           
 java.lang.String name
           
 java.lang.Long nextOffering
           
 java.lang.Integer nextOfferingType
           
 java.lang.Integer numResponses
           
 java.lang.Long offeringId
           
 java.lang.Long ownerId
           
 java.lang.Long previousOffering
           
 java.lang.Integer previousOfferingType
           
 java.lang.Integer roundNumber
           
 java.lang.String shortdesc
           
 java.lang.Integer stageNumber
           
 java.sql.Timestamp startTime
           
 java.lang.Integer state
           
 java.lang.Long tradingEngine
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.utf.commands.ModifyRFQBasicInfoCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Constructor Summary
ModifyRFQBasicInfoCmdImpl()
          ModifyRFQBasicInfoCmdImpl constructor comment.
 
Method Summary
 java.lang.Integer getAccessType()
          Retrieves the accesstype of the RFQ.
 java.lang.Long getAccountId()
          Retrieves the account Id.
 java.sql.Timestamp getDuration()
          Retrieves the duration limit between successive responses.
 java.lang.Integer getEndResult()
          Retrieves an integer representing the expected outcome of this RFQ.
 java.sql.Timestamp getEndTime()
          Retrieves RFQ closing time.
 java.lang.Integer getLanguageId()
          Retrieves the identifier of the language in which the RFQ descriptions are being created.
 java.lang.String getLongdesc()
          Retrieves the long description for the RFQ.
 java.lang.Integer getMajorVersion()
          Retrieves the major version number of the RFQ.
 java.lang.Integer getMarkForDelete()
          Retrieves the value of the MarkForDelete flag.
 java.lang.Integer getMinorVersion()
          Retrieves the minor version number of the RFQ.
 java.lang.String getName()
          Retrieves the name of the RFQ.
 java.lang.Long getNextOffering()
          Retrieves the ID of the next offering in the chain, if the RFQ is a part of a multistage business process.
 java.lang.Integer getNextOfferingType()
          Retrieves the type of the next offering in the chain, if the RFQ is a part of a multistage business process.
 java.lang.Integer getNumResponses()
          Retrieves the limit for the number of responses.
 java.lang.Long getOfferingId()
          Retrieves the ID of the created RFQ.
 java.lang.Long getOwnerId()
          Retrieves the ID of the RFQ owner.
 java.lang.Long getPreviousOffering()
          Retrieves the ID of the previous offering in the chain, if the RFQ is a part of a multistage business process.
 java.lang.Integer getPreviousOfferingType()
          Retrieves the type of the previous offering in the chain, if the RFQ is a part of a multistage business process.
 AccessVector getResources()
          Gets the access vector accessed by this command.
 java.lang.Integer getRoundNumber()
          Retrieves the current round number of the RFQ.
 java.lang.String getShortdesc()
          Retrieves a brief description of the RFQ
 java.lang.Integer getStageNumber()
          Retrieves the stage number.
 java.sql.Timestamp getStartTime()
          Retrieves the effective date and time for this RFQ.
 java.lang.Integer getState()
          Retrieves an integer representing the RFQ state.
 java.lang.Long getTradingEngine()
          Retrieves the ID of the trading engine that manages the RFQ.
 void performExecute()
          Updates the RFQ object.
This method does the following:
Updates the RFQ object. Creates/Updates the trading agreement description for this RFQ.
 void setAccessType(java.lang.Integer newAccessType)
          Stores the accesstype of the RFQ.
 void setAccountId(java.lang.Long newAccountId)
          Stores the account ID.
 void setDuration(java.sql.Timestamp newDuration)
          Stores the duration limit between successive responses.
 void setEndResult(java.lang.Integer newEndResult)
          Stores an integer representing the expected outcome of this RFQ.
 void setEndTime(java.sql.Timestamp newEndTime)
          Stores the supplied value for the RFQ closing time.
 void setLanguageId(java.lang.Integer newLanguageId)
          Stores the language identifier.
 void setLongdesc(java.lang.String newLongdesc)
          Stores the long description for the RFQ.
 void setMajorVersion(java.lang.Integer newMajorVersion)
          Stores the major version number of the RFQ.
 void setMarkForDelete(java.lang.Integer newMarkForDelete)
          Stores the incoming value for the MarkForDelete flag.
 void setMinorVersion(java.lang.Integer newMinorVersion)
          Stores the minor version number of the RFQ.
 void setName(java.lang.String newName)
          Stores the name of the RFQ.
 void setNextOffering(java.lang.Long newNextOffering)
          Stores the ID of the next offering in the chain, if the RFQ is a part of a multistage business process.
 void setNextOfferingType(java.lang.Integer newNextOfferingType)
          Stores the type of the next offering in the chain, if the RFQ is a part of a multistage business process.
 void setNumResponses(java.lang.Integer newNumResponses)
          Stores the limit for the number of responses.
 void setOfferingId(java.lang.Long newOfferingId)
          Stores the trading agreement ID, which is the RFQ ID.
 void setOwnerId(java.lang.Long newOwnerId)
          Stores the RFQ Owner ID.
 void setPreviousOffering(java.lang.Long newPreviousOffering)
          Stores the ID of the previous offering in the chain, if the RFQ is a part of a multistage business process.
 void setPreviousOfferingType(java.lang.Integer newPreviousOfferingType)
          Stores the type of the previous offering in the chain, if the RFQ is a part of a multistage business process.
 void setRoundNumber(java.lang.Integer newRoundNumber)
          Stores the current round number of the RFQ.
 void setShortdesc(java.lang.String newShortdesc)
          Stores a brief description of the RFQ.
 void setStageNumber(java.lang.Integer newStageNumber)
          Stores the stage number.
 void setStartTime(java.sql.Timestamp newStartTime)
          Stores the effective date and time for this RFQ.
 void setState(java.lang.Integer newState)
          Stores an integer representing the RFQ state.
 void setTradingEngine(java.lang.Long newTradingEngine)
          Stores the ID of the trading engine that manages the RFQ.
 void validateParameters()
          Checks for the validity of the incoming parameters.
This method does the following:
Verifies that the RFQ ID has been provided and that it exists. If a new name has been provided for the RFQ, verifies that the name is not already in use.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, 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, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 

Field Detail

accessType

public java.lang.Integer accessType

accountId

public java.lang.Long accountId

duration

public java.sql.Timestamp duration

endResult

public java.lang.Integer endResult

endTime

public java.sql.Timestamp endTime

languageId

public java.lang.Integer languageId

longdesc

public java.lang.String longdesc

majorVersion

public java.lang.Integer majorVersion

markForDelete

public java.lang.Integer markForDelete

minorVersion

public java.lang.Integer minorVersion

name

public java.lang.String name

nextOffering

public java.lang.Long nextOffering

nextOfferingType

public java.lang.Integer nextOfferingType

numResponses

public java.lang.Integer numResponses

offeringId

public java.lang.Long offeringId

ownerId

public java.lang.Long ownerId

previousOffering

public java.lang.Long previousOffering

previousOfferingType

public java.lang.Integer previousOfferingType

roundNumber

public java.lang.Integer roundNumber

shortdesc

public java.lang.String shortdesc

stageNumber

public java.lang.Integer stageNumber

startTime

public java.sql.Timestamp startTime

state

public java.lang.Integer state

tradingEngine

public java.lang.Long tradingEngine
Constructor Detail

ModifyRFQBasicInfoCmdImpl

public ModifyRFQBasicInfoCmdImpl()
ModifyRFQBasicInfoCmdImpl constructor comment.
Method Detail

getAccessType

public java.lang.Integer getAccessType()
Retrieves the accesstype of the RFQ.
Returns:
The access type of the RFQ.

getAccountId

public java.lang.Long getAccountId()
Retrieves the account Id.
Returns:
The account Id.

getDuration

public java.sql.Timestamp getDuration()
Retrieves the duration limit between successive responses. Once this duration is past, the RFQ could be set up to close automatically.
Returns:
The duration limit between successive responses.

getEndResult

public java.lang.Integer getEndResult()
Retrieves an integer representing the expected outcome of this RFQ. An RFQ could result in further negotiation, a contract or an order.
Returns:
The end result of the RFQ.

getEndTime

public java.sql.Timestamp getEndTime()
Retrieves RFQ closing time.
Returns:
The RFQ closing time.

getLanguageId

public java.lang.Integer getLanguageId()
Retrieves the identifier of the language in which the RFQ descriptions are being created.
Returns:
The language identifier.

getLongdesc

public java.lang.String getLongdesc()
Retrieves the long description for the RFQ.
Returns:
The RFQ long description.

getMajorVersion

public java.lang.Integer getMajorVersion()
Retrieves the major version number of the RFQ.
Returns:
The RFQ major version number.

getMarkForDelete

public java.lang.Integer getMarkForDelete()
Retrieves the value of the MarkForDelete flag.
Returns:
The value of the MarkForDelete flag. "1" implies the RFQ is marked for delete. It will subsequently be cleaned up by the DBClean utility.

getMinorVersion

public java.lang.Integer getMinorVersion()
Retrieves the minor version number of the RFQ.
Returns:
The RFQ minor version.

getName

public java.lang.String getName()
Retrieves the name of the RFQ.
Returns:
The RFQ name.

getNextOffering

public java.lang.Long getNextOffering()
Retrieves the ID of the next offering in the chain, if the RFQ is a part of a multistage business process.
Returns:
The ID of the offering that follows this RFQ in a multistage business process.

getNextOfferingType

public java.lang.Integer getNextOfferingType()
Retrieves the type of the next offering in the chain, if the RFQ is a part of a multistage business process.
Returns:
The type of the offering that follows this RFQ in a multistage business process.

getNumResponses

public java.lang.Integer getNumResponses()
Retrieves the limit for the number of responses. Once this limit is exceeded, the RFQ could be set up to close automatically.
Returns:
The limit for the number of RFQ responses.

getOfferingId

public java.lang.Long getOfferingId()
Retrieves the ID of the created RFQ.
Specified by:
getOfferingId in interface ModifyRFQBasicInfoCmd
Returns:
The new RFQ ID.

getOwnerId

public java.lang.Long getOwnerId()
Retrieves the ID of the RFQ owner.
Returns:
The RFQ owner ID.

getPreviousOffering

public java.lang.Long getPreviousOffering()
Retrieves the ID of the previous offering in the chain, if the RFQ is a part of a multistage business process.
Returns:
The ID of the offering that this RFQ resulted from in a multistage business process.

getPreviousOfferingType

public java.lang.Integer getPreviousOfferingType()
Retrieves the type of the previous offering in the chain, if the RFQ is a part of a multistage business process.
Returns:
The type of the offering that this RFQ resulted from in a multistage business process.

getResources

public AccessVector getResources()
                          throws ECException
Gets the access vector accessed by this command. The default implementation returns null indicating that no protectable resource is accessed by this command. It is the responsibilities of the command writer to return the protectable primary resource(s) and the corresponding actions accessed by this command.

Specified by:
getResources in interface ECCommand
Overrides:
getResources in class AbstractECCommand
Returns:
AccessVector - a vector of resource action pairs

getRoundNumber

public java.lang.Integer getRoundNumber()
Retrieves the current round number of the RFQ. Several rounds of an RFQ might be conducted.
Returns:
The current round number of the RFQ.

getShortdesc

public java.lang.String getShortdesc()
Retrieves a brief description of the RFQ
Returns:
The RFQ short description.

getStageNumber

public java.lang.Integer getStageNumber()
Retrieves the stage number. The RFQ belongs to this stage number within a multistage business process.
Returns:
The stage this RFQ belongs to within a multistage business process.

getStartTime

public java.sql.Timestamp getStartTime()
Retrieves the effective date and time for this RFQ.
Returns:
The RFQ start date and time.

getState

public java.lang.Integer getState()
Retrieves an integer representing the RFQ state.
Returns:
The RFQ state represented by an integer.

getTradingEngine

public java.lang.Long getTradingEngine()
Retrieves the ID of the trading engine that manages the RFQ.
Returns:
The ID of the trading engine.

performExecute

public void performExecute()
                    throws ECException
Updates the RFQ object.
This method does the following:

Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Throws:
ECApplicationException - If an application error occurs while updating the RFQ.
ECSystemException - If a system error occurs while updating the RFQ.

setAccessType

public void setAccessType(java.lang.Integer newAccessType)
Stores the accesstype of the RFQ.
Specified by:
setAccessType in interface ModifyRFQBasicInfoCmd
Parameters:
newAccessType - The access type of the RFQ. The access type could be private or public.

setAccountId

public void setAccountId(java.lang.Long newAccountId)
Stores the account ID.
Specified by:
setAccountId in interface ModifyRFQBasicInfoCmd
Parameters:
newAccountId - The account Id.

setDuration

public void setDuration(java.sql.Timestamp newDuration)
Stores the duration limit between successive responses. Once this duration is past, it could be so set up that the RFQ automatically closes.
Specified by:
setDuration in interface ModifyRFQBasicInfoCmd
Parameters:
newDuration - The duration limit between successive responses.

setEndResult

public void setEndResult(java.lang.Integer newEndResult)
Stores an integer representing the expected outcome of this RFQ. An RFQ could result in further negotiation, a contract or an order.
Specified by:
setEndResult in interface ModifyRFQBasicInfoCmd
Parameters:
newEndResult - The end result of the RFQ.

setEndTime

public void setEndTime(java.sql.Timestamp newEndTime)
Stores the supplied value for the RFQ closing time.
Specified by:
setEndTime in interface ModifyRFQBasicInfoCmd
Parameters:
newEndTime - The closing date and time of the RFQ.

setLanguageId

public void setLanguageId(java.lang.Integer newLanguageId)
Stores the language identifier.
Specified by:
setLanguageId in interface ModifyRFQBasicInfoCmd
Parameters:
languageId - The language iudentifier.

setLongdesc

public void setLongdesc(java.lang.String newLongdesc)
Stores the long description for the RFQ.
Specified by:
setLongdesc in interface ModifyRFQBasicInfoCmd
Parameters:
newLongdesc - The RFQ long description.

setMajorVersion

public void setMajorVersion(java.lang.Integer newMajorVersion)
Stores the major version number of the RFQ.
Specified by:
setMajorVersion in interface ModifyRFQBasicInfoCmd
Parameters:
majorVersion - The major version number.

setMarkForDelete

public void setMarkForDelete(java.lang.Integer newMarkForDelete)
Stores the incoming value for the MarkForDelete flag.
Specified by:
setMarkForDelete in interface ModifyRFQBasicInfoCmd
Parameters:
markForDelete - The value of the MarkForDelete flag. "1" implies the RFQ is marked for delete. It will subsequently be cleaned up by the DBClean utility.

setMinorVersion

public void setMinorVersion(java.lang.Integer newMinorVersion)
Stores the minor version number of the RFQ.
Specified by:
setMinorVersion in interface ModifyRFQBasicInfoCmd
Parameters:
minorVersion - java.lang.Integer

setName

public void setName(java.lang.String newName)
Stores the name of the RFQ.
Specified by:
setName in interface ModifyRFQBasicInfoCmd
Parameters:
newName - The RFQ name.

setNextOffering

public void setNextOffering(java.lang.Long newNextOffering)
Stores the ID of the next offering in the chain, if the RFQ is a part of a multistage business process.
Specified by:
setNextOffering in interface ModifyRFQBasicInfoCmd
Parameters:
newNextOffering - The ID of the offering that results from this RFQ in a multistage process.

setNextOfferingType

public void setNextOfferingType(java.lang.Integer newNextOfferingType)
Stores the type of the next offering in the chain, if the RFQ is a part of a multistage business process.
Specified by:
setNextOfferingType in interface ModifyRFQBasicInfoCmd
Parameters:
newNextOfferingType - The type of the offering that follows this RFQ in a multistage process.

setNumResponses

public void setNumResponses(java.lang.Integer newNumResponses)
Stores the limit for the number of responses. If specified, once this limit is exceeded, the RFQ could be set up to close automatically.
Specified by:
setNumResponses in interface ModifyRFQBasicInfoCmd
Parameters:
newNumResponses - The limit for the number of RFQ responses.

setOfferingId

public void setOfferingId(java.lang.Long newOfferingId)
Stores the trading agreement ID, which is the RFQ ID.
Specified by:
setOfferingId in interface ModifyRFQBasicInfoCmd
Parameters:
newOfferingId - The trading agreement ID.

setOwnerId

public void setOwnerId(java.lang.Long newOwnerId)
Stores the RFQ Owner ID.
Specified by:
setOwnerId in interface ModifyRFQBasicInfoCmd
Parameters:
newOwnerid - The ID of the RFQ owner.

setPreviousOffering

public void setPreviousOffering(java.lang.Long newPreviousOffering)
Stores the ID of the previous offering in the chain, if the RFQ is a part of a multistage business process.
Specified by:
setPreviousOffering in interface ModifyRFQBasicInfoCmd
Parameters:
newPreviousOffering - The ID of the offering that this RFQ resulted from in a multistage process.

setPreviousOfferingType

public void setPreviousOfferingType(java.lang.Integer newPreviousOfferingType)
Stores the type of the previous offering in the chain, if the RFQ is a part of a multistage business process.
Specified by:
setPreviousOfferingType in interface ModifyRFQBasicInfoCmd
Parameters:
newPreviousOfferingType - The type of the offering that this RFQ resulted from in a multistage process.

setRoundNumber

public void setRoundNumber(java.lang.Integer newRoundNumber)
Stores the current round number of the RFQ. Several rounds of an RFQ might be conducted.
Specified by:
setRoundNumber in interface ModifyRFQBasicInfoCmd
Parameters:
newRoundNumber - The current rounD number of the RFQ.

setShortdesc

public void setShortdesc(java.lang.String newShortdesc)
Stores a brief description of the RFQ.
Specified by:
setShortdesc in interface ModifyRFQBasicInfoCmd
Parameters:
newShortdesc - The RFQ short description.

setStageNumber

public void setStageNumber(java.lang.Integer newStageNumber)
Stores the stage number. The RFQ belongs to this stage number within a multistage business process.
Specified by:
setStageNumber in interface ModifyRFQBasicInfoCmd
Parameters:
stageNumber - The stage this RFQ belongs to within a multistage business process.

setStartTime

public void setStartTime(java.sql.Timestamp newStartTime)
Stores the effective date and time for this RFQ.
Specified by:
setStartTime in interface ModifyRFQBasicInfoCmd
Parameters:
newStartTime - The RFQ start date and time.

setState

public void setState(java.lang.Integer newState)
Stores an integer representing the RFQ state.
Specified by:
setState in interface ModifyRFQBasicInfoCmd
Parameters:
newState - The RFQ state represented by an integer.

setTradingEngine

public void setTradingEngine(java.lang.Long newTradingEngine)
Stores the ID of the trading engine that manages the RFQ.
Specified by:
setTradingEngine in interface ModifyRFQBasicInfoCmd
Parameters:
newTradingengine - The ID of the trading engine.

validateParameters

public void validateParameters()
                        throws ECException
Checks for the validity of the incoming parameters.
This method does the following:
  1. Verifies that the RFQ ID has been provided and that it exists.
  2. If a new name has been provided for the RFQ, verifies that the name is not already in use.

Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECCommand
Throws:
ECApplicationException -
  • If the RFQ ID has not been provided.
  • If an RFQ with the given ID does not exist.
  • If the provided name is already in use by another RFQ.