Package eja.ejb.entities

Examples of eja.ejb.entities.Customer


    public Collection<Customer> getAllCustomers() {
        return this._customerDao.getAllCustomers();
    }

    public String edit() {
        this._customer = (this.id != 0) ? this._customerDao.getCustomerById(this.id) : new Customer();
        this._customer.setName(this.name);
        this._customer.setEmail(this.email);
        this._customer.setPhone(this.phone);
        this._customer.setComRegNo(this.comRegNo);
        this._customer.setVatNo(this.vatNo);
View Full Code Here


public class CustomerConverter implements Converter {

    @Override
    public Object getAsObject(FacesContext context, UIComponent component, String value) {
        int id = Integer.parseInt(value);
        Customer customer = new Customer();
        customer.setId(id);

        return customer;
    }
View Full Code Here

        return customer;
    }

    @Override
    public String getAsString(FacesContext context, UIComponent component, Object value) {
        Customer customer = (Customer) value;
        return customer.getId().toString();
    }
View Full Code Here

TOP

Related Classes of eja.ejb.entities.Customer

Copyright © 2018 www.massapicom. 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.