com.ibm.commerce.contract.objimpl
Class PurchaseLimitBeanBase

java.lang.Object
  |
  +--com.ibm.commerce.base.objects.ECEntityBean
        |
        +--com.ibm.commerce.contract.objimpl.PurchaseLimitBeanBase
Direct Known Subclasses:
PurchaseLimitBean

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:

The Purchase Limit table.

See Also:
Serialized Form

Field Summary
 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 Summary
PurchaseLimitBeanBase()
           
 
Method Summary
 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, ant 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

purchaseLimitId

public java.lang.Long purchaseLimitId

tcId

public java.lang.Long tcId

tradingPositionContainerId

public java.lang.Long tradingPositionContainerId

catEntryId

public java.lang.Long catEntryId

currency

public java.lang.String currency

limitType

public java.lang.String limitType

maxAmount

public java.math.BigDecimal maxAmount

minAmount

public java.math.BigDecimal minAmount

currentAmount

public java.math.BigDecimal currentAmount

maxQuantity

public java.lang.Double maxQuantity

minQuantity

public java.lang.Double minQuantity

currentQuantity

public java.lang.Double currentQuantity
Constructor Detail

PurchaseLimitBeanBase

public PurchaseLimitBeanBase()
Method Detail

ejbCreate

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
Constructs an PurchaseLimitAccessBean object with the specified term condition ID, trading position container ID, catalog entry ID, ant the limit type.
Parameters:
argTCId - The ID of the terms and conditions.
argTradingPositionContainerId - The ID of the trading position container, or price list.
argCatEntryId - The ID of the catalog entry.
argLimitType - The type of limit.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception.
javax.ejb.FinderException - The javax.ejb.FinderException exception.
javax.naming.NamingException - The javax.naming.NamingException exception.

ejbPostCreate

public 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
Parameters:
argTCId - The ID of the terms and conditions.
argTradingPositionContainerId - The ID of the trading position container, or price list.
argCatEntryId - The ID of the catalog entry.
argLimitType - The type of limit.

getCatEntryId

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.

Returns:
The ID of the catalog entry.

getCurrency

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.

Returns:
The currency type.

getCurrentAmount

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.

Returns:
The current purchase amount.

getCurrentQuantity

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.

Returns:
The current purchase quantity.

getLimitType

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.

Returns:
The type of limit.

getMaxAmount

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.

Returns:
The maximum purchase amount.

getMaxQuantity

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.

Returns:
The maximum purchase quantity.

getMinAmount

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.

Returns:
The minimum purchase amount.

getMinQuantity

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.

Returns:
The minimum purchase quantity.

getPurchaseLimitId

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.

Returns:
The ID of the purchase limit.

getTcId

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.

Returns:
The ID of the terms and conditions.

getTradingPositionContainerId

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.

Returns:
The ID of the trading position container, or price list.

setCatEntryId

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.

Parameters:
newValue - The ID of the catalog entry.

setCurrency

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.

Parameters:
newValue - The currency type.

setCurrentAmount

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.

Parameters:
newValue - The current purchase amount.

setCurrentQuantity

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.

Parameters:
newValue - The current purchase quantity.

setLimitType

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.

Parameters:
newValue - The type of limit.

setMaxAmount

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.

Parameters:
newValue - The maximum purchase amount.

setMaxQuantity

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.

Parameters:
newValue - The maximum purchase quantity.

setMinAmount

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.

Parameters:
newValue - The minimum purchase amount.

setMinQuantity

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.

Parameters:
newValue - The minimum purchase quantity.

setPurchaseLimitId

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.

Parameters:
newValue - The ID of the purchase limit.

setTcId

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.

Parameters:
newValue - The ID of the terms and conditions.

setTradingPositionContainerId

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.

Parameters:
newValue - The ID of the trading position container, or price list.