/*
* Copyright 2010, Andrew M Gibson
*
* www.andygibson.net
*
* This file is part of DataValve.
*
* DataValve is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* DataValve is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public License
* along with DataValve. If not, see <http://www.gnu.org/licenses/>.
*
*/
package org.fluttercode.datavalve.provider.file;
import java.io.Serializable;
import org.fluttercode.datafactory.impl.DataFactory;
import org.fluttercode.datavalve.testing.junit.AbstractObjectDatasetJUnitTest;
/**
* @author Andy Gibson
*
*/
public class PhoneEntry implements Serializable {
private static final long serialVersionUID = 1L;
private static DataFactory dataFactory = AbstractObjectDatasetJUnitTest.getDataFactory();
private int id;
private String firstName;
private String lastName;
private String phone;
public PhoneEntry(int id) {
this(id, dataFactory.getFirstName(), dataFactory.getLastName(),
dataFactory.getNumberText(10));
}
public PhoneEntry(int id, String firstName, String lastName, String phone) {
super();
this.id = id;
this.firstName = firstName;
this.lastName = lastName;
this.phone = phone;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
}