public class CopyContractCmdImpl extends TaskCommandImpl implements CopyContractCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
The name of this class.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
CopyContractCmdImpl() |
Modifier and Type | Method and Description |
---|---|
void | createNewContract()
Creates a new contract based on an existing contract.
|
void | createNewVersionInContractChildTable()
Copys other contract related data for the new contract based on the existing contract.
|
void | createNewVersionInTCChildTable(java.lang.Long newTCId, java.lang.Long originalTCId)
Copys terms and conditions related data for the new contract based on the existing contract.
|
java.lang.Long | getNewContractId()
Returns ID of the new contract.
|
void | performExecute()
Executes the business logic of this command implementation.
|
void | setAccountId(java.lang.Long anAccountId)
Sets the ID of the account to which the contract will be copied.
|
void | setContractId(java.lang.Long anContractId)
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.
|
void | validateParameters()
Validates if the id of the original contract was provided.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public void createNewContract() throws javax.ejb.CreateException, javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException, java.sql.SQLException
public void createNewVersionInContractChildTable() throws javax.ejb.CreateException, javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException
public void createNewVersionInTCChildTable(java.lang.Long newTCId, java.lang.Long originalTCId) throws javax.ejb.CreateException, javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException
public java.lang.Long getNewContractId()
public void performExecute() throws ECException
public void setContractId(java.lang.Long anContractId)
public void setContractMajorVersion(java.lang.Integer majorVersion)
public void setContractMinorVersion(java.lang.Integer minorVersion)
public void setContractName(java.lang.String contractName)
public void setAccountId(java.lang.Long anAccountId)
public void validateParameters() throws ECException