|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.scubatoolkit.Person
Description of the Class * * @author * @version
| Field Summary | |
private ContactInfo |
contactInfo
|
private java.lang.String |
firstName
|
private java.lang.String |
lastName
|
private int |
personID
|
| Constructor Summary | |
Person()
Constructor for the Person object * * @param fname Description of the Parameter * @param lname Description of the Parameter |
|
| Method Summary | |
private int |
createPerson()
|
ContactInfo |
getContactInfo()
|
java.lang.String |
getFirstName()
Gets the firstName attribute of the Person object * * @return The firstName value |
java.lang.String |
getLastName()
Gets the lastName attribute of the Person object * * @return The lastName value |
int |
getPersonID()
|
static java.util.Vector |
getPersons()
|
static Person |
loadPerson(int personID)
|
static void |
remove(Person person)
|
int |
save()
|
void |
setContactInfo(ContactInfo info)
|
void |
setFirstName(java.lang.String fname)
Sets the firstName attribute of the Person object * * @param fname The new firstName value |
void |
setLastName(java.lang.String lname)
Sets the lastName attribute of the Person object * * @param lname The new lastName value |
void |
setPersonID(int ID)
|
java.lang.String |
toString()
|
private int |
updatePerson()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private ContactInfo contactInfo
private java.lang.String firstName
private java.lang.String lastName
private int personID
| Constructor Detail |
public Person()
| Method Detail |
public static java.util.Vector getPersons()
throws java.lang.ClassNotFoundException,
java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLException
public static Person loadPerson(int personID)
throws java.lang.ClassNotFoundException,
java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLException
public static void remove(Person person)
throws java.lang.ClassNotFoundException,
java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLExceptionpublic ContactInfo getContactInfo()
public java.lang.String getFirstName()
public java.lang.String getLastName()
public int getPersonID()
public int save()
throws java.lang.ClassNotFoundException,
java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLExceptionpublic void setContactInfo(ContactInfo info)
info - public void setFirstName(java.lang.String fname)
public void setLastName(java.lang.String lname)
public void setPersonID(int ID)
private int createPerson()
throws java.lang.ClassNotFoundException,
java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLException
private int updatePerson()
throws java.lang.ClassNotFoundException,
java.sql.SQLException
java.lang.ClassNotFoundException
java.sql.SQLExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||