/**
* Copyright (c) 2001, Keith Wong
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge, publish, distribute,
* sublicense, and/or sell copies of the Software, and to permit persons to whom the Software
* is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or
* substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
* BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package mypackage;
import java.sql.Date;
/**
* This class holds the data for a customer.
*
* @author Keith Wong
*/
public class Customer
{
protected Long m_lCustomerId;
protected String m_sTitle;
protected String m_sFirstName;
protected String m_sLastName;
protected Date m_dtBirthDate;
protected String m_sGender;
protected String m_sStreet;
protected String m_sPostCode;
protected String m_sSuburb;
protected String m_sState;
protected boolean m_bPostalAddress;
protected String m_sTelephone;
protected String m_sEmail;
public Customer()
{
} // end constructor
public Customer(
long lCustomerId,
String sTitle,
String sFirstName,
String sLastName,
Date dtBirthDate,
String sGender,
String sStreet,
String sPostCode,
String sSuburb,
String sState,
boolean bPostalAddress,
String sTelephone,
String sEmail)
{
m_lCustomerId = new Long(lCustomerId);
m_sTitle = sTitle;
m_sFirstName = sFirstName;
m_sLastName = sLastName;
m_dtBirthDate = dtBirthDate;
m_sGender = sGender;
m_sStreet = sStreet;
m_sPostCode = sPostCode;
m_sSuburb = sSuburb;
m_sState = sState;
m_bPostalAddress = bPostalAddress;
m_sTelephone = sTelephone;
m_sEmail = sEmail;
} // end constructor
public void setCustomerId(long lCustomerId)
{
m_lCustomerId = new Long(lCustomerId);
}
public void setCustomerId(Long lCustomerId)
{
m_lCustomerId = lCustomerId;
}
public Long getCustomerId()
{
return m_lCustomerId;
}
public void setTitle(String sTitle)
{
m_sTitle = sTitle;
}
public String getTitle()
{
return m_sTitle;
}
public void setFirstName(String sFirstName)
{
m_sFirstName = sFirstName;
}
public String getFirstName()
{
return m_sFirstName;
}
public void setLastName(String sLastName)
{
m_sLastName = sLastName;
}
public String getLastName()
{
return m_sLastName;
}
public void setBirthDate(Date dtBirthDate)
{
m_dtBirthDate = dtBirthDate;
}
public Date getBirthDate()
{
return m_dtBirthDate;
}
public void setStreet(String sStreet)
{
m_sStreet = sStreet;
}
public String getStreet()
{
return m_sStreet;
}
public void setPostCode(String sPostCode)
{
m_sPostCode = sPostCode;
}
public String getPostCode()
{
return m_sPostCode;
}
public void setGender(String sGender)
{
m_sGender = sGender;
}
public String getGender()
{
return m_sGender;
}
public void setSuburb(String sSuburb)
{
m_sSuburb = sSuburb;
}
public String getSuburb()
{
return m_sSuburb;
}
public void setState(String sState)
{
m_sState = sState;
}
public String getState()
{
return m_sState;
}
public void setPostalAddress(boolean bPostalAddress)
{
m_bPostalAddress = bPostalAddress;
}
public boolean getPostalAddress()
{
return m_bPostalAddress;
}
public void setTelephone(String sTelephone)
{
m_sTelephone = sTelephone;
}
public String getTelephone()
{
return m_sTelephone;
}
public void setEmail(String sEmail)
{
m_sEmail = sEmail;
}
public String getEmail()
{
return m_sEmail;
}
} // end class