/javadoc/hoipolloi/Person.html

http://hoipolloi.googlecode.com/ · HTML · 2260 lines · 2009 code · 233 blank · 18 comment · 0 complexity · 114a52b3bf5d1b0f356fbe5818aabf1a MD5 · raw file

Large files are truncated click here to view the full file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.6.0_02) on Wed Dec 26 23:05:16 CST 2007 -->
  6. <TITLE>
  7. Person
  8. </TITLE>
  9. <META NAME="date" CONTENT="2007-12-26">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
  11. <SCRIPT type="text/javascript">
  12. function windowTitle()
  13. {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="Person";
  16. }
  17. }
  18. </SCRIPT>
  19. <NOSCRIPT>
  20. </NOSCRIPT>
  21. </HEAD>
  22. <BODY BGCOLOR="white" onload="windowTitle();">
  23. <HR>
  24. <!-- ========= START OF TOP NAVBAR ======= -->
  25. <A NAME="navbar_top"><!-- --></A>
  26. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  27. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  28. <TR>
  29. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  30. <A NAME="navbar_top_firstrow"><!-- --></A>
  31. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  32. <TR ALIGN="center" VALIGN="top">
  33. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../hoipolloi/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  34. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  35. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  36. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  37. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  38. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  39. </TR>
  40. </TABLE>
  41. </TD>
  42. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  43. </EM>
  44. </TD>
  45. </TR>
  46. <TR>
  47. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  48. &nbsp;<A HREF="../hoipolloi/MainMenu.MenuAction.html" title="class in hoipolloi"><B>PREV CLASS</B></A>&nbsp;
  49. &nbsp;<A HREF="../hoipolloi/PrintUtilities.html" title="class in hoipolloi"><B>NEXT CLASS</B></A></FONT></TD>
  50. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  51. <A HREF="../index.html?hoipolloi/Person.html" target="_top"><B>FRAMES</B></A> &nbsp;
  52. &nbsp;<A HREF="Person.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  53. &nbsp;<SCRIPT type="text/javascript">
  54. <!--
  55. if(window==top) {
  56. document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
  57. }
  58. //-->
  59. </SCRIPT>
  60. <NOSCRIPT>
  61. <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
  62. </NOSCRIPT>
  63. </FONT></TD>
  64. </TR>
  65. <TR>
  66. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  67. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  68. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  69. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  70. </TR>
  71. </TABLE>
  72. <A NAME="skip-navbar_top"></A>
  73. <!-- ========= END OF TOP NAVBAR ========= -->
  74. <HR>
  75. <!-- ======== START OF CLASS DATA ======== -->
  76. <H2>
  77. <FONT SIZE="-1">
  78. hoipolloi</FONT>
  79. <BR>
  80. Class Person</H2>
  81. <PRE>
  82. java.lang.Object
  83. <IMG SRC="../resources/inherit.gif" ALT="extended by "><B>hoipolloi.Person</B>
  84. </PRE>
  85. <DL>
  86. <DT><B>All Implemented Interfaces:</B> <DD>java.lang.Comparable</DD>
  87. </DL>
  88. <HR>
  89. <DL>
  90. <DT><PRE>public class <B>Person</B><DT>extends java.lang.Object<DT>implements java.lang.Comparable</DL>
  91. </PRE>
  92. <P>
  93. The Person Class stores people objects and has methods to send and retrieve their information from the database.
  94. <P>
  95. <P>
  96. <DL>
  97. <DT><B>Since:</B></DT>
  98. <DD>November 20, 2006</DD>
  99. <DT><B>Version:</B></DT>
  100. <DD>0.99n December 26, 2007</DD>
  101. <DT><B>Author:</B></DT>
  102. <DD>Brandon Tanner</DD>
  103. </DL>
  104. <HR>
  105. <P>
  106. <!-- =========== FIELD SUMMARY =========== -->
  107. <A NAME="field_summary"><!-- --></A>
  108. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  109. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  110. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  111. <B>Field Summary</B></FONT></TH>
  112. </TR>
  113. <TR BGCOLOR="white" CLASS="TableRowColor">
  114. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  115. <CODE>protected &nbsp;java.util.ArrayList&lt;<A HREF="../hoipolloi/Address.html" title="class in hoipolloi">Address</A>&gt;</CODE></FONT></TD>
  116. <TD><CODE><B><A HREF="../hoipolloi/Person.html#addresses">addresses</A></B></CODE>
  117. <BR>
  118. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The List of Addresses for this Person</TD>
  119. </TR>
  120. <TR BGCOLOR="white" CLASS="TableRowColor">
  121. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  122. <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  123. <TD><CODE><B><A HREF="../hoipolloi/Person.html#birthday">birthday</A></B></CODE>
  124. <BR>
  125. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Person's Birthday in IS0-8601 Format YYYY-MM-DD</TD>
  126. </TR>
  127. <TR BGCOLOR="white" CLASS="TableRowColor">
  128. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  129. <CODE>protected &nbsp;java.util.ArrayList&lt;<A HREF="../hoipolloi/KeyValue.html" title="class in hoipolloi">KeyValue</A>&gt;</CODE></FONT></TD>
  130. <TD><CODE><B><A HREF="../hoipolloi/Person.html#categories">categories</A></B></CODE>
  131. <BR>
  132. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The List of Categories that this Person is in (each category is a KeyValue pair in this ArrayList)</TD>
  133. </TR>
  134. <TR BGCOLOR="white" CLASS="TableRowColor">
  135. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  136. <CODE>protected &nbsp;java.util.ArrayList&lt;<A HREF="../hoipolloi/Contact.html" title="class in hoipolloi">Contact</A>&gt;</CODE></FONT></TD>
  137. <TD><CODE><B><A HREF="../hoipolloi/Person.html#contacts">contacts</A></B></CODE>
  138. <BR>
  139. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The List of Contacts for this Person</TD>
  140. </TR>
  141. <TR BGCOLOR="white" CLASS="TableRowColor">
  142. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  143. <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  144. <TD><CODE><B><A HREF="../hoipolloi/Person.html#description">description</A></B></CODE>
  145. <BR>
  146. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A Description of this Person or any other optional information</TD>
  147. </TR>
  148. <TR BGCOLOR="white" CLASS="TableRowColor">
  149. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  150. <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  151. <TD><CODE><B><A HREF="../hoipolloi/Person.html#eyeColor">eyeColor</A></B></CODE>
  152. <BR>
  153. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Person's Eye Color, Green/Hazel/Black etc</TD>
  154. </TR>
  155. <TR BGCOLOR="white" CLASS="TableRowColor">
  156. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  157. <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  158. <TD><CODE><B><A HREF="../hoipolloi/Person.html#firstName">firstName</A></B></CODE>
  159. <BR>
  160. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Person's First Name</TD>
  161. </TR>
  162. <TR BGCOLOR="white" CLASS="TableRowColor">
  163. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  164. <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  165. <TD><CODE><B><A HREF="../hoipolloi/Person.html#gender">gender</A></B></CODE>
  166. <BR>
  167. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Person's Gender, Male or Female</TD>
  168. </TR>
  169. <TR BGCOLOR="white" CLASS="TableRowColor">
  170. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  171. <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  172. <TD><CODE><B><A HREF="../hoipolloi/Person.html#hairColor">hairColor</A></B></CODE>
  173. <BR>
  174. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Person's Hair Color</TD>
  175. </TR>
  176. <TR BGCOLOR="white" CLASS="TableRowColor">
  177. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  178. <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  179. <TD><CODE><B><A HREF="../hoipolloi/Person.html#height">height</A></B></CODE>
  180. <BR>
  181. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Person's Height (Customary or Metric)</TD>
  182. </TR>
  183. <TR BGCOLOR="white" CLASS="TableRowColor">
  184. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  185. <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  186. <TD><CODE><B><A HREF="../hoipolloi/Person.html#lastName">lastName</A></B></CODE>
  187. <BR>
  188. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Person's Last Name</TD>
  189. </TR>
  190. <TR BGCOLOR="white" CLASS="TableRowColor">
  191. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  192. <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  193. <TD><CODE><B><A HREF="../hoipolloi/Person.html#lastUpdate">lastUpdate</A></B></CODE>
  194. <BR>
  195. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Date When this Person's Profile Was Last Updated in ISO-8601 Format YYYY-MM-DD</TD>
  196. </TR>
  197. <TR BGCOLOR="white" CLASS="TableRowColor">
  198. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  199. <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  200. <TD><CODE><B><A HREF="../hoipolloi/Person.html#maidenName">maidenName</A></B></CODE>
  201. <BR>
  202. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Person's Maiden Name</TD>
  203. </TR>
  204. <TR BGCOLOR="white" CLASS="TableRowColor">
  205. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  206. <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  207. <TD><CODE><B><A HREF="../hoipolloi/Person.html#middleName">middleName</A></B></CODE>
  208. <BR>
  209. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Person's Middle Name</TD>
  210. </TR>
  211. <TR BGCOLOR="white" CLASS="TableRowColor">
  212. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  213. <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  214. <TD><CODE><B><A HREF="../hoipolloi/Person.html#nationality">nationality</A></B></CODE>
  215. <BR>
  216. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Person's Nationality like American, Thai or Singaporean</TD>
  217. </TR>
  218. <TR BGCOLOR="white" CLASS="TableRowColor">
  219. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  220. <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  221. <TD><CODE><B><A HREF="../hoipolloi/Person.html#nickName">nickName</A></B></CODE>
  222. <BR>
  223. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Person's Nick Name</TD>
  224. </TR>
  225. <TR BGCOLOR="white" CLASS="TableRowColor">
  226. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  227. <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  228. <TD><CODE><B><A HREF="../hoipolloi/Person.html#occupation">occupation</A></B></CODE>
  229. <BR>
  230. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Person's Occupation</TD>
  231. </TR>
  232. <TR BGCOLOR="white" CLASS="TableRowColor">
  233. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  234. <CODE>protected &nbsp;int</CODE></FONT></TD>
  235. <TD><CODE><B><A HREF="../hoipolloi/Person.html#personID">personID</A></B></CODE>
  236. <BR>
  237. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Person ID for this Person in the Database</TD>
  238. </TR>
  239. <TR BGCOLOR="white" CLASS="TableRowColor">
  240. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  241. <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  242. <TD><CODE><B><A HREF="../hoipolloi/Person.html#photoBinary">photoBinary</A></B></CODE>
  243. <BR>
  244. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Person's Profile Picture in Binary or BASE64 Format</TD>
  245. </TR>
  246. <TR BGCOLOR="white" CLASS="TableRowColor">
  247. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  248. <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  249. <TD><CODE><B><A HREF="../hoipolloi/Person.html#photoFileName">photoFileName</A></B></CODE>
  250. <BR>
  251. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The File Name of the Person's Profile Picture</TD>
  252. </TR>
  253. <TR BGCOLOR="white" CLASS="TableRowColor">
  254. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  255. <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  256. <TD><CODE><B><A HREF="../hoipolloi/Person.html#prefix">prefix</A></B></CODE>
  257. <BR>
  258. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Prefix for this Person, like Mr or Dr</TD>
  259. </TR>
  260. <TR BGCOLOR="white" CLASS="TableRowColor">
  261. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  262. <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  263. <TD><CODE><B><A HREF="../hoipolloi/Person.html#suffix">suffix</A></B></CODE>
  264. <BR>
  265. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Suffix for this Person, like Jr or Sr</TD>
  266. </TR>
  267. <TR BGCOLOR="white" CLASS="TableRowColor">
  268. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  269. <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  270. <TD><CODE><B><A HREF="../hoipolloi/Person.html#weight">weight</A></B></CODE>
  271. <BR>
  272. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Person's Weight (Customary or Metric)</TD>
  273. </TR>
  274. </TABLE>
  275. &nbsp;
  276. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  277. <A NAME="constructor_summary"><!-- --></A>
  278. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  279. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  280. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  281. <B>Constructor Summary</B></FONT></TH>
  282. </TR>
  283. <TR BGCOLOR="white" CLASS="TableRowColor">
  284. <TD><CODE><B><A HREF="../hoipolloi/Person.html#Person()">Person</A></B>()</CODE>
  285. <BR>
  286. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new instance of Person (for Adding a new one)</TD>
  287. </TR>
  288. <TR BGCOLOR="white" CLASS="TableRowColor">
  289. <TD><CODE><B><A HREF="../hoipolloi/Person.html#Person(int)">Person</A></B>(int&nbsp;pid)</CODE>
  290. <BR>
  291. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new instance of Person given a Person ID and populates it from the database.</TD>
  292. </TR>
  293. </TABLE>
  294. &nbsp;
  295. <!-- ========== METHOD SUMMARY =========== -->
  296. <A NAME="method_summary"><!-- --></A>
  297. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  298. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  299. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  300. <B>Method Summary</B></FONT></TH>
  301. </TR>
  302. <TR BGCOLOR="white" CLASS="TableRowColor">
  303. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  304. <CODE>protected &nbsp;boolean</CODE></FONT></TD>
  305. <TD><CODE><B><A HREF="../hoipolloi/Person.html#addAddress(hoipolloi.Address)">addAddress</A></B>(<A HREF="../hoipolloi/Address.html" title="class in hoipolloi">Address</A>&nbsp;newAddress)</CODE>
  306. <BR>
  307. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds an Address to this Person</TD>
  308. </TR>
  309. <TR BGCOLOR="white" CLASS="TableRowColor">
  310. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  311. <CODE>protected &nbsp;boolean</CODE></FONT></TD>
  312. <TD><CODE><B><A HREF="../hoipolloi/Person.html#addCategory(int)">addCategory</A></B>(int&nbsp;categoryTypeID)</CODE>
  313. <BR>
  314. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds this Person to a Category
  315. This method can only be called for new people
  316. after saveToDatabase has been called at least once.</TD>
  317. </TR>
  318. <TR BGCOLOR="white" CLASS="TableRowColor">
  319. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  320. <CODE>protected &nbsp;boolean</CODE></FONT></TD>
  321. <TD><CODE><B><A HREF="../hoipolloi/Person.html#addContact(int, java.lang.String)">addContact</A></B>(int&nbsp;contactTypeID,
  322. java.lang.String&nbsp;contact)</CODE>
  323. <BR>
  324. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a Contact for a Person.</TD>
  325. </TR>
  326. <TR BGCOLOR="white" CLASS="TableRowColor">
  327. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  328. <CODE>&nbsp;int</CODE></FONT></TD>
  329. <TD><CODE><B><A HREF="../hoipolloi/Person.html#compareTo(java.lang.Object)">compareTo</A></B>(java.lang.Object&nbsp;o)</CODE>
  330. <BR>
  331. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  332. </TR>
  333. <TR BGCOLOR="white" CLASS="TableRowColor">
  334. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  335. <CODE>&nbsp;java.util.ArrayList</CODE></FONT></TD>
  336. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getAddresses()">getAddresses</A></B>()</CODE>
  337. <BR>
  338. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's Address List</TD>
  339. </TR>
  340. <TR BGCOLOR="white" CLASS="TableRowColor">
  341. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  342. <CODE>protected &nbsp;long</CODE></FONT></TD>
  343. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getAgeThisYear()">getAgeThisYear</A></B>()</CODE>
  344. <BR>
  345. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's Age this Year.</TD>
  346. </TR>
  347. <TR BGCOLOR="white" CLASS="TableRowColor">
  348. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  349. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  350. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getBirthday()">getBirthday</A></B>()</CODE>
  351. <BR>
  352. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's Birthday</TD>
  353. </TR>
  354. <TR BGCOLOR="white" CLASS="TableRowColor">
  355. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  356. <CODE>&nbsp;java.util.ArrayList</CODE></FONT></TD>
  357. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getCategories()">getCategories</A></B>()</CODE>
  358. <BR>
  359. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the list of Categories this Person is in</TD>
  360. </TR>
  361. <TR BGCOLOR="white" CLASS="TableRowColor">
  362. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  363. <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  364. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getCategoriesAsString()">getCategoriesAsString</A></B>()</CODE>
  365. <BR>
  366. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Categories that the Person is in as a String</TD>
  367. </TR>
  368. <TR BGCOLOR="white" CLASS="TableRowColor">
  369. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  370. <CODE>protected &nbsp;int</CODE></FONT></TD>
  371. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getContactIDFromStrings(java.lang.String, java.lang.String)">getContactIDFromStrings</A></B>(java.lang.String&nbsp;strContactType,
  372. java.lang.String&nbsp;strContact)</CODE>
  373. <BR>
  374. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the ID number of a contact given the contact and type as strings.</TD>
  375. </TR>
  376. <TR BGCOLOR="white" CLASS="TableRowColor">
  377. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  378. <CODE>protected &nbsp;java.util.ArrayList</CODE></FONT></TD>
  379. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getContacts()">getContacts</A></B>()</CODE>
  380. <BR>
  381. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's Contact List</TD>
  382. </TR>
  383. <TR BGCOLOR="white" CLASS="TableRowColor">
  384. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  385. <CODE>&nbsp;long</CODE></FONT></TD>
  386. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getCurrentAge()">getCurrentAge</A></B>()</CODE>
  387. <BR>
  388. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's current Age.</TD>
  389. </TR>
  390. <TR BGCOLOR="white" CLASS="TableRowColor">
  391. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  392. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  393. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getDescription()">getDescription</A></B>()</CODE>
  394. <BR>
  395. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's Description</TD>
  396. </TR>
  397. <TR BGCOLOR="white" CLASS="TableRowColor">
  398. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  399. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  400. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getEyeColor()">getEyeColor</A></B>()</CODE>
  401. <BR>
  402. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's Eye Color</TD>
  403. </TR>
  404. <TR BGCOLOR="white" CLASS="TableRowColor">
  405. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  406. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  407. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getFirstName()">getFirstName</A></B>()</CODE>
  408. <BR>
  409. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's First Name</TD>
  410. </TR>
  411. <TR BGCOLOR="white" CLASS="TableRowColor">
  412. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  413. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  414. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getGender()">getGender</A></B>()</CODE>
  415. <BR>
  416. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's Gender</TD>
  417. </TR>
  418. <TR BGCOLOR="white" CLASS="TableRowColor">
  419. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  420. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  421. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getHairColor()">getHairColor</A></B>()</CODE>
  422. <BR>
  423. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's Hair Color</TD>
  424. </TR>
  425. <TR BGCOLOR="white" CLASS="TableRowColor">
  426. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  427. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  428. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getHeight()">getHeight</A></B>()</CODE>
  429. <BR>
  430. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's Height</TD>
  431. </TR>
  432. <TR BGCOLOR="white" CLASS="TableRowColor">
  433. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  434. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  435. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getLastName()">getLastName</A></B>()</CODE>
  436. <BR>
  437. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's Last Name</TD>
  438. </TR>
  439. <TR BGCOLOR="white" CLASS="TableRowColor">
  440. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  441. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  442. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getLastUpdate()">getLastUpdate</A></B>()</CODE>
  443. <BR>
  444. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the date when the Person's profile was last updated.</TD>
  445. </TR>
  446. <TR BGCOLOR="white" CLASS="TableRowColor">
  447. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  448. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  449. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getMaidenName()">getMaidenName</A></B>()</CODE>
  450. <BR>
  451. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's Maiden Name</TD>
  452. </TR>
  453. <TR BGCOLOR="white" CLASS="TableRowColor">
  454. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  455. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  456. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getMiddleName()">getMiddleName</A></B>()</CODE>
  457. <BR>
  458. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's Middle Name</TD>
  459. </TR>
  460. <TR BGCOLOR="white" CLASS="TableRowColor">
  461. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  462. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  463. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getNationality()">getNationality</A></B>()</CODE>
  464. <BR>
  465. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's Nationality</TD>
  466. </TR>
  467. <TR BGCOLOR="white" CLASS="TableRowColor">
  468. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  469. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  470. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getNickName()">getNickName</A></B>()</CODE>
  471. <BR>
  472. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's Nick Name</TD>
  473. </TR>
  474. <TR BGCOLOR="white" CLASS="TableRowColor">
  475. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  476. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  477. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getOccupation()">getOccupation</A></B>()</CODE>
  478. <BR>
  479. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's Occupation</TD>
  480. </TR>
  481. <TR BGCOLOR="white" CLASS="TableRowColor">
  482. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  483. <CODE>&nbsp;int</CODE></FONT></TD>
  484. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getPersonID()">getPersonID</A></B>()</CODE>
  485. <BR>
  486. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's ID</TD>
  487. </TR>
  488. <TR BGCOLOR="white" CLASS="TableRowColor">
  489. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  490. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  491. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getPhotoBinary()">getPhotoBinary</A></B>()</CODE>
  492. <BR>
  493. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's Photo</TD>
  494. </TR>
  495. <TR BGCOLOR="white" CLASS="TableRowColor">
  496. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  497. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  498. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getPhotoFileName()">getPhotoFileName</A></B>()</CODE>
  499. <BR>
  500. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's Photo Filename.</TD>
  501. </TR>
  502. <TR BGCOLOR="white" CLASS="TableRowColor">
  503. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  504. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  505. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getPrefix()">getPrefix</A></B>()</CODE>
  506. <BR>
  507. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's Name Prefix</TD>
  508. </TR>
  509. <TR BGCOLOR="white" CLASS="TableRowColor">
  510. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  511. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  512. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getSuffix()">getSuffix</A></B>()</CODE>
  513. <BR>
  514. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's Name Suffix</TD>
  515. </TR>
  516. <TR BGCOLOR="white" CLASS="TableRowColor">
  517. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  518. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  519. <TD><CODE><B><A HREF="../hoipolloi/Person.html#getWeight()">getWeight</A></B>()</CODE>
  520. <BR>
  521. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Person's Weight</TD>
  522. </TR>
  523. <TR BGCOLOR="white" CLASS="TableRowColor">
  524. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  525. <CODE>private &nbsp;boolean</CODE></FONT></TD>
  526. <TD><CODE><B><A HREF="../hoipolloi/Person.html#loadAddressesFromDB()">loadAddressesFromDB</A></B>()</CODE>
  527. <BR>
  528. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loads the Addresses for this Person from the Database.</TD>
  529. </TR>
  530. <TR BGCOLOR="white" CLASS="TableRowColor">
  531. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  532. <CODE>private &nbsp;boolean</CODE></FONT></TD>
  533. <TD><CODE><B><A HREF="../hoipolloi/Person.html#loadCategoriesFromDB()">loadCategoriesFromDB</A></B>()</CODE>
  534. <BR>
  535. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loads the Categories that this Person is in.</TD>
  536. </TR>
  537. <TR BGCOLOR="white" CLASS="TableRowColor">
  538. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  539. <CODE>private &nbsp;boolean</CODE></FONT></TD>
  540. <TD><CODE><B><A HREF="../hoipolloi/Person.html#loadContactsFromDB()">loadContactsFromDB</A></B>()</CODE>
  541. <BR>
  542. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loads the Contacts for this Person from the Database.</TD>
  543. </TR>
  544. <TR BGCOLOR="white" CLASS="TableRowColor">
  545. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  546. <CODE>protected &nbsp;boolean</CODE></FONT></TD>
  547. <TD><CODE><B><A HREF="../hoipolloi/Person.html#loadFromDatabase()">loadFromDatabase</A></B>()</CODE>
  548. <BR>
  549. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Load all the information for this Person from the Database.</TD>
  550. </TR>
  551. <TR BGCOLOR="white" CLASS="TableRowColor">
  552. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  553. <CODE>static&nbsp;void</CODE></FONT></TD>
  554. <TD><CODE><B><A HREF="../hoipolloi/Person.html#main(java.lang.String[])">main</A></B>(java.lang.String[]&nbsp;args)</CODE>
  555. <BR>
  556. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Used for testing and debugging methods in this class.</TD>
  557. </TR>
  558. <TR BGCOLOR="white" CLASS="TableRowColor">
  559. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  560. <CODE>protected &nbsp;boolean</CODE></FONT></TD>
  561. <TD><CODE><B><A HREF="../hoipolloi/Person.html#removeAddress(int)">removeAddress</A></B>(int&nbsp;addressID)</CODE>
  562. <BR>
  563. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes an Address for this Person</TD>
  564. </TR>
  565. <TR BGCOLOR="white" CLASS="TableRowColor">
  566. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  567. <CODE>protected &nbsp;boolean</CODE></FONT></TD>
  568. <TD><CODE><B><A HREF="../hoipolloi/Person.html#removeCategory(int)">removeCategory</A></B>(int&nbsp;categoryTypeID)</CODE>
  569. <BR>
  570. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes this Person from a Category.</TD>
  571. </TR>
  572. <TR BGCOLOR="white" CLASS="TableRowColor">
  573. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  574. <CODE>protected &nbsp;boolean</CODE></FONT></TD>
  575. <TD><CODE><B><A HREF="../hoipolloi/Person.html#removeContact(int)">removeContact</A></B>(int&nbsp;contactID)</CODE>
  576. <BR>
  577. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes a Contact for this Person.</TD>
  578. </TR>
  579. <TR BGCOLOR="white" CLASS="TableRowColor">
  580. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  581. <CODE>protected &nbsp;boolean</CODE></FONT></TD>
  582. <TD><CODE><B><A HREF="../hoipolloi/Person.html#removeContact(java.lang.String, java.lang.String)">removeContact</A></B>(java.lang.String&nbsp;contactType,
  583. java.lang.String&nbsp;contact)</CODE>
  584. <BR>
  585. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes a Contact for this Person.</TD>
  586. </TR>
  587. <TR BGCOLOR="white" CLASS="TableRowColor">
  588. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  589. <CODE>&nbsp;boolean</CODE></FONT></TD>
  590. <TD><CODE><B><A HREF="../hoipolloi/Person.html#saveToDatabase()">saveToDatabase</A></B>()</CODE>
  591. <BR>
  592. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saves the contents of this object to the database.</TD>
  593. </TR>
  594. <TR BGCOLOR="white" CLASS="TableRowColor">
  595. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  596. <CODE>&nbsp;void</CODE></FONT></TD>
  597. <TD><CODE><B><A HREF="../hoipolloi/Person.html#setBirthday(java.lang.String)">setBirthday</A></B>(java.lang.String&nbsp;birthday)</CODE>
  598. <BR>
  599. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Person's Birthday.</TD>
  600. </TR>
  601. <TR BGCOLOR="white" CLASS="TableRowColor">
  602. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  603. <CODE>&nbsp;void</CODE></FONT></TD>
  604. <TD><CODE><B><A HREF="../hoipolloi/Person.html#setDescription(java.lang.String)">setDescription</A></B>(java.lang.String&nbsp;desc)</CODE>
  605. <BR>
  606. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Description for this Person</TD>
  607. </TR>
  608. <TR BGCOLOR="white" CLASS="TableRowColor">
  609. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  610. <CODE>&nbsp;void</CODE></FONT></TD>
  611. <TD><CODE><B><A HREF="../hoipolloi/Person.html#setEyeColor(java.lang.String)">setEyeColor</A></B>(java.lang.String&nbsp;eyeColor)</CODE>
  612. <BR>
  613. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Person's Eye Color</TD>
  614. </TR>
  615. <TR BGCOLOR="white" CLASS="TableRowColor">
  616. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  617. <CODE>&nbsp;void</CODE></FONT></TD>
  618. <TD><CODE><B><A HREF="../hoipolloi/Person.html#setFirstName(java.lang.String)">setFirstName</A></B>(java.lang.String&nbsp;firstname)</CODE>
  619. <BR>
  620. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Person's First Name.</TD>
  621. </TR>
  622. <TR BGCOLOR="white" CLASS="TableRowColor">
  623. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  624. <CODE>&nbsp;void</CODE></FONT></TD>
  625. <TD><CODE><B><A HREF="../hoipolloi/Person.html#setGender(java.lang.String)">setGender</A></B>(java.lang.String&nbsp;gender)</CODE>
  626. <BR>
  627. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Person's Gender.</TD>
  628. </TR>
  629. <TR BGCOLOR="white" CLASS="TableRowColor">
  630. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  631. <CODE>&nbsp;void</CODE></FONT></TD>
  632. <TD><CODE><B><A HREF="../hoipolloi/Person.html#setHairColor(java.lang.String)">setHairColor</A></B>(java.lang.String&nbsp;hairColor)</CODE>
  633. <BR>
  634. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Person's Hair Color</TD>
  635. </TR>
  636. <TR BGCOLOR="white" CLASS="TableRowColor">
  637. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  638. <CODE>&nbsp;void</CODE></FONT></TD>
  639. <TD><CODE><B><A HREF="../hoipolloi/Person.html#setHeight(java.lang.String)">setHeight</A></B>(java.lang.String&nbsp;height)</CODE>
  640. <BR>
  641. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Person's Height</TD>
  642. </TR>
  643. <TR BGCOLOR="white" CLASS="TableRowColor">
  644. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  645. <CODE>&nbsp;void</CODE></FONT></TD>
  646. <TD><CODE><B><A HREF="../hoipolloi/Person.html#setLastName(java.lang.String)">setLastName</A></B>(java.lang.String&nbsp;lastname)</CODE>
  647. <BR>
  648. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Person's Last Name.</TD>
  649. </TR>
  650. <TR BGCOLOR="white" CLASS="TableRowColor">
  651. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  652. <CODE>&nbsp;void</CODE></FONT></TD>
  653. <TD><CODE><B><A HREF="../hoipolloi/Person.html#setLastUpdate()">setLastUpdate</A></B>()</CODE>
  654. <BR>
  655. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Person's Last Profile Update to right now.</TD>
  656. </TR>
  657. <TR BGCOLOR="white" CLASS="TableRowColor">
  658. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  659. <CODE>&nbsp;void</CODE></FONT></TD>
  660. <TD><CODE><B><A HREF="../hoipolloi/Person.html#setMaidenName(java.lang.String)">setMaidenName</A></B>(java.lang.String&nbsp;maidenname)</CODE>
  661. <BR>
  662. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Person's Maiden Name.</TD>
  663. </TR>
  664. <TR BGCOLOR="white" CLASS="TableRowColor">
  665. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  666. <CODE>&nbsp;void</CODE></FONT></TD>
  667. <TD><CODE><B><A HREF="../hoipolloi/Person.html#setMiddleName(java.lang.String)">setMiddleName</A></B>(java.lang.String&nbsp;middlename)</CODE>
  668. <BR>
  669. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Person's Middle Name.</TD>
  670. </TR>
  671. <TR BGCOLOR="white" CLASS="TableRowColor">
  672. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  673. <CODE>&nbsp;void</CODE></FONT></TD>
  674. <TD><CODE><B><A HREF="../hoipolloi/Person.html#setNationality(java.lang.String)">setNationality</A></B>(java.lang.String&nbsp;nationality)</CODE>
  675. <BR>
  676. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Person's Nationality</TD>
  677. </TR>
  678. <TR BGCOLOR="white" CLASS="TableRowColor">
  679. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  680. <CODE>private &nbsp;boolean</CODE></FONT></TD>
  681. <TD><CODE><B><A HREF="../hoipolloi/Person.html#setNewPersonID()">setNewPersonID</A></B>()</CODE>
  682. <BR>
  683. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Person ID of a newly added Person.</TD>
  684. </TR>
  685. <TR BGCOLOR="white" CLASS="TableRowColor">
  686. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  687. <CODE>&nbsp;void</CODE></FONT></TD>
  688. <TD><CODE><B><A HREF="../hoipolloi/Person.html#setNickName(java.lang.String)">setNickName</A></B>(java.lang.String&nbsp;nickname)</CODE>
  689. <BR>
  690. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Person's Nick Name</TD>
  691. </TR>
  692. <TR BGCOLOR="white" CLASS="TableRowColor">
  693. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  694. <CODE>&nbsp;void</CODE></FONT></TD>
  695. <TD><CODE><B><A HREF="../hoipolloi/Person.html#setOccupation(java.lang.String)">setOccupation</A></B>(java.lang.String&nbsp;occupation)</CODE>
  696. <BR>
  697. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Person's Occupation</TD>
  698. </TR>
  699. <TR BGCOLOR="white" CLASS="TableRowColor">
  700. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  701. <CODE>&nbsp;void</CODE></FONT></TD>
  702. <TD><CODE><B><A HREF="../hoipolloi/Person.html#setPhotoBinary(java.lang.String)">setPhotoBinary</A></B>(java.lang.String&nbsp;photoblob)</CODE>
  703. <BR>
  704. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Stores the Person's Photo as a binary blob.</TD>
  705. </TR>
  706. <TR BGCOLOR="white" CLASS="TableRowColor">
  707. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  708. <CODE>&nbsp;void</CODE></FONT></TD>
  709. <TD><CODE><B><A HREF="../hoipolloi/Person.html#setPhotoFileName(java.lang.String)">setPhotoFileName</A></B>(java.lang.String&nbsp;filename)</CODE>
  710. <BR>
  711. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Person's Photo Filename</TD>
  712. </TR>
  713. <TR BGCOLOR="white" CLASS="TableRowColor">
  714. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  715. <CODE>&nbsp;void</CODE></FONT></TD>
  716. <TD><CODE><B><A HREF="../hoipolloi/Person.html#setPrefix(java.lang.String)">setPrefix</A></B>(java.lang.String&nbsp;prefix)</CODE>
  717. <BR>
  718. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Person's Prefix (Mr, Mrs, Dr etc).</TD>
  719. </TR>
  720. <TR BGCOLOR="white" CLASS="TableRowColor">
  721. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  722. <CODE>&nbsp;void</CODE></FONT></TD>
  723. <TD><CODE><B><A HREF="../hoipolloi/Person.html#setSuffix(java.lang.String)">setSuffix</A></B>(java.lang.String&nbsp;suffix)</CODE>
  724. <BR>
  725. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Person's Suffix (Jr, Sr, III etc).</TD>
  726. </TR>
  727. <TR BGCOLOR="white" CLASS="TableRowColor">
  728. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  729. <CODE>&nbsp;void</CODE></FONT></TD>
  730. <TD><CODE><B><A HREF="../hoipolloi/Person.html#setWeight(java.lang.String)">setWeight</A></B>(java.lang.String&nbsp;weight)</CODE>
  731. <BR>
  732. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the Person's Weight</TD>
  733. </TR>
  734. <TR BGCOLOR="white" CLASS="TableRowColor">
  735. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  736. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  737. <TD><CODE><B><A HREF="../hoipolloi/Person.html#toString()">toString</A></B>()</CODE>
  738. <BR>
  739. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Outputs the Person's Full Name including Prefix, First Name, Middle Name, Last Name and Suffix.</TD>
  740. </TR>
  741. </TABLE>
  742. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  743. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  744. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  745. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  746. </TR>
  747. <TR BGCOLOR="white" CLASS="TableRowColor">
  748. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
  749. </TR>
  750. </TABLE>
  751. &nbsp;
  752. <P>
  753. <!-- ============ FIELD DETAIL =========== -->
  754. <A NAME="field_detail"><!-- --></A>
  755. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  756. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  757. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  758. <B>Field Detail</B></FONT></TH>
  759. </TR>
  760. </TABLE>
  761. <A NAME="personID"><!-- --></A><H3>
  762. personID</H3>
  763. <PRE>
  764. protected int <B>personID</B></PRE>
  765. <DL>
  766. <DD>The Person ID for this Person in the Database
  767. <P>
  768. <DL>
  769. </DL>
  770. </DL>
  771. <HR>
  772. <A NAME="prefix"><!-- --></A><H3>
  773. prefix</H3>
  774. <PRE>
  775. protected java.lang.String <B>prefix</B></PRE>
  776. <DL>
  777. <DD>The Prefix for this Person, like Mr or Dr
  778. <P>
  779. <DL>
  780. </DL>
  781. </DL>
  782. <HR>
  783. <A NAME="suffix"><!-- --></A><H3>
  784. suffix</H3>
  785. <PRE>
  786. protected java.lang.String <B>suffix</B></PRE>
  787. <DL>
  788. <DD>The Suffix for this Person, like Jr or Sr
  789. <P>
  790. <DL>
  791. </DL>
  792. </DL>
  793. <HR>
  794. <A NAME="firstName"><!-- --></A><H3>
  795. firstName</H3>
  796. <PRE>
  797. protected java.lang.String <B>firstName</B></PRE>
  798. <DL>
  799. <DD>The Person's First Name
  800. <P>
  801. <DL>
  802. </DL>
  803. </DL>
  804. <HR>
  805. <A NAME="middleName"><!-- --></A><H3>
  806. middleName</H3>
  807. <PRE>
  808. protected java.lang.String <B>middleName</B></PRE>
  809. <DL>
  810. <DD>The Person's Middle Name
  811. <P>
  812. <DL>
  813. </DL>
  814. </DL>
  815. <HR>
  816. <A NAME="lastName"><!-- --></A><H3>
  817. lastName</H3>
  818. <PRE>
  819. protected java.lang.String <B>lastName</B></PRE>
  820. <DL>
  821. <DD>The Person's Last Name
  822. <P>
  823. <DL>
  824. </DL>
  825. </DL>
  826. <HR>
  827. <A NAME="maidenName"><!-- --></A><H3>
  828. maidenName</H3>
  829. <PRE>
  830. protected java.lang.String <B>maidenName</B></PRE>
  831. <DL>
  832. <DD>The Person's Maiden Name
  833. <P>
  834. <DL>
  835. </DL>
  836. </DL>
  837. <HR>
  838. <A NAME="gender"><!-- --></A><H3>
  839. gender</H3>
  840. <PRE>
  841. protected java.lang.String <B>gender</B></PRE>
  842. <DL>
  843. <DD>The Person's Gender, Male or Female
  844. <P>
  845. <DL>
  846. </DL>
  847. </DL>
  848. <HR>
  849. <A NAME="eyeColor"><!-- --></A><H3>
  850. eyeColor</H3>
  851. <PRE>
  852. protected java.lang.String <B>eyeColor</B></PRE>
  853. <DL>
  854. <DD>The Person's Eye Color, Green/Hazel/Black etc
  855. <P>
  856. <DL>
  857. </DL>
  858. </DL>
  859. <HR>
  860. <A NAME="hairColor"><!-- --></A><H3>
  861. hairColor</H3>
  862. <PRE>
  863. protected java.lang.String <B>hairColor</B></PRE>
  864. <DL>
  865. <DD>The Person's Hair Color
  866. <P>
  867. <DL>
  868. </DL>
  869. </DL>
  870. <HR>
  871. <A NAME="height"><!-- --></A><H3>
  872. height</H3>
  873. <PRE>
  874. protected java.lang.String <B>height</B></PRE>
  875. <DL>
  876. <DD>The Person's Height (Customary or Metric)
  877. <P>
  878. <DL>
  879. </DL>
  880. </DL>
  881. <HR>
  882. <A NAME="weight"><!-- --></A><H3>
  883. weight</H3>
  884. <PRE>
  885. protected java.lang.String <B>weight</B></PRE>
  886. <DL>
  887. <DD>The Person's Weight (Customary or Metric)
  888. <P>
  889. <DL>
  890. </DL>
  891. </DL>
  892. <HR>
  893. <A NAME="birthday"><!-- --></A><H3>
  894. birthday</H3>
  895. <PRE>
  896. protected java.lang.String <B>birthday</B></PRE>
  897. <DL>
  898. <DD>The Person's Birthday in IS0-8601 Format YYYY-MM-DD
  899. <P>
  900. <DL>
  901. </DL>
  902. </DL>
  903. <HR>
  904. <A NAME="description"><!-- --></A><H3>
  905. description</H3>
  906. <PRE>
  907. protected java.lang.String <B>description</B></PRE>
  908. <DL>
  909. <DD>A Description of this Person or any other optional information
  910. <P>
  911. <DL>
  912. </DL>
  913. </DL>
  914. <HR>
  915. <A NAME="nickName"><!-- --></A><H3>
  916. nickName</H3>
  917. <PRE>
  918. protected java.lang.String <B>nickName</B></PRE>
  919. <DL>
  920. <DD>The Person's Nick Name
  921. <P>
  922. <DL>
  923. </DL>
  924. </DL>
  925. <HR>
  926. <A NAME="nationality"><!-- --></A><H3>
  927. nationality</H3>
  928. <PRE>
  929. protected java.lang.String <B>nationality</B></PRE>
  930. <DL>
  931. <DD>The Person's Nationality like American, Thai or Singaporean
  932. <P>
  933. <DL>
  934. </DL>
  935. </DL>
  936. <HR>
  937. <A NAME="photoBinary"><!-- --></A><H3>
  938. photoBinary</H3>
  939. <PRE>
  940. protected java.lang.String <B>photoBinary</B></PRE>
  941. <DL>
  942. <DD>The Person's Profile Picture in Binary or BASE64 Format
  943. <P>
  944. <DL>
  945. </DL>
  946. </DL>
  947. <HR>
  948. <A NAME="photoFileName"><!-- --></A><H3>
  949. photoFileName</H3>
  950. <PRE>
  951. protected java.lang.String <B>photoFileName</B></PRE>
  952. <DL>
  953. <DD>The File Name of the Person's Profile Picture
  954. <P>
  955. <DL>
  956. </DL>
  957. </DL>
  958. <HR>
  959. <A NAME="lastUpdate"><!-- --></A><H3>
  960. lastUpdate</H3>
  961. <PRE>
  962. protected java.lang.String <B>lastUpdate</B></PRE>
  963. <DL>
  964. <DD>The Date When this Person's Profile Was Last Updated in ISO-8601 Format YYYY-MM-DD
  965. <P>
  966. <DL>
  967. </DL>
  968. </DL>
  969. <HR>
  970. <A NAME="categories"><!-- --></A><H3>
  971. categories</H3>
  972. <PRE>
  973. protected java.util.ArrayList&lt;<A HREF="../hoipolloi/KeyValue.html" title="class in hoipolloi">KeyValue</A>&gt; <B>categories</B></PRE>
  974. <DL>
  975. <DD>The List of Categories that this Person is in (each category is a KeyValue pair in this ArrayList)
  976. <P>
  977. <DL>
  978. </DL>
  979. </DL>
  980. <HR>
  981. <A NAME="contacts"><!-- --></A><H3>
  982. contacts</H3>
  983. <PRE>
  984. protected java.util.ArrayList&lt;<A HREF="../hoipolloi/Contact.html" title="class in hoipolloi">Contact</A>&gt; <B>contacts</B></PRE>
  985. <DL>
  986. <DD>The List of Contacts for this Person
  987. <P>
  988. <DL>
  989. </DL>
  990. </DL>
  991. <HR>
  992. <A NAME="addresses"><!-- --></A><H3>
  993. addresses</H3>
  994. <PRE>
  995. protected java.util.ArrayList&lt;<A HREF="../hoipolloi/Address.html" title="class in hoipolloi">Address</A>&gt; <B>addresses</B></PRE>
  996. <DL>
  997. <DD>The List of Addresses for this Person
  998. <P>
  999. <DL>
  1000. </DL>
  1001. </DL>
  1002. <HR>
  1003. <A NAME="occupation"><!-- --></A><H3>
  1004. occupation</H3>
  1005. <PRE>
  1006. protected java.lang.String <B>occupation</B></PRE>
  1007. <DL>
  1008. <DD>The Person's Occupation
  1009. <P>
  1010. <DL>
  1011. </DL>
  1012. </DL>
  1013. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  1014. <A NAME="constructor_detail"><!-- --></A>
  1015. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  1016. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  1017. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  1018. <B>Constructor Detail</B></FONT></TH>
  1019. </TR>
  1020. </TABLE>
  1021. <A NAME="Person()"><!-- --></A><H3>
  1022. Person</H3>
  1023. <PRE>
  1024. public <B>Person</B>()</PRE>
  1025. <DL>
  1026. <DD>Creates a new instance of Person (for Adding a new one)
  1027. <P>
  1028. </DL>
  1029. <HR>
  1030. <A NAME="Person(int)"><!-- --></A><H3>
  1031. Person</H3>
  1032. <PRE>
  1033. public <B>Person</B>(int&nbsp;pid)
  1034. throws <A HREF="../hoipolloi/EmptyQueryException.html" title="class in hoipolloi">EmptyQueryException</A></PRE>
  1035. <DL>
  1036. <DD>Creates a new instance of Person given a Person ID and populates it from the database.
  1037. <P>
  1038. <DL>
  1039. <DT><B>Parameters:</B><DD><CODE>pid</CODE> - The Person ID
  1040. <DT><B>Throws:</B>
  1041. <DD><CODE>Throws</CODE> - an EmptyQueryException if there is an SQL error or if the PersonID doesn't exist.
  1042. <DD><CODE><A HREF="../hoipolloi/EmptyQueryException.html" title="class in hoipolloi">EmptyQueryException</A></CODE></DL>
  1043. </DL>
  1044. <!-- ============ METHOD DETAIL ========== -->
  1045. <A NAME="method_detail"><!-- --></A>
  1046. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  1047. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  1048. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  1049. <B>Method Detail</B></FONT></TH>
  1050. </TR>
  1051. </TABLE>
  1052. <A NAME="compareTo(java.lang.Object)"><!-- --></A><H3>
  1053. compareTo</H3>
  1054. <PRE>
  1055. public int <B>compareTo</B>(java.lang.Object&nbsp;o)</PRE>
  1056. <DL>
  1057. <DD>
  1058. <P>
  1059. <DD><DL>
  1060. <DT><B>Specified by:</B><DD><CODE>compareTo</CODE> in interface <CODE>java.lang.Comparable</CODE></DL>
  1061. </DD>
  1062. <DD><DL>
  1063. </DL>
  1064. </DD>
  1065. </DL>
  1066. <HR>
  1067. <A NAME="toString()"><!-- --></A><H3>
  1068. toString</H3>
  1069. <PRE>
  1070. public java.lang.String <B>toString</B>()</PRE>
  1071. <DL>
  1072. <DD>Outputs the Person's Full Name including Prefix, First Name, Middle Name, Last Name and Suffix.
  1073. If any of the parts of their name are blank or null, they are excluded. White space is also
  1074. trimmed from the beginning and end. Each part is seperated by a space.
  1075. <P>
  1076. <DD><DL>
  1077. <DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
  1078. </DD>
  1079. <DD><DL>
  1080. <DT><B>Returns:</B><DD>The Full Name of the Person, each part seperated by spaces.</DL>
  1081. </DD>
  1082. </DL>
  1083. <HR>
  1084. <A NAME="setNewPersonID()"><!-- --></A><H3>
  1085. setNewPersonID</H3>
  1086. <PRE>
  1087. private boolean <B>setNewPersonID</B>()</PRE>
  1088. <DL>
  1089. <DD>Sets the Person ID of a newly added Person.
  1090. saveToDatabase() calls this method internally
  1091. after inserting a new Person into the database.
  1092. This method sets the Person ID in this object to
  1093. the ID of that newly added Person.
  1094. <P>
  1095. <DD><DL>
  1096. </DL>
  1097. </DD>
  1098. <DD><DL>
  1099. <DT><B>Returns:</B><DD>True if Successful, otherwise false.</DL>
  1100. </DD>
  1101. </DL>
  1102. <HR>
  1103. <A NAME="saveToDatabase()"><!-- --></A><H3>
  1104. saveToDatabase</H3>
  1105. <PRE>
  1106. public boolean <B>saveToDatabase</B>()</PRE>
  1107. <DL>
  1108. <DD>Saves the contents of this object to the database.
  1109. <P>
  1110. <DD><DL>
  1111. </DL>
  1112. </DD>
  1113. <DD><DL>
  1114. <DT><B>Returns:</B><DD>True if Successful, Otherwise False.</DL>
  1115. </DD>
  1116. </DL>
  1117. <HR>
  1118. <A NAME="loadCategoriesFromDB()"><!-- --></A><H3>
  1119. loadCategoriesFromDB</H3>
  1120. <PRE>
  1121. private boolean <B>loadCategoriesFromDB</B>()</PRE>
  1122. <DL>
  1123. <DD>Loads the Categories that this Person is in.
  1124. When called, the categories list for this person
  1125. is cleared and the categories that this person is
  1126. in are reloaded from the database.
  1127. <P>
  1128. <DD><DL>
  1129. </DL>
  1130. </DD>
  1131. <DD><DL>
  1132. <DT><B>Returns:</B><DD>True if Successful, otherwise false.</DL>
  1133. </DD>
  1134. </DL>
  1135. <HR>
  1136. <A NAME="loadContactsFromDB()"><!-- --></A><H3>
  1137. loadContactsFromDB</H3>
  1138. <PRE>
  1139. private boolean <B>loadContactsFromDB</B>()</PRE>
  1140. <DL>
  1141. <DD>Loads the Contacts for this Person from the Database.
  1142. When called, the contact list for this person
  1143. is cleared and the contacts for this person are
  1144. reloaded from the database.
  1145. <P>
  1146. <DD><DL>
  1147. </DL>
  1148. </DD>
  1149. <DD><DL>
  1150. <DT><B>Returns:</B><DD>True if Successful, otherwise false.</DL>
  1151. </DD>
  1152. </DL>
  1153. <HR>
  1154. <A NAME="loadAddressesFromDB()"><!-- --></A><H3>
  1155. loadAddressesFromDB</H3>
  1156. <PRE>
  1157. private boolean <B>loadAddressesFromDB</B>()</PRE>
  1158. <DL>
  1159. <DD>Loads the Addresses for this Person from the Database.
  1160. When called, the address list for this person
  1161. is cleared and the addresses for this person are
  1162. reloaded from the database.
  1163. <P>
  1164. <DD><DL>
  1165. </DL>
  1166. </DD>
  1167. <DD><DL>
  1168. <DT><B>Returns:</B><DD>True if Successful, otherwise false.</DL>
  1169. </DD>
  1170. </DL>
  1171. <HR>
  1172. <A NAME="loadFromDatabase()"><!-- --></A><H3>
  1173. loadFromDatabase</H3>
  1174. <PRE>
  1175. protected boolean <B>loadFromDatabase</B>()</PRE>
  1176. <DL>
  1177. <DD>Load all the information for this Person from the Database.
  1178. <P>
  1179. <DD><DL>
  1180. </DL>
  1181. </DD>
  1182. <DD><DL>
  1183. <DT><B>Returns:</B><DD>True if Successful, otherwise false.</DL>
  1184. </DD>
  1185. </DL>
  1186. <HR>
  1187. <A NAME="setPrefix(java.lang.String)"><!-- --></A><H3>
  1188. setPrefix</H3>
  1189. <PRE>
  1190. public void <B>setPrefix</B>(java.lang.String&nbsp;prefix)</PRE>
  1191. <DL>
  1192. <DD>Sets the Person's Prefix (Mr, Mrs, Dr etc).
  1193. <P>
  1194. <DD><DL>
  1195. </DL>
  1196. </DD>
  1197. <DD><DL>
  1198. <DT><B>Parameters:</B><DD><CODE>prefix</CODE> - The Person's Prefix.</DL>
  1199. </DD>
  1200. </DL>
  1201. <HR>
  1202. <A NAME="setSuffix(java.lang.String)"><!-- --></A><H3>
  1203. setSuffix</H3>
  1204. <PRE>
  1205. public void <B>setSuffix</B>(java.lang.String&nbsp;suffix)</PRE>
  1206. <DL>
  1207. <DD>Sets the Person's Suffix (Jr, Sr, III etc).
  1208. <P>
  1209. <DD><DL>
  1210. </DL>
  1211. </DD>
  1212. <DD><DL>
  1213. <DT><B>Parameters:</B><DD><CODE>suffix</CODE> - The Person's Suffix.</DL>
  1214. </DD>
  1215. </DL>
  1216. <HR>
  1217. <A NAME="setFirstName(java.lang.String)"><!-- --></A><H3>
  1218. setFirstName</H3>
  1219. <PRE>
  1220. public void <B>setFirstName</B>(java.lang.String&nbsp;firstname)</PRE>
  1221. <DL>
  1222. <DD>Sets the Person's First Name.
  1223. <P>
  1224. <DD><DL>
  1225. </DL>
  1226. </DD>
  1227. <DD><DL>
  1228. <DT><B>Parameters:</B><DD><CODE>firstname</CODE> - The Person's First Name.</DL>
  1229. </DD>
  1230. </DL>
  1231. <HR>
  1232. <A NAME="setMiddleName(java.lang.String)"><!-- --></A><H3>
  1233. setMiddleName</H3>
  1234. <PRE>
  1235. public void <B>setMiddleName</B>(java.lang.String&nbsp;middlename)</PRE>
  1236. <DL>
  1237. <DD>Sets the Person's Middle Name.
  1238. <P>
  1239. <DD><DL>
  1240. </DL>
  1241. </DD>
  1242. <DD><DL>
  1243. <DT><B>Parameters:</B><DD><CODE>middlename</CODE> - The Person's Middle Name</DL>
  1244. </DD>
  1245. </DL>
  1246. <HR>
  1247. <A NAME="setLastName(java.lang.String)"><!-- --></A><H3>
  1248. setLastName</H3>
  1249. <PRE>
  1250. public void <B>setLastName</B>(java.lang.String&nbsp;lastname)</PRE>
  1251. <DL>
  1252. <DD>Sets the Person's Last Name.
  1253. <P>
  1254. <DD><DL>
  1255. </DL>
  1256. </DD>
  1257. <DD><DL>
  1258. <DT><B>Parameters:</B><DD><CODE>lastname</CODE> - The Person's Last Name</DL>
  1259. </DD>
  1260. </DL>
  1261. <HR>
  1262. <A NAME="setMaidenName(java.lang.String)"><!-- --></A><H3>
  1263. setMaidenName</H3>
  1264. <PRE>
  1265. public void <B>setMaidenName</B>(java.lang.String&nbsp;maidenname)</PRE>
  1266. <DL>
  1267. <DD>Sets the Person's Maiden Name.
  1268. <P>
  1269. <DD><DL>
  1270. </DL>
  1271. </DD>
  1272. <DD><DL>
  1273. <DT><B>Parameters:</B><DD><CODE>maidenname</CODE> - The Person's Maiden Name</DL>
  1274. </DD>
  1275. </DL>
  1276. <HR>
  1277. <A NAME="setGender(java.lang.String)"><!-- --></A><H3>
  1278. setGender</H3>
  1279. <PRE>
  1280. public void <B>setGender</B>(java.lang.String&nbsp;gender)</PRE>
  1281. <DL>
  1282. <DD>Sets the Person's Gender.
  1283. Hopefully Male or Female ;)
  1284. <P>
  1285. <DD><DL>
  1286. </DL>
  1287. </DD>
  1288. <DD><DL>
  1289. <DT><B>Parameters:</B><DD><CODE>gender</CODE> - The Person's Gender, Male or Female.</DL>
  1290. </DD>
  1291. </DL>
  1292. <HR>
  1293. <A NAME="setEyeColor(java.lang.String)"><!-- --></A><H3>
  1294. setEyeColor</H3>
  1295. <PRE>
  1296. public void <B>setEyeColor</B>(java.lang.String&nbsp;eyeColor)</PRE>
  1297. <DL>
  1298. <DD>Sets the Person's Eye Color
  1299. <P>
  1300. <DD><DL>
  1301. </DL>
  1302. </DD>
  1303. <DD><DL>
  1304. <DT><B>Parameters:</