/javadoc/hoipolloi/Person.html

http://hoipolloi.googlecode.com/ · HTML · 2260 lines · 2009 code · 233 blank · 18 comment · 0 complexity · 114a52b3bf5d1b0f356fbe5818aabf1a MD5 · raw 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:</B><DD><CODE>eyeColor</CODE> - The Person's Eye Color</DL>
  1305. </DD>
  1306. </DL>
  1307. <HR>
  1308. <A NAME="setHairColor(java.lang.String)"><!-- --></A><H3>
  1309. setHairColor</H3>
  1310. <PRE>
  1311. public void <B>setHairColor</B>(java.lang.String&nbsp;hairColor)</PRE>
  1312. <DL>
  1313. <DD>Sets the Person's Hair Color
  1314. <P>
  1315. <DD><DL>
  1316. </DL>
  1317. </DD>
  1318. <DD><DL>
  1319. <DT><B>Parameters:</B><DD><CODE>hairColor</CODE> - The Person's Hair Color</DL>
  1320. </DD>
  1321. </DL>
  1322. <HR>
  1323. <A NAME="setHeight(java.lang.String)"><!-- --></A><H3>
  1324. setHeight</H3>
  1325. <PRE>
  1326. public void <B>setHeight</B>(java.lang.String&nbsp;height)</PRE>
  1327. <DL>
  1328. <DD>Sets the Person's Height
  1329. <P>
  1330. <DD><DL>
  1331. </DL>
  1332. </DD>
  1333. <DD><DL>
  1334. <DT><B>Parameters:</B><DD><CODE>height</CODE> - The Person's Height</DL>
  1335. </DD>
  1336. </DL>
  1337. <HR>
  1338. <A NAME="setWeight(java.lang.String)"><!-- --></A><H3>
  1339. setWeight</H3>
  1340. <PRE>
  1341. public void <B>setWeight</B>(java.lang.String&nbsp;weight)</PRE>
  1342. <DL>
  1343. <DD>Sets the Person's Weight
  1344. <P>
  1345. <DD><DL>
  1346. </DL>
  1347. </DD>
  1348. <DD><DL>
  1349. <DT><B>Parameters:</B><DD><CODE>weight</CODE> - The Person's Weight</DL>
  1350. </DD>
  1351. </DL>
  1352. <HR>
  1353. <A NAME="setBirthday(java.lang.String)"><!-- --></A><H3>
  1354. setBirthday</H3>
  1355. <PRE>
  1356. public void <B>setBirthday</B>(java.lang.String&nbsp;birthday)</PRE>
  1357. <DL>
  1358. <DD>Sets the Person's Birthday.
  1359. The format is YYYY-MM-DD.
  1360. <P>
  1361. <DD><DL>
  1362. </DL>
  1363. </DD>
  1364. <DD><DL>
  1365. <DT><B>Parameters:</B><DD><CODE>birthday</CODE> - The Person's Birthday</DL>
  1366. </DD>
  1367. </DL>
  1368. <HR>
  1369. <A NAME="setDescription(java.lang.String)"><!-- --></A><H3>
  1370. setDescription</H3>
  1371. <PRE>
  1372. public void <B>setDescription</B>(java.lang.String&nbsp;desc)</PRE>
  1373. <DL>
  1374. <DD>Sets the Description for this Person
  1375. <P>
  1376. <DD><DL>
  1377. </DL>
  1378. </DD>
  1379. <DD><DL>
  1380. <DT><B>Parameters:</B><DD><CODE>desc</CODE> - The Person's Description</DL>
  1381. </DD>
  1382. </DL>
  1383. <HR>
  1384. <A NAME="setNickName(java.lang.String)"><!-- --></A><H3>
  1385. setNickName</H3>
  1386. <PRE>
  1387. public void <B>setNickName</B>(java.lang.String&nbsp;nickname)</PRE>
  1388. <DL>
  1389. <DD>Sets the Person's Nick Name
  1390. <P>
  1391. <DD><DL>
  1392. </DL>
  1393. </DD>
  1394. <DD><DL>
  1395. <DT><B>Parameters:</B><DD><CODE>nickname</CODE> - The Person's Nick Name</DL>
  1396. </DD>
  1397. </DL>
  1398. <HR>
  1399. <A NAME="setNationality(java.lang.String)"><!-- --></A><H3>
  1400. setNationality</H3>
  1401. <PRE>
  1402. public void <B>setNationality</B>(java.lang.String&nbsp;nationality)</PRE>
  1403. <DL>
  1404. <DD>Sets the Person's Nationality
  1405. <P>
  1406. <DD><DL>
  1407. </DL>
  1408. </DD>
  1409. <DD><DL>
  1410. <DT><B>Parameters:</B><DD><CODE>nationality</CODE> - The Person's Nationality</DL>
  1411. </DD>
  1412. </DL>
  1413. <HR>
  1414. <A NAME="setPhotoBinary(java.lang.String)"><!-- --></A><H3>
  1415. setPhotoBinary</H3>
  1416. <PRE>
  1417. public void <B>setPhotoBinary</B>(java.lang.String&nbsp;photoblob)</PRE>
  1418. <DL>
  1419. <DD>Stores the Person's Photo as a binary blob.
  1420. <P>
  1421. <DD><DL>
  1422. </DL>
  1423. </DD>
  1424. <DD><DL>
  1425. <DT><B>Parameters:</B><DD><CODE>photoblob</CODE> - The binary/base64 of a Photo</DL>
  1426. </DD>
  1427. </DL>
  1428. <HR>
  1429. <A NAME="setPhotoFileName(java.lang.String)"><!-- --></A><H3>
  1430. setPhotoFileName</H3>
  1431. <PRE>
  1432. public void <B>setPhotoFileName</B>(java.lang.String&nbsp;filename)</PRE>
  1433. <DL>
  1434. <DD>Sets the Person's Photo Filename
  1435. <P>
  1436. <DD><DL>
  1437. </DL>
  1438. </DD>
  1439. <DD><DL>
  1440. <DT><B>Parameters:</B><DD><CODE>filename</CODE> - The Person's Photo Filename</DL>
  1441. </DD>
  1442. </DL>
  1443. <HR>
  1444. <A NAME="setLastUpdate()"><!-- --></A><H3>
  1445. setLastUpdate</H3>
  1446. <PRE>
  1447. public void <B>setLastUpdate</B>()</PRE>
  1448. <DL>
  1449. <DD>Sets the Person's Last Profile Update to right now.
  1450. <P>
  1451. <DD><DL>
  1452. </DL>
  1453. </DD>
  1454. <DD><DL>
  1455. </DL>
  1456. </DD>
  1457. </DL>
  1458. <HR>
  1459. <A NAME="setOccupation(java.lang.String)"><!-- --></A><H3>
  1460. setOccupation</H3>
  1461. <PRE>
  1462. public void <B>setOccupation</B>(java.lang.String&nbsp;occupation)</PRE>
  1463. <DL>
  1464. <DD>Sets the Person's Occupation
  1465. <P>
  1466. <DD><DL>
  1467. </DL>
  1468. </DD>
  1469. <DD><DL>
  1470. <DT><B>Parameters:</B><DD><CODE>occupation</CODE> - The Person's Occupation</DL>
  1471. </DD>
  1472. </DL>
  1473. <HR>
  1474. <A NAME="getPersonID()"><!-- --></A><H3>
  1475. getPersonID</H3>
  1476. <PRE>
  1477. public int <B>getPersonID</B>()</PRE>
  1478. <DL>
  1479. <DD>Gets the Person's ID
  1480. <P>
  1481. <DD><DL>
  1482. </DL>
  1483. </DD>
  1484. <DD><DL>
  1485. <DT><B>Returns:</B><DD>The Person's ID</DL>
  1486. </DD>
  1487. </DL>
  1488. <HR>
  1489. <A NAME="getPrefix()"><!-- --></A><H3>
  1490. getPrefix</H3>
  1491. <PRE>
  1492. public java.lang.String <B>getPrefix</B>()</PRE>
  1493. <DL>
  1494. <DD>Gets the Person's Name Prefix
  1495. <P>
  1496. <DD><DL>
  1497. </DL>
  1498. </DD>
  1499. <DD><DL>
  1500. <DT><B>Returns:</B><DD>The Person's Prefix (if available, like Mr or Mrs)</DL>
  1501. </DD>
  1502. </DL>
  1503. <HR>
  1504. <A NAME="getSuffix()"><!-- --></A><H3>
  1505. getSuffix</H3>
  1506. <PRE>
  1507. public java.lang.String <B>getSuffix</B>()</PRE>
  1508. <DL>
  1509. <DD>Gets the Person's Name Suffix
  1510. <P>
  1511. <DD><DL>
  1512. </DL>
  1513. </DD>
  1514. <DD><DL>
  1515. <DT><B>Returns:</B><DD>The Person's Suffix (if available, like Jr or Sr)</DL>
  1516. </DD>
  1517. </DL>
  1518. <HR>
  1519. <A NAME="getFirstName()"><!-- --></A><H3>
  1520. getFirstName</H3>
  1521. <PRE>
  1522. public java.lang.String <B>getFirstName</B>()</PRE>
  1523. <DL>
  1524. <DD>Gets the Person's First Name
  1525. <P>
  1526. <DD><DL>
  1527. </DL>
  1528. </DD>
  1529. <DD><DL>
  1530. <DT><B>Returns:</B><DD>The Person's First Name</DL>
  1531. </DD>
  1532. </DL>
  1533. <HR>
  1534. <A NAME="getMiddleName()"><!-- --></A><H3>
  1535. getMiddleName</H3>
  1536. <PRE>
  1537. public java.lang.String <B>getMiddleName</B>()</PRE>
  1538. <DL>
  1539. <DD>Gets the Person's Middle Name
  1540. <P>
  1541. <DD><DL>
  1542. </DL>
  1543. </DD>
  1544. <DD><DL>
  1545. <DT><B>Returns:</B><DD>The Person's Middle Name</DL>
  1546. </DD>
  1547. </DL>
  1548. <HR>
  1549. <A NAME="getLastName()"><!-- --></A><H3>
  1550. getLastName</H3>
  1551. <PRE>
  1552. public java.lang.String <B>getLastName</B>()</PRE>
  1553. <DL>
  1554. <DD>Gets the Person's Last Name
  1555. <P>
  1556. <DD><DL>
  1557. </DL>
  1558. </DD>
  1559. <DD><DL>
  1560. <DT><B>Returns:</B><DD>The Person's Last Name</DL>
  1561. </DD>
  1562. </DL>
  1563. <HR>
  1564. <A NAME="getMaidenName()"><!-- --></A><H3>
  1565. getMaidenName</H3>
  1566. <PRE>
  1567. public java.lang.String <B>getMaidenName</B>()</PRE>
  1568. <DL>
  1569. <DD>Gets the Person's Maiden Name
  1570. <P>
  1571. <DD><DL>
  1572. </DL>
  1573. </DD>
  1574. <DD><DL>
  1575. <DT><B>Returns:</B><DD>The Person's Maiden Name</DL>
  1576. </DD>
  1577. </DL>
  1578. <HR>
  1579. <A NAME="getGender()"><!-- --></A><H3>
  1580. getGender</H3>
  1581. <PRE>
  1582. public java.lang.String <B>getGender</B>()</PRE>
  1583. <DL>
  1584. <DD>Gets the Person's Gender
  1585. <P>
  1586. <DD><DL>
  1587. </DL>
  1588. </DD>
  1589. <DD><DL>
  1590. <DT><B>Returns:</B><DD>The Person's Gender (Male or Female, hopefully)</DL>
  1591. </DD>
  1592. </DL>
  1593. <HR>
  1594. <A NAME="getEyeColor()"><!-- --></A><H3>
  1595. getEyeColor</H3>
  1596. <PRE>
  1597. public java.lang.String <B>getEyeColor</B>()</PRE>
  1598. <DL>
  1599. <DD>Gets the Person's Eye Color
  1600. <P>
  1601. <DD><DL>
  1602. </DL>
  1603. </DD>
  1604. <DD><DL>
  1605. <DT><B>Returns:</B><DD>The Person's Eye Color</DL>
  1606. </DD>
  1607. </DL>
  1608. <HR>
  1609. <A NAME="getHairColor()"><!-- --></A><H3>
  1610. getHairColor</H3>
  1611. <PRE>
  1612. public java.lang.String <B>getHairColor</B>()</PRE>
  1613. <DL>
  1614. <DD>Gets the Person's Hair Color
  1615. <P>
  1616. <DD><DL>
  1617. </DL>
  1618. </DD>
  1619. <DD><DL>
  1620. <DT><B>Returns:</B><DD>The Person's Hair Color</DL>
  1621. </DD>
  1622. </DL>
  1623. <HR>
  1624. <A NAME="getHeight()"><!-- --></A><H3>
  1625. getHeight</H3>
  1626. <PRE>
  1627. public java.lang.String <B>getHeight</B>()</PRE>
  1628. <DL>
  1629. <DD>Gets the Person's Height
  1630. <P>
  1631. <DD><DL>
  1632. </DL>
  1633. </DD>
  1634. <DD><DL>
  1635. <DT><B>Returns:</B><DD>The Person's Height</DL>
  1636. </DD>
  1637. </DL>
  1638. <HR>
  1639. <A NAME="getWeight()"><!-- --></A><H3>
  1640. getWeight</H3>
  1641. <PRE>
  1642. public java.lang.String <B>getWeight</B>()</PRE>
  1643. <DL>
  1644. <DD>Gets the Person's Weight
  1645. <P>
  1646. <DD><DL>
  1647. </DL>
  1648. </DD>
  1649. <DD><DL>
  1650. <DT><B>Returns:</B><DD>The Person's Weight</DL>
  1651. </DD>
  1652. </DL>
  1653. <HR>
  1654. <A NAME="getBirthday()"><!-- --></A><H3>
  1655. getBirthday</H3>
  1656. <PRE>
  1657. public java.lang.String <B>getBirthday</B>()</PRE>
  1658. <DL>
  1659. <DD>Gets the Person's Birthday
  1660. <P>
  1661. <DD><DL>
  1662. </DL>
  1663. </DD>
  1664. <DD><DL>
  1665. <DT><B>Returns:</B><DD>The Person's Birthday (YYYY-MM-DD)</DL>
  1666. </DD>
  1667. </DL>
  1668. <HR>
  1669. <A NAME="getDescription()"><!-- --></A><H3>
  1670. getDescription</H3>
  1671. <PRE>
  1672. public java.lang.String <B>getDescription</B>()</PRE>
  1673. <DL>
  1674. <DD>Gets the Person's Description
  1675. <P>
  1676. <DD><DL>
  1677. </DL>
  1678. </DD>
  1679. <DD><DL>
  1680. <DT><B>Returns:</B><DD>The Person's Description</DL>
  1681. </DD>
  1682. </DL>
  1683. <HR>
  1684. <A NAME="getNickName()"><!-- --></A><H3>
  1685. getNickName</H3>
  1686. <PRE>
  1687. public java.lang.String <B>getNickName</B>()</PRE>
  1688. <DL>
  1689. <DD>Gets the Person's Nick Name
  1690. <P>
  1691. <DD><DL>
  1692. </DL>
  1693. </DD>
  1694. <DD><DL>
  1695. <DT><B>Returns:</B><DD>The Person's Nick Name</DL>
  1696. </DD>
  1697. </DL>
  1698. <HR>
  1699. <A NAME="getNationality()"><!-- --></A><H3>
  1700. getNationality</H3>
  1701. <PRE>
  1702. public java.lang.String <B>getNationality</B>()</PRE>
  1703. <DL>
  1704. <DD>Gets the Person's Nationality
  1705. <P>
  1706. <DD><DL>
  1707. </DL>
  1708. </DD>
  1709. <DD><DL>
  1710. <DT><B>Returns:</B><DD>The Person's Nationality</DL>
  1711. </DD>
  1712. </DL>
  1713. <HR>
  1714. <A NAME="getPhotoBinary()"><!-- --></A><H3>
  1715. getPhotoBinary</H3>
  1716. <PRE>
  1717. public java.lang.String <B>getPhotoBinary</B>()</PRE>
  1718. <DL>
  1719. <DD>Gets the Person's Photo
  1720. <P>
  1721. <DD><DL>
  1722. </DL>
  1723. </DD>
  1724. <DD><DL>
  1725. <DT><B>Returns:</B><DD>A binary or base64 string of the Person's Photo</DL>
  1726. </DD>
  1727. </DL>
  1728. <HR>
  1729. <A NAME="getPhotoFileName()"><!-- --></A><H3>
  1730. getPhotoFileName</H3>
  1731. <PRE>
  1732. public java.lang.String <B>getPhotoFileName</B>()</PRE>
  1733. <DL>
  1734. <DD>Gets the Person's Photo Filename.
  1735. <P>
  1736. <DD><DL>
  1737. </DL>
  1738. </DD>
  1739. <DD><DL>
  1740. <DT><B>Returns:</B><DD>The Person's Photo Filename and Path</DL>
  1741. </DD>
  1742. </DL>
  1743. <HR>
  1744. <A NAME="getLastUpdate()"><!-- --></A><H3>
  1745. getLastUpdate</H3>
  1746. <PRE>
  1747. public java.lang.String <B>getLastUpdate</B>()</PRE>
  1748. <DL>
  1749. <DD>Gets the date when the Person's profile was last updated.
  1750. The date returned is in the YYYY-MM-DD format.
  1751. <P>
  1752. <DD><DL>
  1753. </DL>
  1754. </DD>
  1755. <DD><DL>
  1756. <DT><B>Returns:</B><DD>The Last Update Date (YYYY-MM-DD)</DL>
  1757. </DD>
  1758. </DL>
  1759. <HR>
  1760. <A NAME="getOccupation()"><!-- --></A><H3>
  1761. getOccupation</H3>
  1762. <PRE>
  1763. public java.lang.String <B>getOccupation</B>()</PRE>
  1764. <DL>
  1765. <DD>Gets the Person's Occupation
  1766. <P>
  1767. <DD><DL>
  1768. </DL>
  1769. </DD>
  1770. <DD><DL>
  1771. <DT><B>Returns:</B><DD>The Person's Occupation</DL>
  1772. </DD>
  1773. </DL>
  1774. <HR>
  1775. <A NAME="getCategories()"><!-- --></A><H3>
  1776. getCategories</H3>
  1777. <PRE>
  1778. public java.util.ArrayList <B>getCategories</B>()</PRE>
  1779. <DL>
  1780. <DD>Gets the list of Categories this Person is in
  1781. <P>
  1782. <DD><DL>
  1783. </DL>
  1784. </DD>
  1785. <DD><DL>
  1786. <DT><B>Returns:</B><DD>The Categories list this Person is in</DL>
  1787. </DD>
  1788. </DL>
  1789. <HR>
  1790. <A NAME="getAgeThisYear()"><!-- --></A><H3>
  1791. getAgeThisYear</H3>
  1792. <PRE>
  1793. protected long <B>getAgeThisYear</B>()</PRE>
  1794. <DL>
  1795. <DD>Gets the Person's Age this Year.
  1796. Used for showing people with birthdays this month and how old they will be.
  1797. <P>
  1798. <DD><DL>
  1799. </DL>
  1800. </DD>
  1801. <DD><DL>
  1802. <DT><B>Returns:</B><DD>The Person's Age this Year or -1 if their birthday isn't set.</DL>
  1803. </DD>
  1804. </DL>
  1805. <HR>
  1806. <A NAME="getCurrentAge()"><!-- --></A><H3>
  1807. getCurrentAge</H3>
  1808. <PRE>
  1809. public long <B>getCurrentAge</B>()</PRE>
  1810. <DL>
  1811. <DD>Gets the Person's current Age.
  1812. All times are relative to the user's machine.
  1813. <P>
  1814. <DD><DL>
  1815. </DL>
  1816. </DD>
  1817. <DD><DL>
  1818. <DT><B>Returns:</B><DD>The Person's Current Age or -1 if the Person's Birthday isn't set.</DL>
  1819. </DD>
  1820. </DL>
  1821. <HR>
  1822. <A NAME="addAddress(hoipolloi.Address)"><!-- --></A><H3>
  1823. addAddress</H3>
  1824. <PRE>
  1825. protected boolean <B>addAddress</B>(<A HREF="../hoipolloi/Address.html" title="class in hoipolloi">Address</A>&nbsp;newAddress)</PRE>
  1826. <DL>
  1827. <DD>Adds an Address to this Person
  1828. <P>
  1829. <DD><DL>
  1830. </DL>
  1831. </DD>
  1832. <DD><DL>
  1833. </DL>
  1834. </DD>
  1835. </DL>
  1836. <HR>
  1837. <A NAME="addCategory(int)"><!-- --></A><H3>
  1838. addCategory</H3>
  1839. <PRE>
  1840. protected boolean <B>addCategory</B>(int&nbsp;categoryTypeID)</PRE>
  1841. <DL>
  1842. <DD>Adds this Person to a Category
  1843. This method can only be called for new people
  1844. after saveToDatabase has been called at least once.
  1845. <P>
  1846. <DD><DL>
  1847. </DL>
  1848. </DD>
  1849. <DD><DL>
  1850. <DT><B>Parameters:</B><DD><CODE>categoryTypeID</CODE> - The Category ID to Add this Person to.
  1851. <DT><B>Returns:</B><DD>True if successful, otherwise false.</DL>
  1852. </DD>
  1853. </DL>
  1854. <HR>
  1855. <A NAME="getCategoriesAsString()"><!-- --></A><H3>
  1856. getCategoriesAsString</H3>
  1857. <PRE>
  1858. protected java.lang.String <B>getCategoriesAsString</B>()</PRE>
  1859. <DL>
  1860. <DD>Gets the Categories that the Person is in as a String
  1861. <P>
  1862. <DD><DL>
  1863. </DL>
  1864. </DD>
  1865. <DD><DL>
  1866. <DT><B>Returns:</B><DD>The categories that the Person is in, all in a string.</DL>
  1867. </DD>
  1868. </DL>
  1869. <HR>
  1870. <A NAME="removeCategory(int)"><!-- --></A><H3>
  1871. removeCategory</H3>
  1872. <PRE>
  1873. protected boolean <B>removeCategory</B>(int&nbsp;categoryTypeID)</PRE>
  1874. <DL>
  1875. <DD>Removes this Person from a Category.
  1876. <P>
  1877. <DD><DL>
  1878. </DL>
  1879. </DD>
  1880. <DD><DL>
  1881. <DT><B>Parameters:</B><DD><CODE>categoryTypeID</CODE> - The ID of the Category Type to remove this Person from.
  1882. <DT><B>Returns:</B><DD>True if Successful, otherwise false.</DL>
  1883. </DD>
  1884. </DL>
  1885. <HR>
  1886. <A NAME="getContacts()"><!-- --></A><H3>
  1887. getContacts</H3>
  1888. <PRE>
  1889. protected java.util.ArrayList <B>getContacts</B>()</PRE>
  1890. <DL>
  1891. <DD>Gets the Person's Contact List
  1892. <P>
  1893. <DD><DL>
  1894. </DL>
  1895. </DD>
  1896. <DD><DL>
  1897. <DT><B>Returns:</B><DD>The Person's Contact List</DL>
  1898. </DD>
  1899. </DL>
  1900. <HR>
  1901. <A NAME="getAddresses()"><!-- --></A><H3>
  1902. getAddresses</H3>
  1903. <PRE>
  1904. public java.util.ArrayList <B>getAddresses</B>()</PRE>
  1905. <DL>
  1906. <DD>Gets the Person's Address List
  1907. <P>
  1908. <DD><DL>
  1909. </DL>
  1910. </DD>
  1911. <DD><DL>
  1912. <DT><B>Returns:</B><DD>The Person's List of Addresses</DL>
  1913. </DD>
  1914. </DL>
  1915. <HR>
  1916. <A NAME="addContact(int, java.lang.String)"><!-- --></A><H3>
  1917. addContact</H3>
  1918. <PRE>
  1919. protected boolean <B>addContact</B>(int&nbsp;contactTypeID,
  1920. java.lang.String&nbsp;contact)</PRE>
  1921. <DL>
  1922. <DD>Add a Contact for a Person.
  1923. This method can only be called for new people
  1924. after saveToDatabase has been called at least once.
  1925. <P>
  1926. <DD><DL>
  1927. </DL>
  1928. </DD>
  1929. <DD><DL>
  1930. <DT><B>Parameters:</B><DD><CODE>contactTypeID</CODE> - The ID of the Contact Type to Add.<DD><CODE>contact</CODE> - The Contact to Add
  1931. <DT><B>Returns:</B><DD>True if successful, otherwise false.</DL>
  1932. </DD>
  1933. </DL>
  1934. <HR>
  1935. <A NAME="removeAddress(int)"><!-- --></A><H3>
  1936. removeAddress</H3>
  1937. <PRE>
  1938. protected boolean <B>removeAddress</B>(int&nbsp;addressID)</PRE>
  1939. <DL>
  1940. <DD>Removes an Address for this Person
  1941. <P>
  1942. <DD><DL>
  1943. </DL>
  1944. </DD>
  1945. <DD><DL>
  1946. <DT><B>Parameters:</B><DD><CODE>addressID</CODE> - The ID of the Address from the database to remove
  1947. <DT><B>Returns:</B><DD>True if Successful, otherwise false</DL>
  1948. </DD>
  1949. </DL>
  1950. <HR>
  1951. <A NAME="getContactIDFromStrings(java.lang.String, java.lang.String)"><!-- --></A><H3>
  1952. getContactIDFromStrings</H3>
  1953. <PRE>
  1954. protected int <B>getContactIDFromStrings</B>(java.lang.String&nbsp;strContactType,
  1955. java.lang.String&nbsp;strContact)</PRE>
  1956. <DL>
  1957. <DD>Gets the ID number of a contact given the contact and type as strings.
  1958. This ID number is the one from the database for the contact record.
  1959. <P>
  1960. <DD><DL>
  1961. </DL>
  1962. </DD>
  1963. <DD><DL>
  1964. <DT><B>Parameters:</B><DD><CODE>strContactType</CODE> - The Contact Type<DD><CODE>strContact</CODE> - The Contact
  1965. <DT><B>Returns:</B><DD>The Contact ID Number, or -1 if it can't locate it.</DL>
  1966. </DD>
  1967. </DL>
  1968. <HR>
  1969. <A NAME="removeContact(java.lang.String, java.lang.String)"><!-- --></A><H3>
  1970. removeContact</H3>
  1971. <PRE>
  1972. protected boolean <B>removeContact</B>(java.lang.String&nbsp;contactType,
  1973. java.lang.String&nbsp;contact)</PRE>
  1974. <DL>
  1975. <DD>Removes a Contact for this Person.
  1976. <P>
  1977. <DD><DL>
  1978. </DL>
  1979. </DD>
  1980. <DD><DL>
  1981. <DT><B>Parameters:</B><DD><CODE>contactType</CODE> - The Contact Type String<DD><CODE>contact</CODE> - The Contact String
  1982. <DT><B>Returns:</B><DD>True if Successful, otherwise false</DL>
  1983. </DD>
  1984. </DL>
  1985. <HR>
  1986. <A NAME="removeContact(int)"><!-- --></A><H3>
  1987. removeContact</H3>
  1988. <PRE>
  1989. protected boolean <B>removeContact</B>(int&nbsp;contactID)</PRE>
  1990. <DL>
  1991. <DD>Removes a Contact for this Person.
  1992. <P>
  1993. <DD><DL>
  1994. </DL>
  1995. </DD>
  1996. <DD><DL>
  1997. <DT><B>Parameters:</B><DD><CODE>contactID</CODE> - The ID of the Contact from the database to remove
  1998. <DT><B>Returns:</B><DD>True if Successful, otherwise false</DL>
  1999. </DD>
  2000. </DL>
  2001. <HR>
  2002. <A NAME="main(java.lang.String[])"><!-- --></A><H3>
  2003. main</H3>
  2004. <PRE>
  2005. public static void <B>main</B>(java.lang.String[]&nbsp;args)</PRE>
  2006. <DL>
  2007. <DD>Used for testing and debugging methods in this class.
  2008. <P>
  2009. <DD><DL>
  2010. </DL>
  2011. </DD>
  2012. <DD><DL>
  2013. <DT><B>Parameters:</B><DD><CODE>args</CODE> - Not Used</DL>
  2014. </DD>
  2015. </DL>
  2016. <!-- ========= END OF CLASS DATA ========= -->
  2017. <HR>
  2018. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  2019. <A NAME="navbar_bottom"><!-- --></A>
  2020. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  2021. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  2022. <TR>
  2023. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  2024. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  2025. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  2026. <TR ALIGN="center" VALIGN="top">
  2027. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../hoipolloi/package-summary.html"><F