public class ContractPrice extends Session
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static java.lang.String | PROP_CONTRACT_DESCRIPTION
Constant for the contract id property name.
|
static java.lang.String | PROP_CONTRACT_ID
Constant for the contract id property name.
|
static java.lang.String | PROP_UNIT_PRICE
Constant for the unit price property name.
|
Constructor and Description |
---|
ContractPrice()
Construct a new contract price.
|
Modifier and Type | Method and Description |
---|---|
int | compareUnitPrice(ContractPrice otherContractPrice)
Compares this contract price to the specified price.
|
java.lang.String | getContractDescription()
This method is a convenience method for retrieving the current setting of the "shortDescription" property.
|
java.lang.String | getContractId()
This method is a convenience method for retrieving the current setting of the "paroductId" property.
|
java.lang.String | getUnitPrice()
This method is a convenience method for retrieving the current setting of the "unitPrice" property.
|
void | setContractDescription(java.lang.String contractDescription)
This method is a convenience method for setting the "shortDescription" property.
|
void | setContractId(java.lang.String contractId)
This method is a convenience method for setting the "productId" property.
|
void | setUnitPrice(java.lang.String unitPrice)
This method is a convenience method for setting the "unitPrice" property.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String PROP_UNIT_PRICE
The value is "unitPrice".
The data stored under the "unitPrice" property is a String that contains the manufacturer's unit price.
public static final java.lang.String PROP_CONTRACT_ID
The value is "contractId".
The data stored under the "contractId" property is a String that contains the contract id.
public static final java.lang.String PROP_CONTRACT_DESCRIPTION
The value is "contractDesc".
The data stored under the "contractDesc" property is a String that contains the contract description.
public java.lang.String getUnitPrice()
public java.lang.String getContractDescription()
public java.lang.String getContractId()
public void setUnitPrice(java.lang.String unitPrice)
public void setContractId(java.lang.String contractId)
public void setContractDescription(java.lang.String contractDescription)
public int compareUnitPrice(ContractPrice otherContractPrice)