com.ibm.commerce.utf.commands
Class CreateRFQBasicInfoCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.TaskCommandImpl
-
- com.ibm.commerce.utf.commands.CreateRFQBasicInfoCmdImpl
-
- All Implemented Interfaces:
- com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CreateRFQBasicInfoCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
public class CreateRFQBasicInfoCmdImpl extends TaskCommandImpl implements CreateRFQBasicInfoCmd
Creates basic RFQ information.Behaviour
- Verifies that the mandatory parameters name , endTime, ownerId and languageId are present.
- Verifies that another RFQ with the same name does not exist in the system.
- Creates the RFQ object using the values provided for its various fields.
Exception conditions
- If the RFQname is not specified.
- If the RFQ closing date and time are not specified.
- If the RFQ owner is not specified.
- If a language identifier is not specified.
- If another RFQ already exists with the supplied name.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description java.lang.Integer
accessType
Access Type.java.lang.Long
accountId
Account Id.static java.lang.String
COPYRIGHT
IBM copyright notice field.java.sql.Timestamp
duration
Duration.java.lang.Integer
endResult
End Result.java.sql.Timestamp
endTime
End Time.java.lang.Long
field1
Custom field1java.lang.Integer
field2
Custom field2java.lang.String
field3
Custom field3java.lang.String
field4
Custom field4java.sql.Timestamp
field5
Custom field5java.sql.Timestamp
field6
Custom field6java.lang.Integer
languageId
Language Id.java.lang.String
longdesc
Long Description.java.lang.Integer
majorVersion
Major Version.java.lang.Integer
markForDelete
Markfordelete.java.lang.Integer
minorVersion
Minor Version.java.lang.String
name
RFQ Name.java.lang.Long
nextOffering
Next Offering.java.lang.Integer
nextOfferingType
Next Offering Type.java.lang.Integer
numResponses
Number of Responses.java.lang.Long
offeringId
Offering Id.java.lang.Long
ownerId
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
Short Description.java.lang.Integer
stageNumber
Stage Number.java.sql.Timestamp
startTime
Start Time.java.lang.Integer
state
RFQ State.java.lang.Long
tradingEngine
Trading Engine.java.lang.Integer
versionflags
Version Flag.-
Fields inherited from interface com.ibm.commerce.utf.commands.CreateRFQBasicInfoCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description CreateRFQBasicInfoCmdImpl()
Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description 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.Long
getField1()
Gets the field1 valuejava.lang.Integer
getField2()
Gets the field2 valuejava.lang.String
getField3()
Gets the field3 valuejava.lang.String
getField4()
Gets the field4 valuejava.sql.Timestamp
getField5()
Gets the field5 valuejava.sql.Timestamp
getField6()
Gets the field6 valuejava.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 ruleTypejava.lang.String
getShortdesc()
Retrieves a brief description of the RFQjava.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.java.lang.Integer
getVersionflags()
Gets the versionflagsvoid
performExecute()
Creates the RFQ object.
This method does the following:
Creates a new RFQ object. Creates a 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 incoming 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
setField1(java.lang.Long newField1)
Sets the field1 valuevoid
setField2(java.lang.Integer newField2)
Sets the field2 valuevoid
setField3(java.lang.String newField3)
Sets the field3 valuevoid
setField4(java.lang.String newField4)
Sets the field4 valuevoid
setField5(java.sql.Timestamp newField5)
Sets the field5 valuevoid
setField6(java.sql.Timestamp newField6)
Sets the field6 valuevoid
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 ruleTypevoid
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
setVersionflags(java.lang.Integer versionflags)
Sets the versionflagsvoid
validateParameters()
Checks for the validity of the incoming parameters.
This method does the following:
Verifies that a name has been provided for the RFQ. Verifies that the closing date and time has been specified. Verifies that ID of the RFQ owner has been provided. Verifies that a language identifier has been provided.-
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM copyright notice field.- See Also:
- Constant Field Values
-
state
public java.lang.Integer state
RFQ State.
-
markForDelete
public java.lang.Integer markForDelete
Markfordelete.
-
endTime
public java.sql.Timestamp endTime
End Time.
-
startTime
public java.sql.Timestamp startTime
Start Time.
-
languageId
public java.lang.Integer languageId
Language Id.
-
longdesc
public java.lang.String longdesc
Long Description.
-
shortdesc
public java.lang.String shortdesc
Short Description.
-
majorVersion
public java.lang.Integer majorVersion
Major Version.
-
minorVersion
public java.lang.Integer minorVersion
Minor Version.
-
name
public java.lang.String name
RFQ Name.
-
offeringId
public java.lang.Long offeringId
Offering Id.
-
ownerId
public java.lang.Long ownerId
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
Access Type.
-
duration
public java.sql.Timestamp duration
Duration.
-
endResult
public java.lang.Integer endResult
End Result.
-
nextOffering
public java.lang.Long nextOffering
Next Offering.
-
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.
-
versionflags
public java.lang.Integer versionflags
Version Flag.
-
accountId
public java.lang.Long accountId
Account Id.
-
field1
public java.lang.Long field1
Custom field1
-
field2
public java.lang.Integer field2
Custom field2
-
field3
public java.lang.String field3
Custom field3
-
field4
public java.lang.String field4
Custom field4
-
field5
public java.sql.Timestamp field5
Custom field5
-
field6
public java.sql.Timestamp field6
Custom field6
-
-
Constructor Detail
-
CreateRFQBasicInfoCmdImpl
public CreateRFQBasicInfoCmdImpl()
Default Constructor.
-
-
Method Detail
-
reset
public void reset()
Reset the command.- Specified by:
reset
in interfacecom.ibm.websphere.command.Command
- Overrides:
reset
in classAbstractECTargetableCommand
-
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 interfaceCreateRFQBasicInfoCmd
- 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.- Specified by:
getResources
in interfaceECCommand
- Overrides:
getResources
in classAbstractECTargetableCommand
- Returns:
- AccessVector - a vector of resource action pairs
- Throws:
ECException
ECApplicationException
- 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
Creates the RFQ object.
This method does the following:
- Creates a new RFQ object.
- Creates a trading agreement description for this RFQ.
- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECApplicationException
- If an application error occurs while creating the RFQ.ECSystemException
- If a system error occurs while creating 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 interfaceCreateRFQBasicInfoCmd
- 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 incoming account Id .- Specified by:
setAccountId
in interfaceCreateRFQBasicInfoCmd
- 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 interfaceCreateRFQBasicInfoCmd
- 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 interfaceCreateRFQBasicInfoCmd
- 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 interfaceCreateRFQBasicInfoCmd
- 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 interfaceCreateRFQBasicInfoCmd
- Parameters:
languageId
- The language iudentifier.
-
setLongdesc
public void setLongdesc(java.lang.String newLongdesc)
Stores the long description for the RFQ.- Specified by:
setLongdesc
in interfaceCreateRFQBasicInfoCmd
- 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 interfaceCreateRFQBasicInfoCmd
- 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 interfaceCreateRFQBasicInfoCmd
- 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 interfaceCreateRFQBasicInfoCmd
- Parameters:
minorVersion
- java.lang.Integer
-
setName
public void setName(java.lang.String newName)
Stores the name of the RFQ.- Specified by:
setName
in interfaceCreateRFQBasicInfoCmd
- 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 interfaceCreateRFQBasicInfoCmd
- 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 interfaceCreateRFQBasicInfoCmd
- 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 interfaceCreateRFQBasicInfoCmd
- 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 interfaceCreateRFQBasicInfoCmd
- Parameters:
newTradingid
- The trading agreement ID.
-
setOwnerId
public void setOwnerId(java.lang.Long newOwnerId)
Stores the RFQ Owner ID.- Specified by:
setOwnerId
in interfaceCreateRFQBasicInfoCmd
- 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 interfaceCreateRFQBasicInfoCmd
- 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 interfaceCreateRFQBasicInfoCmd
- 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 interfaceCreateRFQBasicInfoCmd
- 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 interfaceCreateRFQBasicInfoCmd
- 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 interfaceCreateRFQBasicInfoCmd
- 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 interfaceCreateRFQBasicInfoCmd
- 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 interfaceCreateRFQBasicInfoCmd
- 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 interfaceCreateRFQBasicInfoCmd
- 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:
- Verifies that a name has been provided for the RFQ.
- Verifies that the closing date and time has been specified.
- Verifies that ID of the RFQ owner has been provided.
- Verifies that a language identifier has been provided. The language identifier determines the language in which the descriptions are being stored.
- Verifies that the RFQ name is not in use already.
- Specified by:
validateParameters
in interfaceECCommand
- Overrides:
validateParameters
in classAbstractECTargetableCommand
- Throws:
ECApplicationException
-- If the name has not been provided.
- If the closing date and time has not been provided.
- If the owner ID has not been provided.
- If the language identifier has not been provided.
- If the RFQ name is found to be a duplicate.
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 interfaceCreateRFQBasicInfoCmd
- Parameters:
ruleType
- The ruleType to set
-
getVersionflags
public java.lang.Integer getVersionflags()
Gets the versionflags- Returns:
- Returns a java.lang.Integer
-
setVersionflags
public void setVersionflags(java.lang.Integer versionflags)
Sets the versionflags- Specified by:
setVersionflags
in interfaceCreateRFQBasicInfoCmd
- Parameters:
versionflags
- The versionflags to set
-
getField1
public java.lang.Long getField1()
Gets the field1 value- Returns:
- Returns a java.lang.Long
-
getField2
public java.lang.Integer getField2()
Gets the field2 value- Returns:
- Returns a java.lang.Integer
-
getField3
public java.lang.String getField3()
Gets the field3 value- Returns:
- Returns a java.lang.String
-
getField4
public java.lang.String getField4()
Gets the field4 value- Returns:
- Returns a java.lang.String
-
getField5
public java.sql.Timestamp getField5()
Gets the field5 value- Returns:
- Returns a java.sql.Timestamp
-
getField6
public java.sql.Timestamp getField6()
Gets the field6 value- Returns:
- Returns a java.sql.Timestamp
-
setField1
public void setField1(java.lang.Long newField1)
Sets the field1 value- Specified by:
setField1
in interfaceCreateRFQBasicInfoCmd
- Parameters:
field1
- The field1 value to set
-
setField2
public void setField2(java.lang.Integer newField2)
Sets the field2 value- Specified by:
setField2
in interfaceCreateRFQBasicInfoCmd
- Parameters:
field2
- The field2 value to set
-
setField3
public void setField3(java.lang.String newField3)
Sets the field3 value- Specified by:
setField3
in interfaceCreateRFQBasicInfoCmd
- Parameters:
field3
- The field3 value to set
-
setField4
public void setField4(java.lang.String newField4)
Sets the field4 value- Specified by:
setField4
in interfaceCreateRFQBasicInfoCmd
- Parameters:
field4
- The field4 value to set
-
setField5
public void setField5(java.sql.Timestamp newField5)
Sets the field5 value- Specified by:
setField5
in interfaceCreateRFQBasicInfoCmd
- Parameters:
field5
- The field5 value to set
-
setField6
public void setField6(java.sql.Timestamp newField6)
Sets the field6 value- Specified by:
setField6
in interfaceCreateRFQBasicInfoCmd
- Parameters:
field6
- The field6 value to set
-
-