com.ibm.commerce.contract.commands
Interface CopyContractCmd

All Superinterfaces:
TaskCommand
All Known Implementing Classes:
CopyContractCmdImpl

public interface CopyContractCmd
extends TaskCommand

Copy a specified contract to a new contract (WebSphere Commerce Business Edition only). Calling commands: ContractCopy, ContractNewVersion


Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
static java.lang.String defaultCommandClassName
          The name of the default implementation class.
static java.lang.String NAME
          The name of this interface.
 
Method Summary
 java.lang.Long getNewContractId()
          Returns ID of the new contract.
 void setContractId(java.lang.Long contractId)
          Sets ID of the contract which will be copied from.
 void setContractMajorVersion(java.lang.Integer majorVersion)
          Sets the major version of the new contract.
 void setContractMinorVersion(java.lang.Integer minorVersion)
          Sets the minor version of the new contract.
 void setContractName(java.lang.String contractName)           Sets the name of the new contract.
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
The name of this interface.
See Also:
Constant Field Values

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
The name of the default implementation class.
See Also:
Constant Field Values
Method Detail

getNewContractId

public java.lang.Long getNewContractId()
Returns ID of the new contract.
Returns:
The ID of the new contract

setContractId

public void setContractId(java.lang.Long contractId)
Sets ID of the contract which will be copied from.
Parameters:
contractId - the ID of the original contract

setContractMajorVersion

public void setContractMajorVersion(java.lang.Integer majorVersion)
Sets the major version of the new contract.
Parameters:
majorVersion - the major version of the new contract

setContractMinorVersion

public void setContractMinorVersion(java.lang.Integer minorVersion)
Sets the minor version of the new contract.
Parameters:
minorVersion - the minor version of the new contract

setContractName

public void setContractName(java.lang.String contractName)
Sets the name of the new contract.
Parameters:
contractName - the name of the new contract