public class PurchaseLimitBeanBase
extends com.ibm.commerce.base.objects.ECEntityBean
This bean provides access to the PURCHASELT table.
The following is a description of this table:
This table stores information on stipulations or limitations on how much a customer can purchase based on a Contract. This bean accesses the database table PURCHASELT
Modifier and Type | Field and Description |
---|---|
java.lang.Long | catEntryId |
java.lang.String | currency |
java.math.BigDecimal | currentAmount |
java.lang.Double | currentQuantity |
java.lang.String | limitType |
java.math.BigDecimal | maxAmount |
java.lang.Double | maxQuantity |
java.math.BigDecimal | minAmount |
java.lang.Double | minQuantity |
java.lang.Long | purchaseLimitId |
java.lang.Long | tcId |
java.lang.Long | tradingPositionContainerId |
Constructor and Description |
---|
PurchaseLimitBeanBase() |
Modifier and Type | Method and Description |
---|---|
com.ibm.commerce.contract.objects.PurchaseLimitKey | ejbCreate(java.lang.Long argTCId, java.lang.Long argTradingPositionContainerId, java.lang.Long argCatEntryId, java.lang.String argLimitType)
Constructs an PurchaseLimitAccessBean object with the specified term condition ID, trading position container ID, catalog entry ID, and the limit type.
|
void | ejbPostCreate(java.lang.Long argTCId, java.lang.Long argTradingPositionContainerId, java.lang.Long argCatEntryId, java.lang.String argLimitType)
The EJB post create method for the Purchase Limit bean
|
java.lang.Long | getCatEntryId()
This method provides access to the PURCHASELT.CATENTRY_ID column of DB2 type BIGINT NOT NULL.
|
java.lang.String | getCurrency()
This method provides access to the PURCHASELT.CURRENCY column of DB2 type CHAR(3) NULL.
|
java.math.BigDecimal | getCurrentAmount()
This method provides access to the PURCHASELT.CURRENTAMOUNT column of DB2 type DECIMAL(20,5) NULL.
|
java.lang.Double | getCurrentQuantity()
This method provides access to the PURCHASELT.CURRENTQUANTITY column of DB2 type DOUBLE NULL.
|
java.lang.String | getLimitType()
This method provides access to the PURCHASELT.LIMITTYPE column of DB2 type CHAR(1) NOT NULL.
|
java.math.BigDecimal | getMaxAmount()
This method provides access to the PURCHASELT.MAXAMOUNT column of DB2 type DECIMAL(20,5) NULL.
|
java.lang.Double | getMaxQuantity()
This method provides access to the PURCHASELT.MAXQUANTITY column of DB2 type DOUBLE NULL.
|
java.math.BigDecimal | getMinAmount()
This method provides access to the PURCHASELT.MINAMOUNT column of DB2 type DECIMAL(20,5) NULL.
|
java.lang.Double | getMinQuantity()
This method provides access to the PURCHASELT.MINQUANTITY column of DB2 type DOUBLE NULL.
|
java.lang.Long | getPurchaseLimitId()
This method provides access to the PURCHASELT.PURCHASELT_ID column of DB2 type BIGINT NOT NULL.
|
java.lang.Long | getTcId()
This method provides access to the PURCHASELT.TERMCOND_ID column of DB2 type BIGINT NOT NULL.
|
java.lang.Long | getTradingPositionContainerId()
This method provides access to the PURCHASELT.TRADEPOSCN_ID column of DB2 type BIGINT NOT NULL.
|
void | setCatEntryId(java.lang.Long newValue)
This method provides access to the PURCHASELT.CATENTRY_ID column of DB2 type BIGINT NOT NULL.
|
void | setCurrency(java.lang.String newValue)
This method provides access to the PURCHASELT.CURRENCY column of DB2 type CHAR(3) NULL.
|
void | setCurrentAmount(java.math.BigDecimal newValue)
This method provides access to the PURCHASELT.CURRENTAMOUNT column of DB2 type DECIMAL(20,5) NULL.
|
void | setCurrentQuantity(java.lang.Double newValue)
This method provides access to the PURCHASELT.CURRENTQUANTITY column of DB2 type DOUBLE NULL.
|
void | setLimitType(java.lang.String newValue)
This method provides access to the PURCHASELT.LIMITTYPE column of DB2 type CHAR(1) NOT NULL.
|
void | setMaxAmount(java.math.BigDecimal newValue)
This method provides access to the PURCHASELT.MAXAMOUNT column of DB2 type DECIMAL(20,5) NULL.
|
void | setMaxQuantity(java.lang.Double newValue)
This method provides access to the PURCHASELT.MAXQUANTITY column of DB2 type DOUBLE NULL.
|
void | setMinAmount(java.math.BigDecimal newValue)
This method provides access to the PURCHASELT.MINAMOUNT column of DB2 type DECIMAL(20,5) NULL.
|
void | setMinQuantity(java.lang.Double newValue)
This method provides access to the PURCHASELT.MINQUANTITY column of DB2 type DOUBLE NULL.
|
void | setPurchaseLimitId(java.lang.Long newValue)
This method provides access to the PURCHASELT.PURCHASELT_ID column of DB2 type BIGINT NOT NULL.
|
void | setTcId(java.lang.Long newValue)
This method provides access to the PURCHASELT.TERMCOND_ID column of DB2 type BIGINT NOT NULL.
|
void | setTradingPositionContainerId(java.lang.Long newValue)
This method provides access to the PURCHASELT.TRADEPOSCN_ID column of DB2 type BIGINT NOT NULL.
|
public java.lang.Long purchaseLimitId
public java.lang.Long tcId
public java.lang.Long tradingPositionContainerId
public java.lang.Long catEntryId
public java.lang.String currency
public java.lang.String limitType
public java.math.BigDecimal maxAmount
public java.math.BigDecimal minAmount
public java.math.BigDecimal currentAmount
public java.lang.Double maxQuantity
public java.lang.Double minQuantity
public java.lang.Double currentQuantity
public com.ibm.commerce.contract.objects.PurchaseLimitKey ejbCreate(java.lang.Long argTCId, java.lang.Long argTradingPositionContainerId, java.lang.Long argCatEntryId, java.lang.String argLimitType) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void ejbPostCreate(java.lang.Long argTCId, java.lang.Long argTradingPositionContainerId, java.lang.Long argCatEntryId, java.lang.String argLimitType)
public java.lang.Long getCatEntryId()
This method provides access to the PURCHASELT.CATENTRY_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
The CatalogEntry offered for sale.
public java.lang.String getCurrency()
This method provides access to the PURCHASELT.CURRENCY column of DB2 type CHAR(3) NULL.
The following is a description of this column:
The Currency of the minimum or maximum amount. This is a currency code as per ISO 4217 standards.
public java.math.BigDecimal getCurrentAmount()
This method provides access to the PURCHASELT.CURRENTAMOUNT column of DB2 type DECIMAL(20,5) NULL.
The following is a description of this column:
Current purchase amount.
public java.lang.Double getCurrentQuantity()
This method provides access to the PURCHASELT.CURRENTQUANTITY column of DB2 type DOUBLE NULL.
The following is a description of this column:
Current purchase quantity.
public java.lang.String getLimitType()
This method provides access to the PURCHASELT.LIMITTYPE column of DB2 type CHAR(1) NOT NULL.
The following is a description of this column:
Indicates the type of limit:
0 = by quantity or 1 = by amount.
public java.math.BigDecimal getMaxAmount()
This method provides access to the PURCHASELT.MAXAMOUNT column of DB2 type DECIMAL(20,5) NULL.
The following is a description of this column:
Maximum purchase amount.
public java.lang.Double getMaxQuantity()
This method provides access to the PURCHASELT.MAXQUANTITY column of DB2 type DOUBLE NULL.
The following is a description of this column:
Maximum purchase quantity.
public java.math.BigDecimal getMinAmount()
This method provides access to the PURCHASELT.MINAMOUNT column of DB2 type DECIMAL(20,5) NULL.
The following is a description of this column:
Minimum purchase amount.
public java.lang.Double getMinQuantity()
This method provides access to the PURCHASELT.MINQUANTITY column of DB2 type DOUBLE NULL.
The following is a description of this column:
Minimum purchase quantity.
public java.lang.Long getPurchaseLimitId()
This method provides access to the PURCHASELT.PURCHASELT_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
The internal reference number, and the Primary key.
public java.lang.Long getTcId()
This method provides access to the PURCHASELT.TERMCOND_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
The TermAndCondition ID.
public java.lang.Long getTradingPositionContainerId()
This method provides access to the PURCHASELT.TRADEPOSCN_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
The purchase limit is part of this TradingPositionContainer .
public void setCatEntryId(java.lang.Long newValue)
This method provides access to the PURCHASELT.CATENTRY_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
The CatalogEntry offered for sale.
public void setCurrency(java.lang.String newValue)
This method provides access to the PURCHASELT.CURRENCY column of DB2 type CHAR(3) NULL.
The following is a description of this column:
The Currency of the minimum or maximum amount. This is a currency code as per ISO 4217 standards.
public void setCurrentAmount(java.math.BigDecimal newValue)
This method provides access to the PURCHASELT.CURRENTAMOUNT column of DB2 type DECIMAL(20,5) NULL.
The following is a description of this column:
Current purchase amount.
public void setCurrentQuantity(java.lang.Double newValue)
This method provides access to the PURCHASELT.CURRENTQUANTITY column of DB2 type DOUBLE NULL.
The following is a description of this column:
Current purchase quantity.
public void setLimitType(java.lang.String newValue)
This method provides access to the PURCHASELT.LIMITTYPE column of DB2 type CHAR(1) NOT NULL.
The following is a description of this column:
Indicates the type of limit:
0 = by quantity or 1 = by amount.
public void setMaxAmount(java.math.BigDecimal newValue)
This method provides access to the PURCHASELT.MAXAMOUNT column of DB2 type DECIMAL(20,5) NULL.
The following is a description of this column:
Maximum purchase amount.
public void setMaxQuantity(java.lang.Double newValue)
This method provides access to the PURCHASELT.MAXQUANTITY column of DB2 type DOUBLE NULL.
The following is a description of this column:
Maximum purchase quantity.
public void setMinAmount(java.math.BigDecimal newValue)
This method provides access to the PURCHASELT.MINAMOUNT column of DB2 type DECIMAL(20,5) NULL.
The following is a description of this column:
Minimum purchase amount.
public void setMinQuantity(java.lang.Double newValue)
This method provides access to the PURCHASELT.MINQUANTITY column of DB2 type DOUBLE NULL.
The following is a description of this column:
Minimum purchase quantity.
public void setPurchaseLimitId(java.lang.Long newValue)
This method provides access to the PURCHASELT.PURCHASELT_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
The internal reference number, and the Primary key.
public void setTcId(java.lang.Long newValue)
This method provides access to the PURCHASELT.TERMCOND_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
The TermAndCondition ID.
public void setTradingPositionContainerId(java.lang.Long newValue)
This method provides access to the PURCHASELT.TRADEPOSCN_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
The purchase limit is part of this TradingPositionContainer .