Package StockTradeBusinessClasses

Source Code of StockTradeBusinessClasses.Customer

package StockTradeBusinessClasses;

import DisplayProject.binding.beans.ExtendedPropertyChangeSupport;
import DisplayProject.binding.beans.Observable;
import Framework.RuntimeProperties;
import Framework.TextData;
import StockTradeBusinessClasses.Array_Of_Holding;
import StockTradeBusinessClasses.Holding;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import java.lang.Cloneable;
import java.lang.Object;
import java.lang.String;

/**
* Customer<p>
* <p>
* @author Generated from Forte
* @since  24-Aug-2010
*/
@RuntimeProperties(isDistributed=false, isAnchored=false, isShared=false, isTransactional=false)
@SuppressWarnings("serial")
public class Customer
        implements Cloneable, Serializable, Observable
{

    // ----------
    // Attributes
    // ----------
    public PropertyChangeSupport qq_Listeners = null;
    private TextData customerName;
    private String address;
    private String phoneNumber;
    private float cashBalance;
    private Array_Of_Holding<Holding> holdingList;

    // ------------
    // Constructors
    // ------------
    public Customer() {
        // Explicitly call the superclass constructor to prevent the implicit call
        super();

        this.setCustomerName(new TextData());
        this.setHoldingList(new Array_Of_Holding<Holding>());

    }

    // ----------------------
    // Accessors and Mutators
    // ----------------------
    public void setCustomerName(TextData customerName) {
        TextData oldValue = this.customerName;
        this.customerName = customerName;
        this.firePropertyChange("customerName", oldValue, this.customerName);
    }

    /**
     * Getter for the attribute CustomerName
    */
    public TextData getCustomerName() {
        return this.customerName;
    }

    public void setAddress(String address) {
        String oldValue = this.address;
        this.address = address;
        this.firePropertyChange("address", oldValue, this.address);
    }

    /**
     * Getter for the attribute Address
    */
    public String getAddress() {
        return this.address;
    }

    public void setPhoneNumber(String phoneNumber) {
        String oldValue = this.phoneNumber;
        this.phoneNumber = phoneNumber;
        this.firePropertyChange("phoneNumber", oldValue, this.phoneNumber);
    }

    /**
     * Getter for the attribute PhoneNumber
    */
    public String getPhoneNumber() {
        return this.phoneNumber;
    }

    public void setCashBalance(float cashBalance) {
        float oldValue = this.cashBalance;
        this.cashBalance = cashBalance;
        this.firePropertyChange("cashBalance", new Float(oldValue), new Float(this.cashBalance));
    }

    /**
     * Getter for the attribute CashBalance
    */
    public float getCashBalance() {
        return this.cashBalance;
    }

    public void setHoldingList(Array_Of_Holding<Holding> holdingList) {
        Array_Of_Holding<Holding> oldValue = this.holdingList;
        this.holdingList = holdingList;
        this.firePropertyChange("holdingList", oldValue, this.holdingList);
    }

    /**
     * Getter for the attribute HoldingList
    */
    public Array_Of_Holding<Holding> getHoldingList() {
        return this.holdingList;
    }

    // -------
    // Methods
    // -------
    public void firePropertyChange(PropertyChangeEvent evt) {
        if (qq_Listeners != null) {
            qq_Listeners.firePropertyChange(evt);
        }
    }
    public void firePropertyChange(String pName, boolean oldValue, boolean newValue) {
        if (qq_Listeners != null) {
            qq_Listeners.firePropertyChange(pName, oldValue, newValue);
        }
    }
    public void firePropertyChange(String pName, int oldValue, int newValue) {
        if (qq_Listeners != null) {
            qq_Listeners.firePropertyChange(pName, oldValue, newValue);
        }
    }
    public void firePropertyChange(String pName, Object oldValue, Object newValue) {
        if (qq_Listeners != null) {
            qq_Listeners.firePropertyChange(pName, oldValue, newValue);
        }
    }
    public boolean hasListeners(String propertyName) {
        if (qq_Listeners != null) {
            return qq_Listeners.hasListeners(propertyName);
        }
        return false;
    }
    public PropertyChangeSupport getPropertyListeners() {
        if (qq_Listeners == null)
            qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
        return this.qq_Listeners;
    }
    public void setPropertyListeners(PropertyChangeSupport pcs) {
        qq_Listeners = pcs;
    }
    public void addPropertyChangeListener(String property, PropertyChangeListener listener) {
        if (qq_Listeners == null) {
            qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
        }
        qq_Listeners.addPropertyChangeListener(property, listener);
    }

    public void addPropertyChangeListener(PropertyChangeListener listener) {
        if (qq_Listeners == null) {
            qq_Listeners = new ExtendedPropertyChangeSupport(this, true);
        }
        qq_Listeners.addPropertyChangeListener(listener);
    }

    public void removePropertyChangeListener(String property, PropertyChangeListener listener) {
        if (qq_Listeners != null) {
            qq_Listeners.removePropertyChangeListener(property, listener);
        }
    }

    public void removePropertyChangeListener(PropertyChangeListener listener) {
        if (qq_Listeners != null) {
            qq_Listeners.removePropertyChangeListener(listener);
        }
    }
// end class Customer
// c Pass 2 Conversion Time: 110 milliseconds
TOP

Related Classes of StockTradeBusinessClasses.Customer

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.