com.ibm.commerce.utf.commands
Class ModifyRFQBasicInfoCmdImpl

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

public class ModifyRFQBasicInfoCmdImpl
extends TaskCommandImpl
implements ModifyRFQBasicInfoCmd

This is the default implementation of the ModifyRFQBasicInfoCmd.

This command uses the following AccessBeans:

See Also:
Serialized Form

Field Summary
 java.lang.Integer accessType
          RFQ Access Type.
 java.lang.Long accountId
          Account Id.
 java.sql.Timestamp duration
          RFQ Duration.
 java.lang.Integer endResult
          RFQ End Result.
 java.sql.Timestamp endTime
          RFQ End Time.
 java.lang.Integer languageId
          Language Id.
 java.lang.String longdesc
          RFQ Long Description.
 java.lang.Integer majorVersion
          RFQ Majir Version.
 java.lang.Integer markForDelete
          Markfordelete flag.
 java.lang.Integer minorVersion
          RFQ Minor Version.
 java.lang.String name
          RFQ Name.
 java.lang.Long nextOffering
          Next Offering Id.
 java.lang.Integer nextOfferingType
          Next Offering Type.
 java.lang.Integer numResponses
          Number of Responses.
 java.lang.Long offeringId
          Offering Id.
 java.lang.Long ownerId
          RFQ Owner Id.
 java.lang.Long previousOffering
          Previous Offering.
 java.lang.Integer previousOfferingType
          Previous Offering Type.
 java.lang.Integer roundNumber
          Round Number.
 java.lang.Integer ruleType
          Rule Type.
 java.lang.String shortdesc
          RFQ Short Description.
 java.lang.Integer stageNumber
          Stage Number.
 java.sql.Timestamp startTime
          RFQ Start Time.
 java.lang.Integer state
          RFQ State.
 java.lang.Long tradingEngine
          Trading Engine.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.utf.commands. ModifyRFQBasicInfoCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
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.Integer getRuleType()
          Gets the ruleType
 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 reset()
          Reset the command.
 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 setRuleType(java.lang.Integer newRuleType)
          Sets the ruleType
 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. AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

state

public java.lang.Integer state
RFQ State.

markForDelete

public java.lang.Integer markForDelete
Markfordelete flag.

endTime

public java.sql.Timestamp endTime
RFQ End Time.

startTime

public java.sql.Timestamp startTime
RFQ Start Time.

languageId

public java.lang.Integer languageId
Language Id.

longdesc

public java.lang.String longdesc
RFQ Long Description.

shortdesc

public java.lang.String shortdesc
RFQ Short Description.

majorVersion

public java.lang.Integer majorVersion
RFQ Majir Version.

minorVersion

public java.lang.Integer minorVersion
RFQ Minor Version.

name

public java.lang.String name
RFQ Name.

offeringId

public java.lang.Long offeringId
Offering Id.

ownerId

public java.lang.Long ownerId
RFQ Owner Id.

roundNumber

public java.lang.Integer roundNumber
Round Number.

stageNumber

public java.lang.Integer stageNumber
Stage Number.

tradingEngine

public java.lang.Long tradingEngine
Trading Engine.

accessType

public java.lang.Integer accessType
RFQ Access Type.

duration

public java.sql.Timestamp duration
RFQ Duration.

endResult

public java.lang.Integer endResult
RFQ End Result.

nextOffering

public java.lang.Long nextOffering
Next Offering Id.

nextOfferingType

public java.lang.Integer nextOfferingType
Next Offering Type.

numResponses

public java.lang.Integer numResponses
Number of Responses.

previousOffering

public java.lang.Long previousOffering
Previous Offering.

previousOfferingType

public java.lang.Integer previousOfferingType
Previous Offering Type.

ruleType

public java.lang.Integer ruleType
Rule Type.

accountId

public java.lang.Long accountId
Account Id.
Constructor Detail

ModifyRFQBasicInfoCmdImpl

public ModifyRFQBasicInfoCmdImpl()
ModifyRFQBasicInfoCmdImpl constructor comment.
Method Detail

reset

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

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 AbstractECTargetableCommand
Returns:
AccessVector - a vector of resource action pairs
Throws:
ECException
See Also:
ECCommand#getResources()

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 AbstractECTargetableCommand
Throws:
ECApplicationException - If an application error occurs while updating the RFQ.
ECSystemException - If a system error occurs while updating the RFQ
ECException
See Also:
ECCommand#performExecute()

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:
newLanguageId - 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:
newMajorVersion - 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:
newMarkForDelete - 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:
newMinorVersion - 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:
newStageNumber - 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 AbstractECTargetableCommand
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.
ECException
See Also:
ECCommand#validateParameters()

getRuleType

public java.lang.Integer getRuleType()
Gets the ruleType
Returns:
Returns a java.lang.Integer

setRuleType

public void setRuleType(java.lang.Integer newRuleType)
Sets the ruleType
Specified by:
setRuleType in interface ModifyRFQBasicInfoCmd
Parameters:
newRuleType - The closing type ID.