Customer.java :  » Maven » maven-jaque » org » h2 » jaqu » Java Open Source

Java Open Source » Maven » maven jaque 
maven jaque » org » h2 » jaqu » Customer.java
/*
 * Copyright 2004-2009 H2 Group. Multiple-Licensed under the H2 License,
 * Version 1.0, and under the Eclipse Public License, Version 1.0
 * (http://h2database.com/html/license.html).
 * Initial Developer: H2 Group
 */
package org.h2.jaqu;

import java.util.Arrays;
import java.util.List;

/**
 * A table containing customer data.
 */
public class Customer {

    public String customerId;
    public String region;

    public Customer() {
        // public constructor
    }

    public Customer(String customerId, String region) {
        this.customerId = customerId;
        this.region = region;
    }

    public String toString() {
        return customerId;
    }

    public static List<Customer> getList() {
        Customer[] list = new Customer[]{
                new Customer("ALFKI", "WA"),
                new Customer("ANATR", "WA"),
                new Customer("ANTON", "CA")};
        return Arrays.asList(list);
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.