///////////////////////////////////////////////////////////////////////////////
// File     : POSITIONValues.java
// Creation : 2002.04.29 (generated by ejen 1.0.0)

package org.ejb.test;

/**
 * Values object that maps a row in the POSITION table
 * (without primary key fields).
 * <br><i>Ejen EJB 1.1 (BMP) demonstration</i>
 * @version 1.0
 * @author (unknown)
 * @see org.ejb.test.EJB_POSITION
 * @see org.ejb.test.EJB_POSITIONHome
 * @see org.ejb.test.EJB_POSITIONBean
 * @see org.ejb.test.EJB_POSITION_PK
 */
 public class POSITIONValues implements java.io.Serializable {
 
    /** Field PRODUCTID. */
    protected int _productid;
    /** Field QUANTITY. */
    protected int _quantity;
    /** Field PRICE. */
    protected java.math.BigDecimal _price;

    /**
     * Constructor (empty).
     */
    public POSITIONValues() {}

    /**
     * Constructor (with everything, except primary key fields).
     * @param productid value of the PRODUCTID field.
     * @param quantity value of the QUANTITY field.
     * @param price value of the PRICE field.
     */
    public POSITIONValues(int productid, int quantity, java.math.BigDecimal price) {
        _productid = productid;
        _quantity = quantity;
        _price = price;
    }

    /**
     * Returns the value of the PRODUCTID field.
     * @return value of the PRODUCTID field.
     */
    public int getProductid() {
        return _productid;
    }

    /**
     * Sets a new value for the PRODUCTID field.
     * @param productid new value for the PRODUCTID field.
     */
    public void setProductid(int productid) {
        _productid = productid;
    }

    /**
     * Returns the value of the QUANTITY field.
     * @return value of the QUANTITY field.
     */
    public int getQuantity() {
        return _quantity;
    }

    /**
     * Sets a new value for the QUANTITY field.
     * @param quantity new value for the QUANTITY field.
     */
    public void setQuantity(int quantity) {
        _quantity = quantity;
    }

    /**
     * Returns the value of the PRICE field.
     * @return value of the PRICE field.
     */
    public java.math.BigDecimal getPrice() {
        return _price;
    }

    /**
     * Sets a new value for the PRICE field.
     * @param price new value for the PRICE field.
     */
    public void setPrice(java.math.BigDecimal price) {
        _price = price;
    }
}

POSITIONValues.html (HTML view generated by ejen v.1.0.0).