Congratulations!

[Valid RSS] This is a valid RSS feed.

Recommendations

This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

Source: http://notesspeak.blogspot.com/feeds/posts/default?alt=rss

  1. <?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-4805395909933518229</atom:id><lastBuildDate>Sun, 24 Mar 2024 07:10:09 +0000</lastBuildDate><category>xpages</category><category>Java</category><category>DB2</category><category>Bootstrap</category><category>education</category><category>Eclipse</category><category>JDBC</category><category>Oracle</category><category>javascript</category><category>XSL-FO</category><category>jQuery</category><category>Angular.JS</category><category>ExtJS</category><category>CSS</category><category>dojo</category><category>php</category><title>Notes Speak</title><description>To share the occasional insight relating to XPages programming in IBM Notes and Domino. (2013-2015) &lt;br&gt;&lt;br&gt;&#xa;To share insights that I discover as I delve deeper in the world of Java Programming (2016 - ?)  </description><link>http://notesspeak.blogspot.com/</link><managingEditor>noreply@blogger.com (Unknown)</managingEditor><generator>Blogger</generator><openSearch:totalResults>77</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-9145408229409616236</guid><pubDate>Thu, 22 Sep 2016 02:05:00 +0000</pubDate><atom:updated>2016-09-21T20:05:00.467-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Eclipse</category><category domain="http://www.blogger.com/atom/ns#">Java</category><title>Eclipse Tip: Using an Built-In Variable to Customize a Linked File Location in the Build Path</title><description>&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;
  2. Today, we came across this issue and I thought I would share this information since we couldn’t find much out on the net about this subject. &lt;i&gt;Warning: This is a very narrow use case.&lt;/i&gt;&lt;/div&gt;
  3. &lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;
  4. &lt;br /&gt;&lt;/div&gt;
  5. &lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;
  6. &lt;i&gt;Author Note:&lt;/i&gt; This post is my first java-centric blog since I have moved on from my Domino/XPages role. I hope to blog more about java related topics in the coming months, thanks to those who encouraged me to continue blogging. I have several ideas in the pipeline.&lt;/div&gt;
  7. &lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;
  8. &lt;br /&gt;&lt;/div&gt;
  9. &lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;
  10. &lt;b&gt;&lt;i&gt;Background:&lt;/i&gt;&lt;/b&gt;&amp;nbsp; My Tech Lead and I are creating three java web services.&amp;nbsp; We often pair program but also want to be able to work alone. We use Rational Application Developer, which is a flavor of the Eclipse IDE. To manage our code, we use SVN for source control, and I making the assumption that everyone knows the basics of how that works. We are both currently working local, and the code is not on a shared server yet.&lt;/div&gt;
  11. &lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;
  12. &lt;br /&gt;&lt;/div&gt;
  13. &lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;
  14. As part of our project, there are some file resources in which we need to read. These resources are in a folder that we need to add to our build path and to do so we use a linked source folder. &amp;nbsp;Also worth noting, we are not allowed to use Maven in our environment.&lt;/div&gt;
  15. &lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;
  16. &lt;br /&gt;&lt;/div&gt;
  17. &lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;
  18. &lt;b style=&quot;background-color: white;&quot;&gt;&lt;i&gt;The Problem&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;:&amp;nbsp; When each of us, link to the source folder on our hard drive it is stored with an absolute path. When we commit this to our shared repository and then&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;background-color: white;&quot;&gt;Update to Head&lt;/i&gt;&lt;span style=&quot;background-color: white;&quot;&gt;, we get the other person’s absolute path.&amp;nbsp; Each of our user folders is based on our five digit ID so the path is always different.&amp;nbsp; We needed a way to avoid absolute paths when we link source.&lt;/span&gt;&lt;/div&gt;
  19. &lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;
  20. &lt;br /&gt;&lt;/div&gt;
  21. &lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;
  22. &lt;b style=&quot;background-color: white;&quot;&gt;&lt;i&gt;The solution:&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;We used a variable to specify the Linked File Location which translates to our individual paths. This works well, but it is quite confusing initially, until you understand how it works.&lt;/span&gt;&lt;/div&gt;
  23. &lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;
  24. &lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  25. &lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;
  26. &lt;b&gt;&lt;i&gt;How to Implement Solution:&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
  27. &lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;
  28. &lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;
  29. &lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;
  30. Follow these five steps to use a variable for the Linked File Location:&lt;/div&gt;
  31. &lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px;&quot;&gt;
  32. &lt;br /&gt;&lt;/div&gt;
  33. &lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;1)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; text-indent: -0.25in;&quot;&gt;Configure the Build Path of the project and click on the ‘&lt;/span&gt;&lt;i style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; text-indent: -0.25in;&quot;&gt;Source&lt;/i&gt;&lt;span style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; text-indent: -0.25in;&quot;&gt;’ tab as show here. &amp;nbsp;&lt;/span&gt;&lt;div&gt;
  34. &lt;div style=&quot;text-indent: -24px;&quot;&gt;
  35. &lt;span style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  36. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  37. &lt;a href=&quot;https://2.bp.blogspot.com/-iJDCqvxCYMs/V-M03vBgtvI/AAAAAAAAHsw/Ns5P7sghYWYES6mwJ9RV-94sq2ULvdWdwCLcB/s1600/Capture9-20a.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;314&quot; src=&quot;https://2.bp.blogspot.com/-iJDCqvxCYMs/V-M03vBgtvI/AAAAAAAAHsw/Ns5P7sghYWYES6mwJ9RV-94sq2ULvdWdwCLcB/s640/Capture9-20a.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  38. &lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;div style=&quot;font-size: 7pt;&quot;&gt;
  39. &lt;span style=&quot;font-size: 7pt; text-indent: -0.25in;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  40. &lt;div&gt;
  41. &lt;span style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  42. 2a) &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; text-indent: -0.25in;&quot;&gt;If creating a new location, click on ‘&lt;/span&gt;&lt;i style=&quot;background-color: white; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; text-indent: -0.25in;&quot;&gt;Link Source&lt;/i&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; text-indent: -0.25in;&quot;&gt;’&lt;/span&gt;&lt;/div&gt;
  43. &lt;div&gt;
  44. &lt;div style=&quot;text-indent: -24px;&quot;&gt;
  45. &lt;span style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  46. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  47. &lt;a href=&quot;https://2.bp.blogspot.com/-1lMthULTZp4/V-M1QttYiwI/AAAAAAAAHs0/aLHGCYI3RukpW0_aRuzLN0K74wyYYlCOACLcB/s1600/Capture9-20b.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://2.bp.blogspot.com/-1lMthULTZp4/V-M1QttYiwI/AAAAAAAAHs0/aLHGCYI3RukpW0_aRuzLN0K74wyYYlCOACLcB/s400/Capture9-20b.JPG&quot; width=&quot;388&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  48. &lt;span style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;
  49. &lt;span style=&quot;font-family: inherit;&quot;&gt;2b)&amp;nbsp;&lt;span style=&quot;background-color: white; text-indent: -0.25in;&quot;&gt;Alternatively if you already have a link source then select it, and press&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;text-indent: -0.25in;&quot;&gt;edit&lt;/i&gt;&lt;span style=&quot;background-color: white; text-indent: -0.25in;&quot;&gt;&amp;nbsp;to see this similar window&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  50. &lt;div&gt;
  51. &lt;div style=&quot;text-indent: -24px;&quot;&gt;
  52. &lt;br /&gt;&lt;/div&gt;
  53. &lt;div&gt;
  54. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  55. &lt;a href=&quot;https://1.bp.blogspot.com/-Wen4TybDC4k/V-M2XSdnBtI/AAAAAAAAHtA/e8DL4tZNdtQsVg07tp-TrBgEmklw-WBoQCLcB/s1600/Capture9-20c.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;331&quot; src=&quot;https://1.bp.blogspot.com/-Wen4TybDC4k/V-M2XSdnBtI/AAAAAAAAHtA/e8DL4tZNdtQsVg07tp-TrBgEmklw-WBoQCLcB/s400/Capture9-20c.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  56. &lt;div style=&quot;text-indent: -24px;&quot;&gt;
  57. &lt;span style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  58. &lt;span style=&quot;background-color: white; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; text-indent: -0.25in;&quot;&gt;3) From either window above, select the ‘&lt;/span&gt;&lt;i style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; text-indent: -0.25in;&quot;&gt;Variables&lt;/i&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; text-indent: -0.25in;&quot;&gt;’ button and you will see a window like this. These four variables/constants are created by default. You could also add your own here if you have a need to do so.&amp;nbsp; Make a note of the variable name or write it down because you cannot copy the name to the clipboard.&lt;/span&gt;&lt;/div&gt;
  59. &lt;div&gt;
  60. &lt;span style=&quot;background-color: white; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; text-indent: -0.25in;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  61. &lt;div&gt;
  62. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  63. &lt;a href=&quot;https://2.bp.blogspot.com/-T0Y_slHe0Ss/V-M2luEHf1I/AAAAAAAAHtI/dybXKthFDukZ1_gbIwFEJvhUxcVbiNaawCLcB/s1600/Capture9-20d.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;192&quot; src=&quot;https://2.bp.blogspot.com/-T0Y_slHe0Ss/V-M2luEHf1I/AAAAAAAAHtI/dybXKthFDukZ1_gbIwFEJvhUxcVbiNaawCLcB/s400/Capture9-20d.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  64. &lt;div style=&quot;text-indent: -24px;&quot;&gt;
  65. &lt;span style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  66. &lt;span style=&quot;background-color: white; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; text-indent: -0.25in;&quot;&gt;4) In the linked file location add the variable “WORKSPACE_LOC” instead of the concrete path. Hit &#39;&lt;i&gt;Finish&lt;/i&gt;&#39; to save.&lt;/span&gt;&lt;/div&gt;
  67. &lt;div&gt;
  68. &lt;span style=&quot;background-color: white; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; text-indent: -0.25in;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  69. &lt;div&gt;
  70. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  71. &lt;a href=&quot;https://1.bp.blogspot.com/-1LBog5otlfA/V-M26utgSiI/AAAAAAAAHtQ/9vhXdiVRSToz9bs2DywG6-9kCbT-iCAMgCLcB/s1600/Capture9-20e.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;258&quot; src=&quot;https://1.bp.blogspot.com/-1LBog5otlfA/V-M26utgSiI/AAAAAAAAHtQ/9vhXdiVRSToz9bs2DywG6-9kCbT-iCAMgCLcB/s400/Capture9-20e.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  72. &lt;span style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif;&quot;&gt;&lt;div&gt;
  73. &lt;span style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  74. &lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; text-indent: -0.25in;&quot;&gt;The variable will show in the Build Properties now prior to hitting&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; text-indent: -0.25in;&quot;&gt;OK&lt;/i&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; text-indent: -0.25in;&quot;&gt;&amp;nbsp;to save. However once it is saved, it will show the complete path without the variable you entered.&amp;nbsp;&lt;b&gt; This is very confusing.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
  75. &lt;div&gt;
  76. &lt;span style=&quot;background-color: white; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; text-indent: -0.25in;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
  77. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  78. &lt;a href=&quot;https://1.bp.blogspot.com/-TIZBGTrgFLQ/V-M3mUvhPAI/AAAAAAAAHtY/JHTfHmbLptAr3ESctWErJZBeMTT948IigCLcB/s1600/Capture9-20f.JPG&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://1.bp.blogspot.com/-TIZBGTrgFLQ/V-M3mUvhPAI/AAAAAAAAHtY/JHTfHmbLptAr3ESctWErJZBeMTT948IigCLcB/s640/Capture9-20f.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  79. &lt;div&gt;
  80. &lt;br /&gt;&lt;/div&gt;
  81. &lt;div&gt;
  82. &lt;span style=&quot;background-color: white; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; text-indent: -0.25in;&quot;&gt;5) Despite the confusion, if you followed the steps right, the variable is saved. I would recommend verifying that the variable change took by opening the &lt;b&gt;&lt;i&gt;.project&lt;/i&gt;&lt;/b&gt; XML file and checking to see if the variable is in the path.&amp;nbsp; You need to use the Navigator window to find the &lt;i&gt;&lt;b&gt;.project&lt;/b&gt;&lt;/i&gt; file. &amp;nbsp;If the change took, it will look like below.&lt;/span&gt;&lt;/div&gt;
  83. &lt;div&gt;
  84. &lt;span style=&quot;background-color: white; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; text-indent: -0.25in;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  85. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  86. &lt;a href=&quot;https://3.bp.blogspot.com/-ERnOyznifRY/V-M4_8jh7JI/AAAAAAAAHtk/PowchVN3Tl4n7cypgTzQtQsSGSNnulg3gCLcB/s1600/Capture9-20g.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;96&quot; src=&quot;https://3.bp.blogspot.com/-ERnOyznifRY/V-M4_8jh7JI/AAAAAAAAHtk/PowchVN3Tl4n7cypgTzQtQsSGSNnulg3gCLcB/s640/Capture9-20g.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  87. &lt;/div&gt;
  88. &lt;/div&gt;
  89. </description><link>http://notesspeak.blogspot.com/2016/09/eclipse-tip-using-built-in-variable-to.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://2.bp.blogspot.com/-iJDCqvxCYMs/V-M03vBgtvI/AAAAAAAAHsw/Ns5P7sghYWYES6mwJ9RV-94sq2ULvdWdwCLcB/s72-c/Capture9-20a.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-7233897895404280939</guid><pubDate>Fri, 16 Sep 2016 16:50:00 +0000</pubDate><atom:updated>2016-09-16T10:50:55.705-06:00</atom:updated><title>Thoughts on my XPages Experience</title><description>&lt;div class=&quot;ecxMsoNormal&quot; style=&quot;background-color: white; color: #444444; line-height: 21.3px; margin-bottom: 1.35em;&quot;&gt;
  90. &lt;span style=&quot;font-family: inherit;&quot;&gt;It is painfully obvious that XPages is on its &lt;a href=&quot;http://redpillnow.com/beyond-xpages/&quot; target=&quot;_blank&quot;&gt;way out as a technology solution&lt;/a&gt;.&amp;nbsp; Although I will always have a fondness for XPages, its time of relevancy was &lt;b&gt;much&lt;/b&gt; shorter than I ever expected.&lt;/span&gt;&lt;/div&gt;
  91. &lt;div class=&quot;ecxMsoNormal&quot; style=&quot;background-color: white; color: #444444; line-height: 21.3px; margin-bottom: 1.35em;&quot;&gt;
  92. &lt;span style=&quot;font-family: inherit;&quot;&gt;As someone who dived head first into XPages, I have no regrets learning the technology. What learning XPages taught me was invaluable for moving forward in the world of software development.&amp;nbsp; For me personally I am currently immersed in the java world. &amp;nbsp;Right now, I am only working on back end services, but I hope that this changes in the future.&amp;nbsp; Getting the job I have now would not have been possible without the experience gained using java within XPages. I plan on staying where I am for a long, long time.&lt;/span&gt;&lt;/div&gt;
  93. &lt;div class=&quot;ecxMsoNormal&quot; style=&quot;background-color: white; color: #444444; line-height: 21.3px; margin-bottom: 1.35em;&quot;&gt;
  94. &lt;span style=&quot;font-family: inherit;&quot;&gt;So it occurred to me that sure, learning OneUI was a waste, there were many more lasting benefits that I gained from learning XPages. &amp;nbsp;Here are a few that come to mind.&lt;/span&gt;&lt;/div&gt;
  95. &lt;div class=&quot;ecxMsoListParagraphCxSpMiddle&quot; style=&quot;background-color: white; color: #444444; line-height: 21.3px; margin-bottom: 1.35em; text-indent: -0.25in;&quot;&gt;
  96. &lt;/div&gt;
  97. &lt;br /&gt;
  98. &lt;ul&gt;
  99. &lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 21.3px; text-indent: -0.25in;&quot;&gt;Hands on Java.&amp;nbsp; I embraced the use of java managed beans, and used them over SSJS whenever it made sense.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
  100. &lt;/ul&gt;
  101. &lt;ul&gt;
  102. &lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 21.3px; text-indent: -0.25in;&quot;&gt;Javascript. Even proprietary SSJS was beneficial in becoming very comfortable with the language of the web. The more you use something the better you are at it.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
  103. &lt;/ul&gt;
  104. &lt;ul&gt;
  105. &lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 21.3px; text-indent: -0.25in;&quot;&gt;Bootstrap – still very popular and another skill used everywhere.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
  106. &lt;/ul&gt;
  107. &lt;ul&gt;
  108. &lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 21.3px; text-indent: -0.25in;&quot;&gt;JQuery – I used this heavily, and another skill that any developer is expected to know.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
  109. &lt;/ul&gt;
  110. &lt;ul&gt;
  111. &lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 21.3px; text-indent: -0.25in;&quot;&gt;Relational database exposure – Because my company had a policy of using backend DB2 with XPages, I benefited greatly.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
  112. &lt;/ul&gt;
  113. &lt;ul&gt;
  114. &lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 21.3px; text-indent: -0.25in;&quot;&gt;Dojo – I am not all that fond of dojo, but it is a skill that is good to know outside XPages. For instance, my company uses dojo as part of one of their key applications (not XPages).&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
  115. &lt;/ul&gt;
  116. &lt;ul&gt;
  117. &lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 21.3px; text-indent: -0.25in;&quot;&gt;Front end javascripts frameworks. This is the &lt;b&gt;future&lt;/b&gt; here, and XPages opened the door for me in this area.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
  118. &lt;/ul&gt;
  119. &lt;ul&gt;
  120. &lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 21.3px; text-indent: -0.25in;&quot;&gt;REST services – it was the XPages Extension Library that introduced me to this concept. &amp;nbsp;This goes hand in hand with the previous bullet point.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
  121. &lt;/ul&gt;
  122. &lt;ul&gt;
  123. &lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 21.3px; text-indent: -0.25in;&quot;&gt;Using frameworks in General.&amp;nbsp; XPages taught me to see the benefit of using established framework to structure an application.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
  124. &lt;/ul&gt;
  125. &lt;br /&gt;
  126. &lt;br /&gt;
  127. &lt;div class=&quot;ecxMsoNormal&quot; style=&quot;background-color: white; color: #444444; line-height: 21.3px; margin-bottom: 1.35em;&quot;&gt;
  128. &lt;span style=&quot;font-family: inherit;&quot;&gt;There are probably even more, but this is the list of skills that helped me the most. Because of these skills, I have entirely no regrets about diving headfirst into XPages. I loved working with it, and in some ways wished that time lasted longer.&amp;nbsp; XPages is still an incredible technology developed by some brilliant people, but market trends and business decisions have brought us to its current state.&lt;/span&gt;&lt;/div&gt;
  129. &lt;div class=&quot;ecxMsoNormal&quot; style=&quot;background-color: white; color: #444444; line-height: 21.3px; margin-bottom: 1.35em;&quot;&gt;
  130. &lt;span style=&quot;font-family: inherit;&quot;&gt;If you are still developing XPages, do not feel that you are spinning your wheels, but also proactively plan for the future.&lt;/span&gt;&lt;/div&gt;
  131. </description><link>http://notesspeak.blogspot.com/2016/09/thoughts-on-my-xpages-experience.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-3363882907236235592</guid><pubDate>Mon, 27 Jun 2016 13:00:00 +0000</pubDate><atom:updated>2016-06-27T07:00:31.937-06:00</atom:updated><title>New Directions</title><description>&lt;div style=&quot;background-color: white; color: #444444; line-height: 21.3px; margin-bottom: 1.35em;&quot;&gt;
  132. &lt;span style=&quot;font-family: inherit; line-height: normal;&quot;&gt;It has been a long time since I have posted any blog updates, so I wanted to give an update on what is happening in my world.&lt;/span&gt;&lt;/div&gt;
  133. &lt;div style=&quot;background-color: white; color: #444444; line-height: 21.3px; margin-bottom: 1.35em;&quot;&gt;
  134. &lt;span style=&quot;font-family: inherit; line-height: normal;&quot;&gt;As I write, it seems like a very long time since I attended IBM Connect 2016 this past January/February. &amp;nbsp;It was a great conference and I came home from it very optimistic and fired up about the future. &amp;nbsp;I was nearly 100% sure that I would soon be moving on from my current position as a contract XPages developer at Navy Federal and finding a new position somewhere else as a Notes Domino/XPages developer. &amp;nbsp;I had several encouraging meetings at the conference and I left sure that one of them would work out for me.&lt;/span&gt;&lt;/div&gt;
  135. &lt;div style=&quot;background-color: white; color: #444444; line-height: 21.3px; margin-bottom: 1.35em;&quot;&gt;
  136. &lt;span style=&quot;font-family: inherit; line-height: normal;&quot;&gt;In March, I came very close to being hired for one particular position that would have had me working with some of the best XPages developers in the business. &amp;nbsp;After a very positive interview, that job fell through due to factors beyond mine and their control. &amp;nbsp; It&#39;s also worth noting that in the last year, I started to notice a decline in the number of XPages job postings. &amp;nbsp;It seems like a year ago, there were always 5-7 postings out there, sometimes more, sometimes less. &amp;nbsp;It seems now the only postings are in the DC or New York areas, two places in which I do not wish to move.&lt;/span&gt;&lt;/div&gt;
  137. &lt;div style=&quot;background-color: white; color: #444444; line-height: 21.3px; margin-bottom: 1.35em;&quot;&gt;
  138. &lt;span style=&quot;font-family: inherit; line-height: normal;&quot;&gt;While I love the platform and have a long and positive history with Notes, I knew and have known for years that it was only a matter of time before I would need to move on to other technologies. Years ago in the mid 2000’s I immersed myself in Java with the intent of moving in that direction. &amp;nbsp;I thought that my ideal job would be where I can get in the door as a Notes developer and then transition to Java without taking the big pay cut that would occur if I went the Junior Developer route. &amp;nbsp;This was my plan, but I kept getting interesting and well-paying Notes developer jobs. &amp;nbsp;When XPages came out, I immersed myself in learning it, and found that my prior Java studies have paid off greatly in that area. &amp;nbsp;While I like backend java, I really loved front end work and I think I am a decent UI designer.&lt;/span&gt;&lt;/div&gt;
  139. &lt;div style=&quot;background-color: white; color: #444444; line-height: 21.3px; margin-bottom: 1.35em;&quot;&gt;
  140. &lt;span style=&quot;font-family: inherit; line-height: normal;&quot;&gt;In early April, I found myself working as contract developer and working on doing mostly Notes development. &amp;nbsp;For some reason, Navy Federal has decided not to create any more XPages projects so most of the work would be maintenance projects on existing Notes client applications. &amp;nbsp;I was not getting serious interest for other jobs developing XPages despite the honor of being an IBM Champion. &amp;nbsp;Meanwhile my manager, for whom I have a lot of respect, continued to encourage me to apply for a full time Java developer position in which I would still report to him. &amp;nbsp;After much reflection, discussion, and prayer I did decide that I would move forward and accept a position if it was offered. &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  141. &lt;div style=&quot;background-color: white; color: #444444; line-height: 21.3px; margin-bottom: 1.35em;&quot;&gt;
  142. &lt;span style=&quot;font-family: inherit; line-height: normal;&quot;&gt;At the end of April I accepted a full time position as an ISD Developer III and will be working on Java and whatever else they ask me to do. &amp;nbsp;I hope to get to eventually get to work with the front end again, but for now it will be mostly back end. &amp;nbsp;I still might work occasionally with Notes if they assign me those projects. &amp;nbsp;It is very unlikely that I will work with XPages again any time soon.&lt;/span&gt;&lt;/div&gt;
  143. &lt;div style=&quot;background-color: white; color: #444444; line-height: 21.3px; margin-bottom: 1.35em;&quot;&gt;
  144. &lt;span style=&quot;font-family: inherit; line-height: normal;&quot;&gt;It is not without some sadness that I move on from the Yellow Bubble (Notes Community). &amp;nbsp;Even though I am moving on, I hope to maintain contact with the friends I have made. &amp;nbsp;I remain extremely honored to have been named an IBM Champion for 2016. In some ways it feels like going out on top. &amp;nbsp;I look back to my goal of ten years ago of transitioning to a Java developer internally from Notes, and realize that I have obtained that goal over 10-12 years after making it.&lt;/span&gt;&lt;/div&gt;
  145. &lt;div style=&quot;background-color: white; color: #444444; line-height: 21.3px; margin-bottom: 1.35em;&quot;&gt;
  146. &lt;span style=&quot;font-family: inherit; line-height: normal;&quot;&gt;After I accepted the job but prior to my start date, Navy Federal was kind enough to let me take six weeks of leave to catch up on family visits and move the last of my possessions in storage from Utah to Florida. &amp;nbsp;Despite many miles of driving, we had great visits in Texas, Utah, Missouri, Minnesota, Indiana, Pennsylvania, and Virginia. &amp;nbsp;I also got to add 62 miles towards my goal of completing the Appalachian Trail in my lifetime.&lt;/span&gt;&lt;/div&gt;
  147. &lt;div style=&quot;background-color: white; color: #444444; line-height: 21.3px; margin-bottom: 1.35em;&quot;&gt;
  148. &lt;span style=&quot;font-family: inherit; line-height: normal;&quot;&gt;So as of today, Monday June 27, I am now a Navy Federal full time employee. &amp;nbsp;I plan to stay for a while and we will settle here in the Florida panhandle. I have peace about my decision and am excited for the future. &amp;nbsp;I am also relieved to not have to worry about my future employment for a long time.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  149. &lt;div style=&quot;background-color: white; color: #444444; line-height: 21.3px; margin-bottom: 1.35em;&quot;&gt;
  150. &lt;span style=&quot;font-family: inherit; line-height: normal;&quot;&gt;As far as this blog, I hope to continue to blog whenever I find topics that I think will be of interest, and/or topics that I need to make sure I remember for later.&lt;/span&gt;&lt;/div&gt;
  151. </description><link>http://notesspeak.blogspot.com/2016/06/new-directions.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>6</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-4733917686160635207</guid><pubDate>Sat, 06 Feb 2016 18:23:00 +0000</pubDate><atom:updated>2016-02-06T11:23:17.860-07:00</atom:updated><title>Thoughts on IBM Connect 2016</title><description>&lt;span style=&quot;font-family: inherit;&quot;&gt;Three days have passed since I returned home from IBM Connect in Orlando. This was my fourth ‘Sphere’ with my last being two years ago. This is my first time to attend as an IBM Champion! My overall impression was extremely positive. It certainly exceeded my expectations, and my expectations were pretty high.&lt;/span&gt;&lt;br /&gt;
  152. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  153. &lt;/span&gt;&lt;br /&gt;
  154. &lt;h3&gt;
  155. &lt;span style=&quot;font-family: inherit;&quot;&gt;
  156. My Goals for a Successful Conference&lt;/span&gt;&lt;/h3&gt;
  157. &lt;div&gt;
  158. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  159. &lt;span style=&quot;font-family: inherit;&quot;&gt;My personal goals were split into three equal parts:&lt;/span&gt;&lt;br /&gt;
  160. &lt;ol&gt;
  161. &lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Spend time with existing friends/acquaintances as part of the finest software community in the world&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
  162. &lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Network, network, network which overlaps with #1&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
  163. &lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Increase my knowledge by attending technical sessions&lt;/span&gt;&lt;/li&gt;
  164. &lt;/ol&gt;
  165. &lt;h5&gt;
  166. &lt;span style=&quot;font-family: inherit; font-size: small;&quot;&gt;Community&lt;/span&gt;&lt;/h5&gt;
  167. &lt;span style=&quot;font-family: inherit;&quot;&gt;The community was out in force this year with just a few notable exceptions. The community we have really is something special, amazing really. I am tempted to list all the names of people I enjoyed seeing but don’t want to miss anyone. It was great to meet some people that I knew of but never met such as John Dalsgaard, Simon Peek, Greg Reeder, and Jeff Twardowski.&lt;/span&gt;&lt;br /&gt;
  168. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  169. &lt;span style=&quot;font-family: inherit;&quot;&gt;I also really enjoyed spending time with my Navy Federal coworkers Ernie Javier and Blair Armeau. Prior to this, I had only known Blair via sametime so it was great to meet in person. To me now, they are friends, not just coworkers.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  170. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  171. &lt;span style=&quot;font-family: inherit;&quot;&gt;When it was time to leave immediately after the closing session, I was tired and ready to see my family, but still it felt hard to leave such a group of amazing people.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  172. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  173. &lt;span style=&quot;font-family: inherit;&quot;&gt;I would be remiss if I didn’t mention the people whose presence was missed. It would have been better with Marky Roden, David Leedy, Mike McGarel, Peter Presnell, Ulrich Krause, and Shean McManus.&lt;/span&gt;&lt;br /&gt;
  174. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;/span&gt;
  175.  
  176. &lt;h5&gt;
  177. &lt;span style=&quot;font-family: inherit; font-size: small;&quot;&gt;Networking&lt;/span&gt;&lt;/h5&gt;
  178. &lt;span style=&quot;font-family: inherit;&quot;&gt;Connect 2016 was also very productive for me on the networking front. At my current employer they don’t have any more XPages projects in the works so I have to decide whether to stay or go. This conference really gave me clarity for the future. I don’t know how things will play out, but I had some conversations that were very encouraging. Along those lines, if anyone reading this is looking for a developer with 20 years of total experience and 3.5 years of XPages then please reach out to me at zavocki@hotmail.com.&lt;/span&gt;&lt;br /&gt;
  179. &lt;h5&gt;
  180. &lt;span style=&quot;font-family: inherit; font-size: small;&quot;&gt;Sessions&lt;/span&gt;&lt;/h5&gt;
  181. &lt;span style=&quot;font-family: inherit;&quot;&gt;The quality of sessions this year was definitely on par with past conferences. The topic that really surprised me this year was Bluemix. Although I had seen sessions on it before, the progress that the team has made was very impressive. It has definitely caught my attention.&lt;/span&gt;&lt;br /&gt;
  182. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  183. &lt;span style=&quot;font-family: inherit;&quot;&gt;These were my favorite sessions:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  184. &lt;ol&gt;
  185. &lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;The XPages of Things: Integrate Bluemix into your XPages Applications for a World of Possibilities. I think that John Jardin blew everyone away with what he demonstrated in this session. For me, the relevance of BlueMix went way up with this session.&lt;/span&gt;&lt;/li&gt;
  186. &lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Get Hands-On with XPages Apps for Bluemix – Martin Donnelly and Brian Gleason gave more details on what Bluemix with plenty of demos. Because I previously had been inspired by John, this session has more meaning for me.&lt;/span&gt;&lt;/li&gt;
  187. &lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;The Grid, the Brad, and the Ugly: Using Grids to Improve Your Applications – This session by super champions Brad Balassaitis and Paul Calhoun was very informative and the audience was extremely engaged. Even though I had a fair amount of experience with the topic I certainly learn quite a bit.&lt;/span&gt;&lt;/li&gt;
  188. &lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Real-time Video Chat XPage Application using Websocket and WebTRC Technologies – first time attendee and hopefully future champion Csaba Kiss showed two methods of having a real time chat application inside of XPages. The material was comprehensive and he covered a lot, and certainly inspired the developer audience to think of ways to integrate this into new and existing applications.&lt;/span&gt;&lt;/li&gt;
  189. &lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Once You Go Graph… Nathan Freeman is obviously extremely passionate and knowledgeable on this topic. I had been wanting to see this session at MWLUG, but it was presented opposite of the one I was giving. I first heard of graph databases two years ago, the first and only time I met the late great Tim Tripcony. He was just as passionate on Graph database and spent a half hour explaining them to me. I like sessions that inspire you to want to learn more on your own.&lt;/span&gt;&lt;/li&gt;
  190. &lt;/ol&gt;
  191. &lt;h3&gt;
  192. &lt;br /&gt;&lt;/h3&gt;
  193. &lt;h3&gt;
  194. General Impressions&lt;/h3&gt;
  195. &lt;h3 style=&quot;font-size: medium; font-weight: normal;&quot;&gt;
  196. &lt;/h3&gt;
  197. &lt;h5&gt;
  198. &lt;span style=&quot;font-size: small;&quot;&gt;OGS&lt;/span&gt;&lt;/h5&gt;
  199. &lt;h3&gt;
  200. &lt;div&gt;
  201. &lt;span style=&quot;font-family: inherit; font-size: small; font-weight: normal;&quot;&gt;For the most part, I really liked the OGS, compared to past years it seems to take itself less seriously.&lt;/span&gt;&lt;/div&gt;
  202. &lt;/h3&gt;
  203. &lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;
  204. I was very unimpressed with the guest speaker Jason Silva. I thought his message was intellectual cotton candy, and visually distracting. I was very impressed with the case study from West Africa on how an XPages application has helped improve fair trading between farmers and the middlemen who deliver the product to market.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  205. &lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;
  206. &lt;span style=&quot;font-weight: normal;&quot;&gt;The drama where they showed the new products being used was funny and well done. It was obviously contrived and very staged, but that is to be expected with this type of demo. I thought the break in the middle was a good idea.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  207. &lt;h5&gt;
  208. &lt;span style=&quot;font-size: small;&quot;&gt;Universal Studios&lt;/span&gt;&lt;/h5&gt;
  209. &lt;h3&gt;
  210. &lt;div style=&quot;font-weight: normal;&quot;&gt;
  211. &lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Whenever I go on rides at parks like Universal, I get reminded that I am not a kid anymore. Even though I got queasy, I &amp;nbsp;enjoyed spending time with John Jardin, Andre Horak, and Paul Withers on the Harry Potter ride. The castle there is extremely impressive as were the animated paintings. After that John convinced me to ride the dragon coaster. It might have been the fastest coaster I ever went on. I would have liked to ride it again but the stomach would not allow.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  212. &lt;/h3&gt;
  213. &lt;h5&gt;
  214. &lt;span style=&quot;font-size: small;&quot;&gt;The Venue&lt;/span&gt;&lt;/h5&gt;
  215. &lt;h3&gt;
  216. &lt;span style=&quot;font-family: inherit; font-size: small; font-weight: normal;&quot;&gt;I had no problem with the venue. I hope that they continue it there next year, although nothing was announced. I like the fact that I could stay nearby at the Days Inn which was only a five minute walk. This year I am paying my own way to be at the conference so having reasonably priced hotel and food options nearby is a huge plus. When we were on Disney property, we had none of that. News like &lt;a href=&quot;http://www.nytimes.com/2015/06/04/us/last-task-after-layoff-at-disney-train-foreign-replacements.html&quot; target=&quot;_blank&quot;&gt;this &lt;/a&gt;doesn’t make we want to spend money on the mouse, even if they backtracked later due to public pressure.&amp;nbsp;&lt;/span&gt;
  217. &lt;/h3&gt;
  218. &lt;h5&gt;
  219. &lt;span style=&quot;font-size: small;&quot;&gt;An Apology&lt;/span&gt;&lt;/h5&gt;
  220. &lt;h3&gt;
  221. &lt;div style=&quot;font-weight: normal;&quot;&gt;
  222. &lt;span style=&quot;font-family: inherit; font-size: small;&quot;&gt;I feel the need to apologize for my awful cough which I am sure was annoying to those sitting around me. I know that I was a distraction and I appreciate that everyone seemed to be understanding.&lt;/span&gt;&lt;/div&gt;
  223. &lt;div style=&quot;font-size: medium; font-weight: normal;&quot;&gt;
  224. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  225. &lt;/h3&gt;
  226. &lt;h3&gt;
  227. Final Thoughts&lt;/h3&gt;
  228. &lt;div&gt;
  229. &lt;br /&gt;&lt;/div&gt;
  230. &lt;h3 style=&quot;font-size: medium; font-weight: normal;&quot;&gt;
  231. &lt;/h3&gt;
  232. &lt;h3&gt;
  233. &lt;div style=&quot;font-weight: normal;&quot;&gt;
  234. &lt;span style=&quot;font-family: inherit; font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Overall, I felt a very positive vibe from those around me. It was encouraging to see many first time attendees, as well as some very engaged younger developers. The conference is alive and well, and I hope IBM does &lt;/span&gt;nothing radical&lt;span style=&quot;font-weight: normal;&quot;&gt; to change that next year.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  235. &lt;div style=&quot;font-weight: normal;&quot;&gt;
  236. &lt;span style=&quot;font-family: inherit; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  237. &lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;font-weight: normal; margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
  238. &lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://3.bp.blogspot.com/-5L2CubWnYPI/VrY4v8Cc-TI/AAAAAAAAHpk/7P-0BTwMdqg/s1600/IMAG1675%255B1%255D.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;362&quot; src=&quot;https://3.bp.blogspot.com/-5L2CubWnYPI/VrY4v8Cc-TI/AAAAAAAAHpk/7P-0BTwMdqg/s640/IMAG1675%255B1%255D.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
  239. &lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif; font-size: small;&quot;&gt;It was an big honor to have my photo on the big screen before the OGS&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  240. &lt;/tbody&gt;&lt;/table&gt;
  241. &lt;/div&gt;
  242. &lt;/h3&gt;
  243. </description><link>http://notesspeak.blogspot.com/2016/02/thoughts-on-ibm-connect-2016.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://3.bp.blogspot.com/-5L2CubWnYPI/VrY4v8Cc-TI/AAAAAAAAHpk/7P-0BTwMdqg/s72-c/IMAG1675%255B1%255D.jpg" height="72" width="72"/><thr:total>6</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-7713711203039261354</guid><pubDate>Thu, 21 Jan 2016 03:30:00 +0000</pubDate><atom:updated>2016-01-20T20:30:53.434-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">education</category><title>Looking Forward to IBM Connect 2016</title><description>In less than two weeks I am excited to attend IBM Connect 2016 in Orlando. It is now a full twenty years that I have worked in the yellow bubble. &amp;nbsp;I was just a newbie when I attended my first Lotusphere in 1996. I went again in 1999, and then not again for another fifthteen years until 2014. This will be my fourth time.&lt;div&gt;
  244. &lt;br /&gt;&lt;/div&gt;
  245. &lt;div&gt;
  246. As is always the case, there are many great sessions this year. The sessions are only part of what makes the conference great, the other part is the people you meet.&lt;/div&gt;
  247. &lt;div&gt;
  248. &lt;br /&gt;&lt;/div&gt;
  249. &lt;h3&gt;
  250. These are my top 5 sessions that I am most looking forward to attending.&lt;/h3&gt;
  251. &lt;div&gt;
  252. &lt;br /&gt;&lt;/div&gt;
  253. &lt;div&gt;
  254. &lt;b&gt;1) Real-Time Video Chat XPage Application Using Websockets and WebRTC Technologies&lt;/b&gt;: &amp;nbsp;This seems like a fascinating session and I am excited to hear from Csaba Kiss who I met at MWLUG this past August.&lt;br /&gt;&lt;div&gt;
  255. &lt;br /&gt;&lt;/div&gt;
  256. &lt;/div&gt;
  257. &lt;div&gt;
  258. &lt;b&gt;2) Optimus XPages: An Explosion of Techniques and Best Practices:&lt;/b&gt; I am excited to see my friend John Jardin again. He is a dynamic speaker with a passion to share knowledge.&lt;/div&gt;
  259. &lt;div&gt;
  260. &lt;br /&gt;&lt;/div&gt;
  261. &lt;div&gt;
  262. &lt;b&gt;3) The Grid, the Brad, and the Ugly: Using Grids to Improve Your Applications: &lt;/b&gt;&amp;nbsp;Brad Balassaitis&#39;s blog has been a huge help to nearly every XPages developer. It will be great to hear his latest take on the grid choices that we have now.&lt;/div&gt;
  263. &lt;div&gt;
  264. &lt;br /&gt;&lt;/div&gt;
  265. &lt;div&gt;
  266. &lt;b&gt;4) &#39;Marty, You&#39;re Just Not Thinking Fourth Dimensionally&#39;: Troubleshooting XPages:&lt;/b&gt; Paul Withers is a brilliant developer and I am really looking forward to his session.&lt;/div&gt;
  267. &lt;div&gt;
  268. &lt;br /&gt;&lt;/div&gt;
  269. &lt;div&gt;
  270. &lt;b&gt;5) Outside the Box: Integrating with Non-Domino Apps Using XPages and Java:&lt;/b&gt; This is an area where I have quite a bit of recent experience. It will be great to hear what Julian Robichaux and Kathy Brown have to say on the subject.&lt;/div&gt;
  271. &lt;div&gt;
  272. &lt;br /&gt;&lt;/div&gt;
  273. &lt;div&gt;
  274. There are many other sessions I am looking forward to as well. &amp;nbsp;If you are still considering whether to attend the conference this year it is not too late. The nice thing this year about being off Disney property is that there are several nearby hotels within walking distance that have very reasonable prices. &amp;nbsp;&lt;/div&gt;
  275. &lt;div&gt;
  276. &lt;br /&gt;&lt;/div&gt;
  277. &lt;h3&gt;
  278. Thank You, Thank You, Thank You&lt;/h3&gt;
  279. &lt;div&gt;
  280. &lt;br /&gt;&lt;/div&gt;
  281. &lt;div&gt;
  282. I also have unfinished business in thanking those who nominated me for IBM Champion. It is a great honor to have been chosen this year. I want to specifically thank Mark Roden who told me 2 years ago that I could be a champion. I didn&#39;t know what to think at the time, but that confidence did motivate and encourage me,&lt;/div&gt;
  283. &lt;div&gt;
  284. &lt;br /&gt;&lt;/div&gt;
  285. &lt;div&gt;
  286. &lt;br /&gt;&lt;/div&gt;
  287. </description><link>http://notesspeak.blogspot.com/2016/01/looking-forward-to-ibm-connect-2016.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-4154602742614334692</guid><pubDate>Tue, 17 Nov 2015 12:26:00 +0000</pubDate><atom:updated>2015-11-17T05:26:23.844-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">javascript</category><category domain="http://www.blogger.com/atom/ns#">xpages</category><title>Limiting Keyboard Input in XPages</title><description>&lt;span style=&quot;font-family: inherit;&quot;&gt;One way to make your validation easier is limit the types of characters allowed in a specific input field. For example, if you have a numeric field you simply don’t allow the user to type a letter in that field. If you know that an email address cannot contain special characters, you can simply prevent the user from typing those special characters. I would caution that if using this technique for public facing applications, that the use of tooltips or helper text be considered.&lt;/span&gt;&lt;br /&gt;
  288. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  289. &lt;span style=&quot;font-family: inherit;&quot;&gt;Last Thursday I was told that in my application, the field was allowing the entry of numbers from the main keyboard but not the numeric keypad. I discovered that the behavior of the dojo combobox differs from that of the core controls. &lt;b&gt;In this post, I will explain the usage of the keypress event in general, and then explain how to use it with a dojo combobox.&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  290. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  291. &lt;span style=&quot;font-family: inherit;&quot;&gt;Before I begin, I have to laugh at the irony of this new Stack Overflow question (&lt;a href=&quot;http://stackoverflow.com/questions/33680515/how-to-prevent-special-characters-input-into-edit-box&quot;&gt;http://stackoverflow.com/questions/33680515/how-to-prevent-special-characters-input-into-edit-box&lt;/a&gt;) about this very subject that appeared a few hours after working on this. Amazingly no one had answered it by the time I saw it, and of course it was fresh on my mind, so I answered it with what I was already going to put in this new blog post.&lt;/span&gt;&lt;br /&gt;
  292. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  293. &lt;h3&gt;
  294. &lt;span style=&quot;font-family: inherit;&quot;&gt;Keyboard Events&lt;/span&gt;&lt;/h3&gt;
  295. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  296. &lt;span style=&quot;font-family: inherit;&quot;&gt;There are three key events that you can use. The onkeypress, and the okeydown, and the onkeyup. As the name implies these are keyboard events. In XPages you can assign client and/or server code to each. I would strongly caution for performance reasons against doing anything serverside that is more complicated then setting a scoped variable. The code that we want to use to limit certain keys is all &lt;b&gt;clientside&lt;/b&gt; javascript.&lt;/span&gt;&lt;br /&gt;
  297. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  298. &lt;h3&gt;
  299. Usage in an Edit Control&lt;/h3&gt;
  300. &lt;div&gt;
  301. &lt;br /&gt;&lt;/div&gt;
  302. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  303. &lt;a href=&quot;http://3.bp.blogspot.com/-vD84LjqFLPA/VksZj8kz9PI/AAAAAAAAHpI/Zco0slY9WIg/s1600/Capture11-12.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;234&quot; src=&quot;http://3.bp.blogspot.com/-vD84LjqFLPA/VksZj8kz9PI/AAAAAAAAHpI/Zco0slY9WIg/s640/Capture11-12.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  304. &lt;div&gt;
  305. &lt;br /&gt;&lt;/div&gt;
  306. &lt;div&gt;
  307. This code shown here will only allow numbers and the backspace key. In XPages, if applied to a core control, this also allows the numeric keyboard to work even though it uses different keycodes. The&lt;br /&gt;
  308. keycodes for the numeric keyboard are 96-105. For an edit box the only event you need is the onKeyPress.&lt;br /&gt;
  309. &lt;br /&gt;
  310. &lt;h3&gt;
  311. Usage in a Dojo Combobox&lt;/h3&gt;
  312. &lt;/div&gt;
  313. &lt;div&gt;
  314. &lt;br /&gt;&lt;/div&gt;
  315. &lt;div&gt;
  316. One of the nice features of the dojo combobox is that you can choose from the list or type in a value. You also get built in type ahead. The key events work differently in two specific ways though. If you just use the onkeypress event, then if the user types really fast they can bypass the event and type an unwanted character. These are the types of things the quality assurance people are happy to point out to you. The way to prevent this behavior is to put the code in both the onkeydown and onkeyup events.&lt;/div&gt;
  317. &lt;div&gt;
  318. &lt;br /&gt;&lt;/div&gt;
  319. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  320. &lt;a href=&quot;http://2.bp.blogspot.com/-mxprdMxrm8k/VksaIyQerLI/AAAAAAAAHpQ/7mvvAY6wiVE/s1600/Capture11-13.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;204&quot; src=&quot;http://2.bp.blogspot.com/-mxprdMxrm8k/VksaIyQerLI/AAAAAAAAHpQ/7mvvAY6wiVE/s640/Capture11-13.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  321. &lt;div&gt;
  322. &lt;br /&gt;&lt;/div&gt;
  323. &lt;h3&gt;
  324. How to selectively include or exclude any key&lt;/h3&gt;
  325. &lt;div&gt;
  326. &lt;br /&gt;&lt;/div&gt;
  327. &lt;div&gt;
  328. My example above on specifically includes numbers, your needs may differ. You can use &lt;a href=&quot;http://keycode.info/&quot;&gt;http://keycode.info/&lt;/a&gt; to easily figure out any keycode. Modify the code below to meet your specific requirements. This example only allows letters, numbers, backspace, and delete.&lt;/div&gt;
  329. &lt;div&gt;
  330. &lt;br /&gt;&lt;/div&gt;
  331. &lt;div&gt;
  332. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;var keyCode = event.keyCode;&lt;/span&gt;&lt;br /&gt;
  333. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;if((keyCode &amp;gt;= 48 &amp;amp;&amp;amp; keyCode &amp;lt;= 57) || (keyCode &amp;gt;= 65 &amp;amp;&amp;amp; keyCode &amp;lt;= 90)|| keyCode == 8 || keyCode == 46){&lt;/span&gt;&lt;br /&gt;
  334. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;event.returnValue = true;&lt;/span&gt;&lt;br /&gt;
  335. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;}else{&lt;/span&gt;&lt;br /&gt;
  336. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;event.returnValue = false;&lt;/span&gt;&lt;br /&gt;
  337. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
  338. </description><link>http://notesspeak.blogspot.com/2015/11/limiting-keyboard-input-in-xpages.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-vD84LjqFLPA/VksZj8kz9PI/AAAAAAAAHpI/Zco0slY9WIg/s72-c/Capture11-12.PNG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-3593510341950584027</guid><pubDate>Thu, 01 Oct 2015 10:38:00 +0000</pubDate><atom:updated>2015-10-01T04:38:08.396-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Java</category><category domain="http://www.blogger.com/atom/ns#">xpages</category><title>Creating JSON objects in Java using the JSON.simple toolkit</title><description>&lt;span style=&quot;font-family: inherit;&quot;&gt;I needed a way to create JSON objects in Java for displaying in a grid. There are several options for doing this that I could have chosen. There is GSON from Google, or I could roll my own using StringBuilder. After doing some research, I decided to use the JSON.simple toolkit because, the examples looked simple and straightforward to me. &amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;In this post, I will explain how I used JSON.simple and give two real life examples.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
  339. &lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
  340.  
  341.  
  342. &lt;br /&gt;
  343. &lt;h3&gt;
  344. Installation&lt;/h3&gt;
  345. &lt;span style=&quot;font-family: inherit;&quot;&gt;To use JSON.simple you need to download the jar and add to your build path. The jar is available here: &lt;a href=&quot;https://code.google.com/p/json-simple/&quot;&gt;https://code.google.com/p/json-simple/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
  346. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  347. &lt;br /&gt;
  348. &lt;h3&gt;
  349. &lt;span style=&quot;font-family: inherit;&quot;&gt;Creating a Single Object&lt;/span&gt;&lt;/h3&gt;
  350. &lt;div&gt;
  351. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  352. &lt;span style=&quot;font-family: inherit;&quot;&gt;In this snippet, contents of a NotesDocument are added to a JSON object and then that object is passed back to the caller of the method. &lt;i&gt;Note this example uses the Name class from the original Notes,jar to format the Notes name. It is the java version of @Name.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
  353. &lt;span style=&quot;color: #741b47; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  354. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;Document doc = col.getFirstDocument();&lt;/span&gt;&lt;br /&gt;
  355. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;JSONObject json = new JSONObject();&lt;/span&gt;&lt;br /&gt;
  356. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  357. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;if(doc != null){&lt;/span&gt;&lt;br /&gt;
  358. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;Name name = session.createName(doc.getItemValueString(&quot;EmployeeName&quot;));&lt;/span&gt;&lt;br /&gt;
  359. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;json.put(&quot;employeeName&quot;, name.getCommon());&lt;/span&gt;&lt;br /&gt;
  360. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;json.put(&quot;employeeID&quot;, doc.getItemValueString(&quot;EmployeeID&quot;));&lt;/span&gt;&lt;br /&gt;
  361. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;json.put(&quot;employeeLocation&quot;, doc.getItemValueString(&quot;locationdesc&quot;));&lt;/span&gt;&lt;br /&gt;
  362. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;json.put(&quot;employeeRole&quot;, getEmployeeRole(name.getCommon()));&lt;/span&gt;&lt;br /&gt;
  363. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
  364. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;returnValue = json.toJSONString();&lt;/span&gt;&lt;br /&gt;
  365. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;...&lt;/span&gt;&lt;br /&gt;
  366. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;return returnValue;&lt;/span&gt;&lt;br /&gt;
  367. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  368. &lt;span style=&quot;font-family: inherit;&quot;&gt;The result will look something like this:&lt;/span&gt;&lt;br /&gt;
  369. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  370. &lt;span style=&quot;color: purple; font-family: Arial, Helvetica, sans-serif;&quot;&gt;{&quot;employeeLocation&quot;:&quot;Pensacola Milton&quot;,&quot;employeeRole&quot;:&quot;Intern to the Intern&quot;,&quot;employeeID&quot;:&quot;12345&quot;,&quot;employeeName&quot;:&quot;Dwain Wuerfel&quot;}&lt;/span&gt;&lt;br /&gt;
  371. &lt;span style=&quot;color: purple; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  372.  
  373.  
  374. &lt;br /&gt;
  375. &lt;h3&gt;
  376. &lt;span style=&quot;font-family: inherit;&quot;&gt;Creating a Collection of Objects&lt;/span&gt;&lt;/h3&gt;
  377. &lt;div&gt;
  378. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  379. &lt;span style=&quot;font-family: inherit;&quot;&gt;In this snippet, the contents of a multi-value document are traversed and a JSON object is created for each item. Many will recognize that I am grabbing the members of a Name &amp;amp; Address Book group. For each member I create a new object and then that object is added to a JSONArray object called ‘result’ which is then returned to the calling method. Each object will be a displayed on a separate row in the grid.&lt;/span&gt;&lt;br /&gt;
  380. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  381. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;JSONArray result = new JSONArray();&lt;/span&gt;&lt;br /&gt;
  382. &lt;br /&gt;
  383. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;if(nabDoc != null){&lt;/span&gt;&lt;br /&gt;
  384. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;Item item = nabDoc.getFirstItem(&quot;Members&quot;);&lt;/span&gt;&lt;br /&gt;
  385. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&amp;nbsp; &amp;nbsp;Vector&amp;lt;String&amp;gt; v = item.getValues();&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  386. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
  387. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;for(String person : v){&lt;/span&gt;&lt;br /&gt;
  388. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;Name name = session.createName(person);&lt;/span&gt;&lt;br /&gt;
  389. &lt;br /&gt;
  390. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;JSONObject json = new JSONObject();&lt;/span&gt;&lt;br /&gt;
  391. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;json.put(&quot;employeeName&quot;, name.getCommon());&lt;/span&gt;&lt;br /&gt;
  392. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;json.put(&quot;employeeRole&quot;, employeeRole);&lt;/span&gt;&lt;br /&gt;
  393. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;json.put(&quot;employeeID&quot;, EmployeeID);&lt;/span&gt;&lt;br /&gt;
  394. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;json.put(&quot;employeeLocation&quot;, EmployeeLocation);&lt;/span&gt;&lt;br /&gt;
  395. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;result.add(json);&lt;/span&gt;&lt;br /&gt;
  396. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
  397. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;returnValue = result.toJSONString();&lt;/span&gt;&lt;br /&gt;
  398. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;...&lt;/span&gt;&lt;br /&gt;
  399. &lt;span style=&quot;color: #351c75; font-family: Courier New, Courier, monospace;&quot;&gt;return returnValue;&lt;/span&gt;&lt;br /&gt;
  400. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  401. &lt;span style=&quot;font-family: inherit;&quot;&gt;The result will look like this if there are three JSON objects in the array:&lt;/span&gt;&lt;br /&gt;
  402. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  403. &lt;span style=&quot;color: purple; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp;[{&quot;employeeLocation&quot;:&quot;Pensacola Milton&quot;,&quot;employeeRole&quot;:[&quot;Minion&quot;],&quot;employeeID&quot;:&quot;12345&quot;,&quot;employeeName&quot;:&quot;Dwain Wuerfel&quot;}, {&quot;employeeLocation&quot;:&quot;Pensacola Milton&quot;,&quot;employeeRole&quot;:[&quot;Blog Author&quot;],&quot;employeeID&quot;:&quot;91984&quot;,&quot;employeeName&quot;:&quot;Steve Zavocki&quot;},{&quot;employeeLocation&quot;:&quot;Pensacola Milton&quot;,&quot;employeeRole&quot;:[&quot;Cast Member&quot;],&quot;employeeID&quot;:&quot;54321&quot;,&quot;employeeName&quot;:&quot;Vernon Miles&quot;}]&lt;/span&gt;&lt;span style=&quot;background-color: white; line-height: 21.3px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  404. &lt;br /&gt;
  405. &lt;h3&gt;
  406. Conclusion&lt;/h3&gt;
  407. &lt;div&gt;
  408. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
  409. &lt;span style=&quot;font-family: inherit;&quot;&gt;As the name implies the JSON.simple toolkit is simple to use, and a good option to consider if you need to create JSON objects within your java code. In case you are interested in learning more about your other options, &lt;a href=&quot;http://blog.takipi.com/the-ultimate-json-library-json-simple-vs-gson-vs-jackson-vs-json/&quot; target=&quot;_blank&quot;&gt;here is an article&lt;/a&gt; that compares three different json toolkits including JSON.simple.&lt;/span&gt;</description><link>http://notesspeak.blogspot.com/2015/10/creating-json-objects-in-java-using.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>7</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-739191097540270839</guid><pubDate>Tue, 22 Sep 2015 00:55:00 +0000</pubDate><atom:updated>2015-09-22T19:09:05.524-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Java</category><category domain="http://www.blogger.com/atom/ns#">xpages</category><title>Sorting a Java ArrayList of SelectItem Objects</title><description>Recently I had a task where I needed to read all the names from several groups in the Name &amp;amp; Address Book. &amp;nbsp;I needed to get all the names sorted and unique for presenting in a Combobox.&lt;br /&gt;
  410. &lt;br /&gt;
  411. &lt;b&gt;In this post, I will show you how I did this, but more importantly I will show how I used the Java Collections Framework to my advantage.&lt;/b&gt;&lt;br /&gt;
  412. &lt;br /&gt;
  413. In case you aren’t aware, the SelectItem object is the object type that Java Server Faces (thereby XPages) uses for the values of a Combo Box. It contains a value and a label, of which the label is what is shown and the value is what is saved.&lt;br /&gt;
  414. &lt;br /&gt;
  415. Because the SelectItem does not implement the Comparator interface, you cannot easily sort an ArrayList of SelectItems. You could write your own sorting method if you like using the instructions outlined in &lt;a href=&quot;http://blog.moes.as/2008/07/easy-sort-of-list-of-selectitems.html&quot; target=&quot;_blank&quot;&gt;this blog post.&lt;/a&gt; I considered this but then thought of an easier way to accomplish the same thing.&lt;br /&gt;
  416. &lt;br /&gt;
  417. Here is what I did to solve this: Instead of creating just an ArrayList of SelectItems, I also created one of Strings. Strings of course are easily sortable since the String class does implement Comparator interface. Prior to sorting the list, I need to removed duplicates. To do this, I first create a HashSet and assign the values to it. A &lt;a href=&quot;https://docs.oracle.com/javase/tutorial/collections/interfaces/set.html&quot; target=&quot;_blank&quot;&gt;Set&lt;/a&gt; in java does not allow duplicates, so assigning all the values to the HashSet was the easiest way to remove the dupes. After this is done, I assign all the values back into the ArrayList and then sort the list. I then create an SelectItem ArrayList with the unique sorted values.&lt;br /&gt;
  418. &lt;br /&gt;
  419. &lt;i&gt;Note: This would be a lot more complicated if I needed my SelectItem object to have different Strings for Label and Value. I would probably use a HashMap instead of an ArrayList&amp;lt;String&amp;gt; if this was the case.&lt;/i&gt;&lt;br /&gt;
  420. &lt;br /&gt;
  421. &lt;h3&gt;
  422. Code Example&lt;/h3&gt;
  423. &lt;div&gt;
  424. &lt;br /&gt;&lt;/div&gt;
  425. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  426. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{229e9aa5-05e0-46ed-ba7a-595af1628244}{198}&quot; paraid=&quot;878908516&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  427. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;List&amp;lt;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;SelectItem&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;getUserList&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(String schema){&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  428. &lt;/div&gt;
  429. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  430. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{229e9aa5-05e0-46ed-ba7a-595af1628244}{208}&quot; paraid=&quot;1653290923&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 48px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  431. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold; line-height: 18.2px;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: blue; font-weight: bold; line-height: 18.2px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, monospace;&quot;&gt;List&amp;lt;String&amp;gt; options =&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;ArrayList&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;lt;String&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  432. &lt;/div&gt;
  433. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  434. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{229e9aa5-05e0-46ed-ba7a-595af1628244}{223}&quot; paraid=&quot;677555538&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 48px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  435. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;List&amp;lt;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;SelectItem&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;sortedOptions&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;ArrayList&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;SelectItem&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;/div&gt;
  436. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{229e9aa5-05e0-46ed-ba7a-595af1628244}{223}&quot; paraid=&quot;677555538&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 48px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  437. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  438. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{229e9aa5-05e0-46ed-ba7a-595af1628244}{223}&quot; paraid=&quot;677555538&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 48px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  439. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;try&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  440. &lt;/div&gt;
  441. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  442. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{229e9aa5-05e0-46ed-ba7a-595af1628244}{231}&quot; paraid=&quot;1510048786&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 48px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  443. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px; text-indent: 96px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp; Session&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px; text-indent: 96px;&quot; xml:lang=&quot;EN-US&quot;&gt;&lt;span class=&quot;SpellingError SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: inherit; background-image: url(data:image/gif; background-position: 0% 100%; background-repeat: repeat-x; border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; margin: 0px; padding: 0px;&quot;&gt;session&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px; text-indent: 96px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px; text-indent: 96px;&quot; xml:lang=&quot;EN-US&quot;&gt;getCurrentSession&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px; text-indent: 96px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px; text-indent: 96px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px; text-indent: 96px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  444. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{229e9aa5-05e0-46ed-ba7a-595af1628244}{231}&quot; paraid=&quot;1510048786&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 48px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  445. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px; text-indent: 96px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp; Database nab =&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px; text-indent: 96px;&quot; xml:lang=&quot;EN-US&quot;&gt;session.getDatabase&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px; text-indent: 96px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px; text-indent: 96px;&quot; xml:lang=&quot;EN-US&quot;&gt;session.getCurrentDatabase&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px; text-indent: 96px;&quot; xml:lang=&quot;EN-US&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px; text-indent: 96px;&quot; xml:lang=&quot;EN-US&quot;&gt;getServer&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px; text-indent: 96px;&quot; xml:lang=&quot;EN-US&quot;&gt;(),&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px; text-indent: 96px;&quot; xml:lang=&quot;EN-US&quot;&gt;&quot;names&quot;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px; text-indent: 96px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;/div&gt;
  446. &lt;/div&gt;
  447. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  448. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{3}&quot; paraid=&quot;841568188&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 144px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  449. &lt;br /&gt;&lt;/div&gt;
  450. &lt;/div&gt;
  451. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  452. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{10}&quot; paraid=&quot;1628602048&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 48px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  453. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;if&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&lt;span class=&quot;NormalTextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: inherit; margin: 0px; padding: 0px;&quot;&gt;nab.&lt;/span&gt;&lt;span class=&quot;SpellingError SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: inherit; background-image: url(data:image/gif; background-position: 0% 100%; background-repeat: repeat-x; border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; margin: 0px; padding: 0px;&quot;&gt;isOpen&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;()) {&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  454. &lt;/div&gt;
  455. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  456. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{20}&quot; paraid=&quot;786928497&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 96px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  457. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;View&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&lt;span class=&quot;SpellingError SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: inherit; background-image: url(data:image/gif; background-position: 0% 100%; background-repeat: repeat-x; border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; margin: 0px; padding: 0px;&quot;&gt;view&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;nab.getView&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&quot;Groups&quot;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  458. &lt;/div&gt;
  459. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  460. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{27}&quot; paraid=&quot;1200987108&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 96px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  461. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;(view !=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;) {&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  462. &lt;/div&gt;
  463. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  464. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{39}&quot; paraid=&quot;460921408&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 144px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  465. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;Document doc =&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;view.getDocumentByKey&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;Group 1&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  466. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{39}&quot; paraid=&quot;460921408&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 144px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  467. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;(doc !=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;) {&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  468. &lt;/div&gt;
  469. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  470. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{56}&quot; paraid=&quot;792765710&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 192px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  471. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;Item&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&lt;span class=&quot;SpellingError SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: inherit; background-image: url(data:image/gif; background-position: 0% 100%; background-repeat: repeat-x; border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; margin: 0px; padding: 0px;&quot;&gt;item&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;doc.getFirstItem&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&quot;Members&quot;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  472. &lt;/div&gt;
  473. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  474. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{63}&quot; paraid=&quot;1603065147&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 192px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  475. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-weight: bold; line-height: 18.2px; text-indent: 48px;&quot;&gt;2&amp;nbsp;&lt;/span&gt;Vector&amp;lt;String&amp;gt; v =&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;item.getValues&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  476. &lt;/div&gt;
  477. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  478. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{69}&quot; paraid=&quot;1810585851&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 192px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  479. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;String person : v){&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  480. &lt;/div&gt;
  481. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  482. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{82}&quot; paraid=&quot;2084019101&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 240px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  483. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-weight: bold; line-height: 18.2px; text-indent: 48px;&quot;&gt;3&amp;nbsp;&lt;/span&gt;Name&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&lt;span class=&quot;SpellingError SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: inherit; background-image: url(data:image/gif; background-position: 0% 100%; background-repeat: repeat-x; border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; margin: 0px; padding: 0px;&quot;&gt;name&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;session.createName&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;person);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;options.add&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&lt;span class=&quot;NormalTextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: inherit; margin: 0px; padding: 0px;&quot;&gt;name.&lt;/span&gt;&lt;span class=&quot;SpellingError SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: inherit; background-image: url(data:image/gif; background-position: 0% 100%; background-repeat: repeat-x; border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; margin: 0px; padding: 0px;&quot;&gt;getCommon&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;());&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  484. &lt;/div&gt;
  485. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  486. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{86}&quot; paraid=&quot;1985873280&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 192px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  487. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  488. &lt;/div&gt;
  489. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  490. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{92}&quot; paraid=&quot;148672264&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 192px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  491. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;doc.recycle&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  492. &lt;/div&gt;
  493. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  494. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{98}&quot; paraid=&quot;1109101072&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 192px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  495. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;item.recycle&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  496. &lt;/div&gt;
  497. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  498. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{104}&quot; paraid=&quot;556345679&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 192px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  499. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  500. &lt;/div&gt;
  501. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  502. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{116}&quot; paraid=&quot;1670630745&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 192px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  503. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;log.error&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;Group 1 cannot be opened&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;.&quot;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  504. &lt;/div&gt;
  505. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  506. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{120}&quot; paraid=&quot;1593711441&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 240px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  507. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  508. &lt;/div&gt;
  509. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  510. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{133}&quot; paraid=&quot;1925424607&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 144px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  511. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;doc&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;view.getDocumentByKey&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;Group 2&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  512. &lt;/div&gt;
  513. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  514. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{140}&quot; paraid=&quot;341940143&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 96px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  515. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;(doc !=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;) {&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  516. &lt;/div&gt;
  517. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  518. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{150}&quot; paraid=&quot;850240654&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 144px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  519. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;Item&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&lt;span class=&quot;SpellingError SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: inherit; background-image: url(data:image/gif; background-position: 0% 100%; background-repeat: repeat-x; border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; margin: 0px; padding: 0px;&quot;&gt;item&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;doc.getFirstItem&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&quot;Members&quot;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  520. &lt;/div&gt;
  521. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  522. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{157}&quot; paraid=&quot;1763253108&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 144px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  523. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;Vector&amp;lt;String&amp;gt; v =&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;item.getValues&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  524. &lt;/div&gt;
  525. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  526. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{163}&quot; paraid=&quot;2090047473&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 144px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  527. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;String person : v){&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  528. &lt;/div&gt;
  529. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  530. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{172}&quot; paraid=&quot;492265594&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 192px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  531. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;Name&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&lt;span class=&quot;SpellingError SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: inherit; background-image: url(data:image/gif; background-position: 0% 100%; background-repeat: repeat-x; border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; margin: 0px; padding: 0px;&quot;&gt;name&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;session.createName&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;person);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  532. &lt;/div&gt;
  533. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  534. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{179}&quot; paraid=&quot;101893239&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 192px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  535. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;options.add&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;name.getCommon&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;());&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  536. &lt;/div&gt;
  537. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  538. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{183}&quot; paraid=&quot;2015049275&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 192px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  539. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  540. &lt;/div&gt;
  541. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  542. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{189}&quot; paraid=&quot;1339786447&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 192px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  543. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;doc.recycle&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  544. &lt;/div&gt;
  545. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  546. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{195}&quot; paraid=&quot;1096131104&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 192px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  547. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;item.recycle&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  548. &lt;/div&gt;
  549. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  550. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{201}&quot; paraid=&quot;1761321500&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 192px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  551. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  552. &lt;/div&gt;
  553. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  554. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{213}&quot; paraid=&quot;2015295080&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 240px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  555. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;log.error&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;Group&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;2&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;cannot be found, or opened.&quot;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  556. &lt;/div&gt;
  557. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  558. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{217}&quot; paraid=&quot;1906900619&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 192px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  559. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  560. &lt;/div&gt;
  561. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  562. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{221}&quot; paraid=&quot;1275838561&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 192px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  563. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;……………… //get names from third group&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  564. &lt;/div&gt;
  565. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  566. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{225}&quot; paraid=&quot;1596744725&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 192px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  567. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  568. &lt;/div&gt;
  569. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  570. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{231}&quot; paraid=&quot;176702148&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 144px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  571. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  572. &lt;/div&gt;
  573. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  574. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{241}&quot; paraid=&quot;416506160&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 192px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  575. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;log.error&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;Address Book is not found, or able to be opened.&quot;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  576. &lt;/div&gt;
  577. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  578. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{245}&quot; paraid=&quot;2124529344&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 144px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  579. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  580. &lt;/div&gt;
  581. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  582. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{56751e44-74a0-41d5-814e-fe7156f4e7c4}{253}&quot; paraid=&quot;1708679957&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 96px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  583. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;catch&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&lt;span class=&quot;SpellingError SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: inherit; background-image: url(data:image/gif; background-position: 0% 100%; background-repeat: repeat-x; border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; margin: 0px; padding: 0px;&quot;&gt;NotesException&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;e) {&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  584. &lt;/div&gt;
  585. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  586. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{28359706-bc53-455e-b634-e3fb9307c248}{10}&quot; paraid=&quot;1972456417&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 144px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  587. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;log.error&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&quot;EXCEPTION in&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;get&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;UserList&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #2a00ff; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(): &quot;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;+&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;e.toString&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;());&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  588. &lt;/div&gt;
  589. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  590. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{28359706-bc53-455e-b634-e3fb9307c248}{16}&quot; paraid=&quot;1903415365&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 144px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  591. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;e.printStackTrace&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  592. &lt;/div&gt;
  593. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  594. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{28359706-bc53-455e-b634-e3fb9307c248}{20}&quot; paraid=&quot;1814548029&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 96px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  595. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  596. &lt;/div&gt;
  597. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  598. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{28359706-bc53-455e-b634-e3fb9307c248}{23}&quot; paraid=&quot;811170815&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 96px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  599. &lt;br /&gt;&lt;/div&gt;
  600. &lt;/div&gt;
  601. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  602. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{28359706-bc53-455e-b634-e3fb9307c248}{41}&quot; paraid=&quot;1783841147&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 96px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  603. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-weight: bold; line-height: 18.2px; text-indent: 48px;&quot;&gt;4&amp;nbsp;&lt;/span&gt;Set&amp;lt;String&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&lt;span class=&quot;SpellingError SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: inherit; background-image: url(data:image/gif; background-position: 0% 100%; background-repeat: repeat-x; border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; margin: 0px; padding: 0px;&quot;&gt;hs&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;HashSet&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;lt;String&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;/div&gt;
  604. &lt;/div&gt;
  605. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  606. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{28359706-bc53-455e-b634-e3fb9307c248}{47}&quot; paraid=&quot;2079292874&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 96px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  607. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;hs.addAll&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;options);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  608. &lt;/div&gt;
  609. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  610. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{28359706-bc53-455e-b634-e3fb9307c248}{53}&quot; paraid=&quot;1411453212&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 96px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  611. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;options.clear&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  612. &lt;/div&gt;
  613. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  614. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{28359706-bc53-455e-b634-e3fb9307c248}{60}&quot; paraid=&quot;1255145242&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 96px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  615. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;options.addAll&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&lt;span class=&quot;SpellingError SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: inherit; background-image: url(data:image/gif; background-position: 0% 100%; background-repeat: repeat-x; border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; margin: 0px; padding: 0px;&quot;&gt;hs&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  616. &lt;/div&gt;
  617. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  618. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{28359706-bc53-455e-b634-e3fb9307c248}{63}&quot; paraid=&quot;410441784&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 96px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  619. &lt;br /&gt;&lt;/div&gt;
  620. &lt;/div&gt;
  621. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  622. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{28359706-bc53-455e-b634-e3fb9307c248}{71}&quot; paraid=&quot;1232738487&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 96px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  623. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-weight: bold; line-height: 18.2px; text-indent: 48px;&quot;&gt;5&amp;nbsp;&lt;/span&gt;Collections.&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; font-style: italic; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;sort&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;options);&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  624. &lt;/div&gt;
  625. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  626. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{28359706-bc53-455e-b634-e3fb9307c248}{74}&quot; paraid=&quot;391729874&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 96px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  627. &lt;br /&gt;&lt;/div&gt;
  628. &lt;/div&gt;
  629. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  630. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{28359706-bc53-455e-b634-e3fb9307c248}{85}&quot; paraid=&quot;704204073&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 96px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  631. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; line-height: 18.2px; text-indent: 48px;&quot;&gt;6&amp;nbsp;&lt;/span&gt;for&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;String person : options){&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  632. &lt;/div&gt;
  633. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  634. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{28359706-bc53-455e-b634-e3fb9307c248}{95}&quot; paraid=&quot;1489966485&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 144px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  635. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;SelectItem&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;option =&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;SelectItem&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  636. &lt;/div&gt;
  637. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  638. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{28359706-bc53-455e-b634-e3fb9307c248}{101}&quot; paraid=&quot;1355761418&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 144px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  639. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;option.setLabel&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;person);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  640. &lt;/div&gt;
  641. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  642. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{28359706-bc53-455e-b634-e3fb9307c248}{107}&quot; paraid=&quot;59579482&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 144px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  643. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;option.setValue&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;person);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  644. &lt;/div&gt;
  645. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  646. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{28359706-bc53-455e-b634-e3fb9307c248}{113}&quot; paraid=&quot;899614578&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 144px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  647. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;sortedOptions.add&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;option);&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  648. &lt;/div&gt;
  649. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  650. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{28359706-bc53-455e-b634-e3fb9307c248}{117}&quot; paraid=&quot;2139540059&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 96px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  651. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  652. &lt;/div&gt;
  653. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  654. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{28359706-bc53-455e-b634-e3fb9307c248}{124}&quot; paraid=&quot;659808132&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; padding: 0px; text-indent: 96px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  655. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; color: #7f0055; font-family: &#39;Courier New&#39;, monospace; font-weight: bold; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&lt;span class=&quot;SpellingError SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: inherit; background-image: url(data:image/gif; background-position: 0% 100%; background-repeat: repeat-x; border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; margin: 0px; padding: 0px;&quot;&gt;sortedOptions&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;EOP SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 14px; margin: 0px; padding: 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  656. &lt;/div&gt;
  657. &lt;div class=&quot;OutlineElement Ltr SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: white; clear: both; cursor: text; direction: ltr; margin: 0px; overflow: visible; padding: 0px; position: relative;&quot;&gt;
  658. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{28359706-bc53-455e-b634-e3fb9307c248}{128}&quot; paraid=&quot;393381431&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; padding: 0px; text-indent: 48px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  659. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 16px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
  660. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{28359706-bc53-455e-b634-e3fb9307c248}{128}&quot; paraid=&quot;393381431&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; padding: 0px; text-indent: 48px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  661. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 16px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  662. &lt;div class=&quot;Paragraph SCX152143174&quot; paraeid=&quot;{28359706-bc53-455e-b634-e3fb9307c248}{128}&quot; paraid=&quot;393381431&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; background-color: transparent; color: windowtext; font-family: &#39;Segoe UI&#39;, Tahoma, Verdana, sans-serif; padding: 0px; text-indent: 48px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;
  663. &lt;span class=&quot;TextRun SCX152143174&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; -webkit-user-select: text; font-family: &#39;Courier New&#39;, monospace; line-height: 16px; margin: 0px; padding: 0px;&quot; xml:lang=&quot;EN-US&quot;&gt;&lt;/span&gt;&lt;/div&gt;
  664. &lt;h3&gt;
  665. Code Explanation using footnotes:&lt;/h3&gt;
  666. &lt;div&gt;
  667. &lt;br /&gt;&lt;/div&gt;
  668. &lt;div&gt;
  669. &lt;div style=&quot;color: #444444; line-height: 18.2px;&quot;&gt;
  670. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold; line-height: 18.2px;&quot;&gt;1 &amp;nbsp;-&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2px;&quot;&gt;Declare two ArrayLists, one for Strings, and one for SelectItems.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  671. &lt;div style=&quot;color: #444444; font-size: 13px; line-height: 18.2px;&quot;&gt;
  672. &lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  673. &lt;div style=&quot;color: #444444; line-height: 18.2px;&quot;&gt;
  674. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;2 &amp;nbsp;-&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2px;&quot;&gt;The values of a multi-value field are returned as a Vector. For each item in the Vector, I assign the item into the String ArrayList&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  675. &lt;div style=&quot;color: #444444; line-height: 18.2px;&quot;&gt;
  676. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  677. &lt;div&gt;
  678. &lt;span style=&quot;color: blue; font-family: inherit; font-weight: bold; line-height: 18.2px;&quot;&gt;3 -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 18.2px;&quot;&gt;This uses the Name class to get the formatted name. This is part of the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;line-height: 18.2px;&quot;&gt;original&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 18.2px;&quot;&gt;&amp;nbsp;Notes API for java, and is quite&amp;nbsp;useful.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  679. &lt;div style=&quot;color: #444444; line-height: 18.2px;&quot;&gt;
  680. &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  681. &lt;div style=&quot;color: #444444; line-height: 18.2px;&quot;&gt;
  682. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;4 - &amp;nbsp;&lt;/span&gt;This is where I pass the contents of the String ArrayList into a HashSet and then back again. All Sets in Java are not able to contain duplicate values.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  683. &lt;div style=&quot;color: #444444; line-height: 18.2px;&quot;&gt;
  684. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  685. &lt;div style=&quot;color: #444444; line-height: 18.2px;&quot;&gt;
  686. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 18.2px;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;5 -&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2px;&quot;&gt;After the duplicates are removed, then I sort the list. If you try to sort before removing duplicates it won&#39;t be sorted after changing to a Hashset and back. As you can see, sorting a String List is very easy using the Collections class.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  687. &lt;div style=&quot;color: #444444; line-height: 18.2px;&quot;&gt;
  688. &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  689. &lt;div style=&quot;color: #444444; line-height: 18.2px;&quot;&gt;
  690. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;color: blue;&quot;&gt;6 - &amp;nbsp;&lt;/b&gt;&lt;span style=&quot;line-height: 18.2px;&quot;&gt;Lastly, I convert the ArrayList of Strings into an ArrayList of SelectItems for use in my combo box.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  691. &lt;/div&gt;
  692. &lt;div style=&quot;color: #444444; line-height: 18.2px;&quot;&gt;
  693. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 18.2px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  694. &lt;h3 style=&quot;color: #444444; line-height: 18.2px;&quot;&gt;
  695. Last Words&lt;/h3&gt;
  696. &lt;div&gt;
  697. &lt;br /&gt;&lt;/div&gt;
  698. &lt;div&gt;
  699. &lt;span style=&quot;line-height: 18.2px;&quot;&gt;In Java the Collections Framework is super useful and one of the strengths of the language. If you are learning Java it would wise to pay special attention to knowing what it can do for you. &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  700. &lt;span style=&quot;line-height: 18.2px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  701. &lt;span style=&quot;color: red; line-height: 18.2px;&quot;&gt;&lt;b&gt;Please check comments of this post for some great tips on how to improve on what I posted.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
  702. &lt;/div&gt;
  703. </description><link>http://notesspeak.blogspot.com/2015/09/sorting-java-arraylist-of-selectitem.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>7</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-8544391385909910936</guid><pubDate>Thu, 17 Sep 2015 01:44:00 +0000</pubDate><atom:updated>2015-09-16T21:06:31.460-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">xpages</category><title>Quick Tip: Don&#39;t Forget to Hide Views from Web Browsers</title><description>One item to add to your checklist before deploying a new XPages application is to remember to hide your views from web browsers. The last application I deployed used a DB2 backend for everything but we still used views to hold keyword documents and error messages. If you forget to hide them from the web, then users could use the address bar and type in the view name which could allow users to see data they are not intended to see. Another factor is those default views are cringe-worthy ugly.&lt;br /&gt;
  704. &lt;br /&gt;
  705. I knew that hiding the views was easy, but it actually took me a while to find the setting. I expected to find it in the properties of the view but it isn&#39;t there. Of course my next step was to use google to find the answer but amazingly, I couldn&#39;t find anything. I started to compose a Stack Overflow question but discovered the answer while composing the question.&lt;br /&gt;
  706. &lt;br /&gt;
  707. The property is in the design properties as shown below.&lt;br /&gt;
  708. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  709. &lt;a href=&quot;http://1.bp.blogspot.com/-dAy5fyFmmnE/VfoVxqpX2fI/AAAAAAAAHjE/VXjrS9SfvvA/s1600/Capture6-18a.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://1.bp.blogspot.com/-dAy5fyFmmnE/VfoVxqpX2fI/AAAAAAAAHjE/VXjrS9SfvvA/s640/Capture6-18a.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  710. &lt;br /&gt;
  711. The design view also has a column that shows whether the view is visible on the web or not. In the XPages world, I can&#39;t think of a single reason why you would ever want to show a view to a web browser.&lt;br /&gt;
  712. &lt;br /&gt;
  713. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  714. &lt;a href=&quot;http://1.bp.blogspot.com/-RzGTD3dXHZI/VfoXQdekSaI/AAAAAAAAHjQ/NUcW1DL-TwI/s1600/ATT00001.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;178&quot; src=&quot;http://1.bp.blogspot.com/-RzGTD3dXHZI/VfoXQdekSaI/AAAAAAAAHjQ/NUcW1DL-TwI/s640/ATT00001.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  715. &lt;br /&gt;
  716. Edit: If you follow the best practice of separating your design and data into two NSF&#39;s then you don&#39;t have to worry about hiding your views, you would hide the whole database from direct web access. We used a single NSF because all of our data was in a relational backend so our data and design were already separate. Thanks to David Leedy and Jesse Gallagher for pointing this out.</description><link>http://notesspeak.blogspot.com/2015/09/quick-tip-dont-forget-to-hide-views.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-dAy5fyFmmnE/VfoVxqpX2fI/AAAAAAAAHjE/VXjrS9SfvvA/s72-c/Capture6-18a.PNG" height="72" width="72"/><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-2085397779061253912</guid><pubDate>Sun, 23 Aug 2015 23:00:00 +0000</pubDate><atom:updated>2015-11-17T21:02:27.197-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DB2</category><category domain="http://www.blogger.com/atom/ns#">xpages</category><title>Using DB2 in XPages Part 10: The MWLUG 2015 Presentation Slides, and Thoughts</title><description>MWLUG is now a wrap. I was honored to be chosen to speak along with Dwain Wuerfel on Integrating DB2 and XPages. I am a somewhat bummed that technical troubles limited the demo I wanted to show. Thankfully as I have been told, my backup plan did get my point across. To that end, I have created additional slides to incorporate what I showed in the demo. &lt;br /&gt;
  717. &lt;br /&gt;
  718. I have embedded the demo below, but it might be hard to read, so click&lt;a href=&quot;http://www.slideshare.net/Steve_Zavocki/real-world-experience-integrating-db2-with-xpages-51971151?ref=http://www.slideshare.net/Steve_Zavocki/slideshelf&quot; target=&quot;_blank&quot;&gt;&amp;nbsp;here to view directly on slideshare&lt;/a&gt;.&lt;br /&gt;
  719. &lt;br /&gt;
  720. &lt;h3&gt;
  721. The Slides&lt;/h3&gt;
  722. &lt;br /&gt;
  723. &lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;355&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;//www.slideshare.net/slideshow/embed_code/key/iIIvGErSYVDlit&quot; style=&quot;border-width: 1px; border: 1px solid #CCC; margin-bottom: 5px; max-width: 100%;&quot; width=&quot;425&quot;&gt; &lt;/iframe&gt; &lt;br /&gt;
  724. &lt;div style=&quot;margin-bottom: 5px;&quot;&gt;
  725. &lt;strong&gt; &lt;a href=&quot;https://www.slideshare.net/Steve_Zavocki/real-world-experience-integrating-db2-with-xpages-51971151&quot; target=&quot;_blank&quot; title=&quot;Real World Experience: Integrating DB2 with XPages&quot;&gt;Real World Experience: Integrating DB2 with XPages&lt;/a&gt; &lt;/strong&gt; from &lt;strong&gt;&lt;a href=&quot;https://www.slideshare.net/Steve_Zavocki&quot; target=&quot;_blank&quot;&gt;Steve_Zavocki&lt;/a&gt;&lt;/strong&gt; &lt;br /&gt;
  726. &lt;br /&gt;
  727. &lt;h3&gt;
  728. Youtube Video Link&lt;/h3&gt;
  729. &lt;div&gt;
  730. &lt;br /&gt;&lt;/div&gt;
  731. You can watch the session on youtube here: &lt;a href=&quot;https://www.youtube.com/watch?v=GVgfWzBomoM&quot;&gt;https://www.youtube.com/watch?v=GVgfWzBomoM&lt;/a&gt;&lt;br /&gt;
  732. &lt;br /&gt;
  733. A big thanks to David Navarre for recording the session!&lt;br /&gt;
  734. &lt;br /&gt;
  735. &lt;h3&gt;
  736. Conference Review&lt;/h3&gt;
  737. &lt;br /&gt;
  738. The conference this year was as great for content and making and renewing friendships. If you have never attended an MWLUG conference I can&#39;t recommend it enough. Both times I have attended I have paid my own way, and it was money well spent. Next year the conference is going to be in Austin, Texas and they are hoping for 250 attendees. Kudos to Richard Moy and team who are wonderful organizers!&lt;br /&gt;
  739. &lt;br /&gt;
  740. &lt;div&gt;
  741. &lt;br /&gt;
  742. &lt;h3&gt;
  743. Final Thoughts&lt;/h3&gt;
  744. &lt;br /&gt;
  745. Writing this post, it occurred to me that August 23 is exactly three years since I received my first *real world* (ie: paid) XPages experience. On this day in 2012 was when I started working at Harmons Grocery in Salt Lake City, Utah. Harmons was a great experience, and since then I have been further challenged working at Navy Federal Credit Union in Florida. I have very much enjoyed the transition from Notes Developer to a Web Application Developer. I am excited to see what the next three years brings, whether that is XPages, Java, or the latest Javascript frameworks; ideally all of the above and more.&lt;/div&gt;
  746. &lt;/div&gt;
  747. </description><link>http://notesspeak.blogspot.com/2015/08/using-db2-in-xpages-part-10-mwlug-2015.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-5664623771306817384</guid><pubDate>Mon, 27 Jul 2015 15:38:00 +0000</pubDate><atom:updated>2015-07-27T18:44:23.192-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DB2</category><category domain="http://www.blogger.com/atom/ns#">xpages</category><title>Using DB2 in XPages Part 9: Access DB2 from a Java Agent</title><description>Unless I think of something else worthy of writing about, this will be my final post in this blog series on DB2 and XPages. I am grateful and honored by the compliments that have come my way with regards to this series. One of the main reasons I blog is so that I can remember the work that I have done, and so that I will be able to do it quicker and more effective in future. The other main reason is that I also enjoy sharing information with others, especially since I have greatly benefited from other community bloggers.&lt;br /&gt;
  748. &lt;div&gt;
  749. &lt;br /&gt;&lt;/div&gt;
  750. &lt;div&gt;
  751. I also wanted to give another plug for the &lt;a href=&quot;http://www.mwlug.com/mwlug/mwlug2015.nsf/Home.xsp&quot; target=&quot;_blank&quot;&gt;MWLUG&lt;/a&gt; conference this August 19-21, 2015 in Atlanta. There some amazing sessions being presents by the top names in our community. I am humbled and honored to be included on that list. Along with my co-worker Dwain Weurfel, I will be presenting a session titled &quot;Real World Experience: Integrating XPages and DB2&quot;. Come hear us present on topics that are included in this blog series and much more.&amp;nbsp;&lt;/div&gt;
  752. &lt;div&gt;
  753. &lt;br /&gt;&lt;/div&gt;
  754. &lt;div&gt;
  755. &lt;b&gt;In this post, my topic is accessing DB2 data using a Java agent.&lt;/b&gt;&lt;br /&gt;
  756. &lt;b&gt;&lt;br /&gt;&lt;/b&gt;
  757. &lt;br /&gt;
  758. &lt;h3&gt;
  759. How are Java Agents Different&lt;/h3&gt;
  760. &lt;/div&gt;
  761. &lt;div&gt;
  762. &lt;br /&gt;&lt;/div&gt;
  763. &lt;div&gt;
  764. Java agents are different and those differences can be &lt;i&gt;very&lt;/i&gt; frustrating. I remember seeing this tweet and it reminded me that I needed to get busy and write this blog post.&lt;/div&gt;
  765. &lt;div&gt;
  766. &lt;blockquote class=&quot;twitter-tweet&quot; data-conversation=&quot;none&quot; lang=&quot;en&quot;&gt;
  767. &lt;div dir=&quot;ltr&quot; lang=&quot;en&quot;&gt;
  768. &lt;a href=&quot;https://twitter.com/ptcalhoun&quot;&gt;@ptcalhoun&lt;/a&gt; Same here this week - Java agents suck. DO NOT USE them&lt;/div&gt;
  769. — Oliver Busse ✫ (@zeromancer1972) &lt;a href=&quot;https://twitter.com/zeromancer1972/status/623559988003381248&quot;&gt;July 21, 2015&lt;/a&gt;&lt;/blockquote&gt;
  770. &lt;script async=&quot;&quot; charset=&quot;utf-8&quot; src=&quot;//platform.twitter.com/widgets.js&quot;&gt;&lt;/script&gt;
  771. &lt;/div&gt;
  772. &lt;div&gt;
  773. In our case, we &lt;i&gt;had&lt;/i&gt; to use them for scheduled processes that needed to run on the server. It was use either Java or LotusScript.&lt;br /&gt;
  774. &lt;br /&gt;
  775. To access DB2, it is necessary to access the drivers provided by IBM or your DBA. To have your agent code reference the drivers and any other jars is is necessary to understand the restrictions that apply to java agents. The list below is not meant to be exhaustive:&lt;br /&gt;
  776. &lt;br /&gt;
  777. Java Agents Can:&lt;br /&gt;
  778. &lt;ol&gt;
  779. &lt;li&gt;Access Jar files stored in the servers &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;jvm\lib\ext&lt;/span&gt; folder&lt;/li&gt;
  780. &lt;li&gt;Access Script Libraries containing supporting classes&lt;/li&gt;
  781. &lt;/ol&gt;
  782. &lt;div&gt;
  783. Java Agents Cannot: &amp;nbsp;&lt;/div&gt;
  784. &lt;div&gt;
  785. &lt;ol&gt;
  786. &lt;li&gt;Access Jars stored in the NSF&#39;s Build Path&lt;/li&gt;
  787. &lt;li&gt;Access any Jar using the new &#39;Jar&#39; design element&lt;/li&gt;
  788. &lt;li&gt;Access any java code stored in the Code\Java section&lt;/li&gt;
  789. &lt;/ol&gt;
  790. &lt;h3&gt;
  791. Using External Jars and Script Libraries&lt;/h3&gt;
  792. &lt;div&gt;
  793. &lt;br /&gt;&lt;/div&gt;
  794. &lt;div&gt;
  795. Java agents can access the jars on the server but you MUST also have a copy of the jars on your local &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;jvm\lib\ext&lt;/span&gt; folder in order to compile your code.&lt;/div&gt;
  796. &lt;/div&gt;
  797. &lt;div&gt;
  798. &lt;br /&gt;&lt;/div&gt;
  799. &lt;div&gt;
  800. To use a supporting script library in your java agent, you first create a new library of type &#39;Java&#39;. You then put whatever supporting classes inside that you need. Once created, you then can import the library into your java agent using the &#39;Import&#39; button. In this case in the graphic, there are only two classes; I could have easily just imported those two classes individually into my agent.&lt;/div&gt;
  801. &lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
  802. &lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-9rV_Hy6oiqM/VbVUBeTIq7I/AAAAAAAAHiY/0E2SkPnF_SE/s1600/7-26-2015%2B5-31-35%2BPM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;297&quot; src=&quot;http://1.bp.blogspot.com/-9rV_Hy6oiqM/VbVUBeTIq7I/AAAAAAAAHiY/0E2SkPnF_SE/s400/7-26-2015%2B5-31-35%2BPM.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
  803. &lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif; font-size: small;&quot;&gt;Script Library&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  804. &lt;/tbody&gt;&lt;/table&gt;
  805. &lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
  806. &lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-I8Uw3xzAvyA/VbVUic4ahGI/AAAAAAAAHig/ovid09XxYNo/s1600/7-26-2015%2B5-35-35%2BPM.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;267&quot; src=&quot;http://2.bp.blogspot.com/-I8Uw3xzAvyA/VbVUic4ahGI/AAAAAAAAHig/ovid09XxYNo/s400/7-26-2015%2B5-35-35%2BPM.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
  807. &lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif; font-size: small;&quot;&gt;Use Import to use the Script Library in your agent&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  808. &lt;/tbody&gt;&lt;/table&gt;
  809. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  810. &lt;/div&gt;
  811. &lt;div&gt;
  812. Finally, the last thing you need to do in order to use the classes is to add an import statement in your agent. &amp;nbsp;&lt;/div&gt;
  813. &lt;div&gt;
  814. &lt;br /&gt;&lt;/div&gt;
  815. &lt;div&gt;
  816. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #820040;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;import&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp;org.sample.javaLib.XLog;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #820040;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;import&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp;&lt;span style=&quot;line-height: 18.4599990844727px;&quot;&gt;org.sample.javaLib.AgentUtils&lt;/span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  817. &lt;/div&gt;
  818. &lt;div&gt;
  819. &lt;br /&gt;
  820. &lt;div&gt;
  821. &lt;h3&gt;
  822. Code Usage&lt;/h3&gt;
  823. &lt;/div&gt;
  824. &lt;div&gt;
  825. &lt;br /&gt;&lt;/div&gt;
  826. &lt;div style=&quot;background-color: white; color: #444444; line-height: 18.2000007629395px;&quot;&gt;
  827. &lt;span style=&quot;font-family: inherit;&quot;&gt;The code in this example runs on a scheduled basis to update a table column based on a condition.&lt;/span&gt;&lt;/div&gt;
  828. &lt;div style=&quot;background-color: white; color: #444444; line-height: 18.2000007629395px;&quot;&gt;
  829. &lt;br /&gt;&lt;/div&gt;
  830. &lt;h3&gt;
  831. Code Example using footnotes&lt;/h3&gt;
  832. &lt;/div&gt;
  833. &lt;div&gt;
  834. &lt;br /&gt;&lt;/div&gt;
  835. &lt;div&gt;
  836. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;package org.sample.agent;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;import java.sql.Connection;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;import java.sql.DriverManager;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;import java.sql.PreparedStatement;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;import java.sql.ResultSet;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;import java.sql.SQLException;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;import java.text.DateFormat;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;import java.text.SimpleDateFormat;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;import lotus.domino.AgentBase;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;import lotus.domino.Database;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;import lotus.domino.Document;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;import lotus.domino.Session;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;import lotus.domino.View;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  837. &lt;span style=&quot;color: blue; font-family: &#39;PT Sans Caption&#39;; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  838. &lt;span style=&quot;color: blue; font-family: &#39;PT Sans Caption&#39;; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;1&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;import org.sample.javaLib.XLog;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;import org.sample.javaLib.AgentUtils;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;public class JavaAgent extends AgentBase {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;@Override&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;public void NotesMain() {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp;Database db_cred = null;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp;Connection conn = null;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp;PreparedStatement ps1 = null, ps2 = null;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp;ResultSet rs = null;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp;XLog log = null;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp;Session session = getSession();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp;try {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;//get values from keyword documents&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;PT Sans Caption&#39;; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;2&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;String schema = session.getCurrentDatabase().getView(&quot;Keywords&quot;).getDocumentByKey(&quot;SCHEMA&quot;).getItemValue(&quot;KeywordValues&quot;).elementAt(0).toString().trim();&lt;/span&gt;&lt;/div&gt;
  839. &lt;div&gt;
  840. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; ...Rest of code to pull keywords removed... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;//Initialize log&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;log = new XLog(&quot;My App&quot;, agentDebugServer, agentLogDB, agentDebugLevel);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;log.info(&quot;Agent processPendingSettlementAmount: Starting execution of agent&quot;);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;db_cred = session.getDatabase(agentDebugServer, dbpath);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  841. &lt;div&gt;
  842. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;PT Sans Caption&#39;; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;3&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;db_cred.isOpen()) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  843. &lt;div&gt;
  844. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; View v = db_pass.getView(dbview);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;Document doc = v.getDocumentByKey(dbkey, true);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;String url = doc.getItemValueString(&quot;PI_JDBCURL&quot;).trim();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String user = doc.getItemValueString(&quot;PI_Username&quot;).trim();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String password = doc.getItemValueString(&quot;PI_Password&quot;).trim();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;PT Sans Caption&#39;; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;PT Sans Caption&#39;; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;doc.recycle();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  845. &lt;div&gt;
  846. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; v.recycle();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Class.forName(driver);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;PT Sans Caption&#39;; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;5&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;conn = DriverManager.getConnection(url, user, password);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  847. &lt;div&gt;
  848. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (conn != null) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; conn.setAutoCommit(false);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.util.Date currentDate = new java.util.Date();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;PT Sans Caption&#39;; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;6&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;java.sql.Date emptyDate = java.sql.Date.valueOf(&quot;9999-12-31&quot;);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  849. &lt;div&gt;
  850. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  851. &lt;div&gt;
  852. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;// Format Posting Date&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;DateFormat formatter = new SimpleDateFormat(&quot;yyyy-MM-dd&quot;);&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;currentDate = formatter.parse(formatter.format(currentDate)); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  853. &lt;div&gt;
  854. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;java.sql.Date currentDateSQL = new&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  855. &lt;div&gt;
  856. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;java.sql.Date(currentDate.getTime()); // convert to SQL date&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;PT Sans Caption&#39;; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;7&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;String sqlSelect = &quot;SELECT USER_ID,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;USER_TAX_PAID&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;USER_TAX_DUE_AMT&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;, &quot; +&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  857. &lt;div&gt;
  858. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;USER_TAX_DUE_AMT&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp;FROM &quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;+ schema&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;+ &quot;.USER_DETAIL&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp;+&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  859. &lt;div&gt;
  860. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&quot;WHERE USER_TAX_DUE_AMT &amp;gt; 0 AND USER_TAX_DUE_DT &amp;lt;= ?&quot;;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; String sqlUpdate = &quot;UPDATE &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;USER_DETAIL SET USER_TAX_PAID = ?, USER_TAX_DUE_AMT = ?, USER_TAX_DUE_DT = ? &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;WHERE USER_ID = ?&quot;;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  861. &lt;div&gt;
  862. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; ps1 = conn.prepareStatement(sqlSelect);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; ps1.setDate(1, currentDateSQL);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; rs = ps1.executeQuery();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; while (rs.next()) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;ps2 = conn.prepareStatement(sqlUpdate);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;PT Sans Caption&#39;; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;8&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;ps2.setString(1, rs.getString(&quot;USER_TAX_DUE_AMT&quot;).trim());&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  863. &lt;div&gt;
  864. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ps2.setInt(2, 0);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ps2.setDate(3, emptyDate);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ps2.setString(4, rs.getString(&quot;USER_ID&quot;).trim());&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ps2.executeUpdate();&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  865. &lt;div&gt;
  866. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &#39;PT Sans Caption&#39;; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;9&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;conn.commit();&lt;/span&gt;&lt;/div&gt;
  867. &lt;div&gt;
  868. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  869. &lt;div&gt;
  870. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; log.info(&quot;Agent processTax: Process completed successfully&quot;);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;} else {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; log.error(&quot;Agent processTax: Connection to DB2 could not be obtained&quot;);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; } else {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;log.error(&quot;Agent processTax: Unable to open DBCRED document&quot;);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  871. &lt;div&gt;
  872. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  873. &lt;div&gt;
  874. &lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;catch (Exception e) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  875. &lt;div&gt;
  876. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; //log errors&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp;finally {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; //clean up connections &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  877. &lt;div&gt;
  878. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  879. &lt;div&gt;
  880. &lt;h3 style=&quot;background-color: white; color: #444444; font-family: &#39;PT Sans Caption&#39;; margin: 0px; position: relative;&quot;&gt;
  881. &lt;span style=&quot;line-height: 21.2999992370605px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Code Explanation using footnotes&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
  882. &lt;/div&gt;
  883. &lt;div&gt;
  884. &lt;span style=&quot;line-height: 21.2999992370605px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  885. &lt;div&gt;
  886. &lt;div style=&quot;color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  887. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;1 &amp;nbsp;-&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;Code imported from Script Library that we previously imported into the agent.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  888. &lt;div style=&quot;color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  889. &lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  890. &lt;div style=&quot;color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  891. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;2 &amp;nbsp;-&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;In previous post, the example code pulled from a KeywordBean in applicationScope. &amp;nbsp;In a java agent, this bean is unavailable therefore each agent must load the keywords that are needed.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  892. &lt;div style=&quot;color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  893. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  894. &lt;div style=&quot;color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  895. &lt;span style=&quot;color: blue; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;3 -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;Since the Credentials class (discussed in &lt;a href=&quot;http://notesspeak.blogspot.com/2015/04/using-db2-in-xpages-part-3-setting-up.html&quot; target=&quot;_blank&quot;&gt;previous post&lt;/a&gt;) is unavailable in an agent, the agent manually retrieves the values from the Credential Notes database.&lt;/span&gt;&lt;/div&gt;
  896. &lt;div style=&quot;color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  897. &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  898. &lt;div style=&quot;color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  899. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;4 - &amp;nbsp;&lt;/span&gt;Of course, all Notes objects must be recycled&lt;/span&gt;&lt;/div&gt;
  900. &lt;div style=&quot;color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  901. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  902. &lt;div style=&quot;color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  903. &lt;span style=&quot;font-family: inherit; line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;5 -&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;Gets the connection from the standard java.sql.DriverManager class, and passes the credentials it had retrieved from the Credentials database. This agent runs on the server so credentials are never passed to or from the server, therefore this is considered secure by company standards.&lt;/span&gt;&lt;/div&gt;
  904. &lt;div style=&quot;color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  905. &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  906. &lt;div style=&quot;color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  907. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;color: blue;&quot;&gt;6 - &amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;Early on in the project, the DBA set all columns to &quot;Not Null&quot; so we had to put a dummy date of &quot;9999-12-31&quot; in a column to signify that it was &#39;empty&#39;. &amp;nbsp;&lt;i&gt;Bottom line here: Don&#39;t let your DBA get away with doing that unless you really need it. Know what you need the table to look like prior to starting coding.&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
  908. &lt;div style=&quot;color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  909. &lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  910. &lt;div style=&quot;color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  911. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;7 -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;There are two distinct queries that need to be run within this agent&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  912. &lt;div style=&quot;color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  913. &lt;br /&gt;&lt;/div&gt;
  914. &lt;div style=&quot;color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  915. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;8 -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;Shows how the second query is build with values pulled from the first query. The first being a SELECT that returns a ResultSet object.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  916. &lt;/div&gt;
  917. &lt;div style=&quot;color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  918. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  919. &lt;div style=&quot;color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  920. &lt;span style=&quot;color: blue; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;9 -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;After each iteration in the while statement, we must manually commit the changes to DB2&lt;/span&gt;&lt;/div&gt;
  921. &lt;div style=&quot;color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  922. &lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  923. &lt;div style=&quot;color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  924. &lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;Note: The agent code above was heavily modified and stripped down from the original. The purpose was also changed to something more understandable. I wouldn&#39;t be surprised if all my curly braces don&#39;t line up properly.&lt;/span&gt;&lt;/div&gt;
  925. &lt;div&gt;
  926. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  927. </description><link>http://notesspeak.blogspot.com/2015/07/using-db2-in-xpages-part-9-access-db2.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-9rV_Hy6oiqM/VbVUBeTIq7I/AAAAAAAAHiY/0E2SkPnF_SE/s72-c/7-26-2015%2B5-31-35%2BPM.png" height="72" width="72"/><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-2733764933312542826</guid><pubDate>Mon, 29 Jun 2015 00:30:00 +0000</pubDate><atom:updated>2015-07-26T19:38:05.833-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DB2</category><category domain="http://www.blogger.com/atom/ns#">xpages</category><title>Using DB2 in XPages Part 8: Updating an Existing Record into DB2</title><description>&lt;span style=&quot;font-family: inherit;&quot;&gt;As this blog series is winding down, in this second to last post,&amp;nbsp;&lt;/span&gt;I will give an example for performing an UPDATE to an existing DB2 record.&lt;br /&gt;
  928. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  929. &lt;br /&gt;
  930. &lt;h3&gt;
  931. &lt;span style=&quot;font-family: inherit;&quot;&gt;Example Overview&lt;/span&gt;&lt;/h3&gt;
  932. &lt;span style=&quot;font-family: inherit;&quot;&gt;The UPDATE SQL is very straightforward. In my opinion, the UPDATE statement makes much more sense that the INSERT statement.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  933. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  934. &lt;span style=&quot;font-family: inherit;&quot;&gt;For updates, you only need to update the columns that you want changed. You do not need to include columns that you don&#39;t want to be updated. Of course, you need to have the correct DB2 permissions to perform updates. For updating a specific record, the&amp;nbsp;WHERE is&amp;nbsp;&lt;/span&gt;required&lt;span style=&quot;font-family: inherit;&quot;&gt;. &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  935. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  936. &lt;br /&gt;
  937. &lt;h3 style=&quot;background-color: white; color: #444444; font-family: &#39;PT Sans Caption&#39;; margin: 0px; position: relative;&quot;&gt;
  938. Code Usage&lt;/h3&gt;
  939. &lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  940. This code is intended to be called upon an XPages event such as the onClick of a button, or from another java method, &amp;nbsp;You would keep this in your controller managed bean and call it like this:&lt;/div&gt;
  941. &lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  942. &lt;br /&gt;&lt;/div&gt;
  943. &lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  944. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 18.2000007629395px;&quot;&gt;var updateResult = appBean.updatePerson(viewScope.personID, keywordBean.getString(&lt;/span&gt;&lt;span style=&quot;color: #4200ff; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 18.2000007629395px;&quot;&gt;&quot;SCHEMA&quot;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 18.2000007629395px;&quot;&gt;));&lt;/span&gt;&lt;/div&gt;
  945. &lt;br /&gt;
  946. &lt;h3 style=&quot;background-color: white; color: #444444; font-family: &#39;PT Sans Caption&#39;; margin: 0px; position: relative;&quot;&gt;
  947. &lt;span style=&quot;font-size: medium;&quot;&gt;Code Example with footnotes&lt;/span&gt;&lt;/h3&gt;
  948. &lt;div&gt;
  949. &lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  950. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #820040;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;public&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp;String updatePerson(String personID, String schema){&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;1&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;XLog log =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;new&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;XLog(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&quot;Update Person&quot; ....&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  951. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;2&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;XyzConnectionManager cm =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;new&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;XyzConnectionManager();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  952. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;PreparedStatement ps=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;null&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Connection c =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;null&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;String returnValue =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;3&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;FacesContext facesContext = FacesContext.&lt;i style=&quot;line-height: 18.4599990844727px;&quot;&gt;getCurrentInstance&lt;/i&gt;();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  953. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Map&amp;lt;String, Object&amp;gt; viewScope = facesContext.getViewRoot().getViewMap();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;4&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;SimpleDateFormat formatDateDB2 =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;new&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;SimpleDateFormat(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&quot;yyyy-MM-dd&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;);&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;//to DB2 format&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  954. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;try&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;5&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;c = cm.getConnection();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  955. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080;&quot;&gt;//SQL for Person Table UPDATE&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;String sql =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff;&quot;&gt;&quot;UPDATE &quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp;+ schema +&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff;&quot;&gt;&quot;.PERSON_TABLE SET PERSON_ID = ?, &quot; +&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  956. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #4200ff;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PERSON_AGE = ?,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff;&quot;&gt;PERSON_NICKNAME = ?, PERSON_FAV_COLOR = ?, &quot; +&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  957. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #4200ff;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PERSON_DOB = ?&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff;&quot;&gt;WHERE PERSON_ID = ?&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;try&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;6&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;java.util.Date DOB_Date = formatDateDB2.parse((String)viewScope.get(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&quot;DOB_UI&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;));&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  958. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;catch&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp;(ParseException e){&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //maybe log parse error here&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ps = c.prepareStatement(sql); &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080;&quot;&gt;//prepared statement for detail table&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ps.setString(1, (String) viewScope.get(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff;&quot;&gt;&quot;personID&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;));&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ps.setLong(2, (Long) viewScope.get(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff;&quot;&gt;personAge&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;));&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ps.setString(3, (String) viewScope.get(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff;&quot;&gt;&quot;personNickname&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;));&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ps.setString(4, (String) viewScope.get(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff;&quot;&gt;&quot;personFavoriteColor&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;));&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;ps.setDate(5, DOB_Date);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  959. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;int&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp;result = ps.executeUpdate();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;7&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;if&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;(result &amp;gt; 0){&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  960. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;8&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;c.commit();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  961. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; returnValue =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff;&quot;&gt;&quot;Success&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;else&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; returnValue =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff;&quot;&gt;&quot;Failure&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  962. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
  963. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #820040;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;&amp;nbsp; &amp;nbsp; catch&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;(Exception e) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; log.error(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff;&quot;&gt;&quot;EXCEPTION in updatePerson: &quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp;+ e.toString());&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #820040;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;&amp;nbsp; &amp;nbsp; finally&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;try&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp;{&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080;&quot;&gt;// close resources&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c.close();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;catch&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp;(SQLException e) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;log.error(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff;&quot;&gt;&quot;EXCEPTION in closing out resources in updatePerson: &quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp;+ e.toString());&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;9&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;throw&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;new&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;RuntimeException(e);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  964. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;10&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;return&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;returnValue;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  965. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  966. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
  967. &lt;br /&gt;
  968. &lt;h3 style=&quot;background-color: white; color: #444444; margin: 0px; position: relative;&quot;&gt;
  969. &lt;span style=&quot;line-height: 21.2999992370605px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: small;&quot;&gt;Code Explanation using footnotes&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
  970. &lt;div&gt;
  971. &lt;span style=&quot;line-height: 21.2999992370605px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  972. &lt;div style=&quot;background-color: white; color: #444444; line-height: 18.2000007629395px;&quot;&gt;
  973. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  974. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;1 &amp;nbsp;-&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;Creates new instance of our logging utility. We had problems creating a single instance, so we resorted to creating a new instance each time.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  975. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  976. &lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  977. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  978. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;2 &amp;nbsp;-&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;Creates new instance of our connection manager class, see &lt;a href=&quot;http://notesspeak.blogspot.com/2015/04/using-db2-in-xpages-part-3-setting-up.html&quot; target=&quot;_blank&quot;&gt;Part 3&lt;/a&gt; for a detailed&amp;nbsp;explanation&amp;nbsp;of&amp;nbsp;this class&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  979. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  980. &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  981. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  982. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;3 - &amp;nbsp;&lt;/span&gt;Gets a handle to the viewScope in which the UI elements are bound.&lt;/span&gt;&lt;/div&gt;
  983. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  984. &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  985. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  986. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;color: blue;&quot;&gt;4 - &amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;Converts the date to a DB2 friendly date. Later I found out that you don&#39;t need to do this, as the setDate() method of the PreparedStatement class will do this for you. Early on in the project, the DBA set all columns to &quot;Not Null&quot; so we had to put a dummy date of &quot;9999-12-31&quot; in column. &amp;nbsp;We used this date converter which we thought we needed. &amp;nbsp;&lt;i&gt;Bottom line here: Don&#39;t let your DBA get away with doing that unless you really need it. Know what you need the table to look like prior to starting coding.&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
  987. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  988. &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  989. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  990. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;5 -&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;Creates a new connection or grabs one from the pool. This method is explained in Part 3 of this series.&lt;/span&gt;&lt;/div&gt;
  991. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  992. &lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  993. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  994. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold;&quot;&gt;6 - &lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;Parse and format the date. &amp;nbsp;This step is not necessary, but I left this to make the point I made in Footnote #4. &amp;nbsp;&lt;i&gt;Come to our MWLUG session in Atlanta to hear more about lessons such as this one that we learned while working on this project.&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  995. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  996. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  997. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  998. &lt;/div&gt;
  999. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1000. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;7 -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;An Integer with the number of rows updated is returned. To check for success, we check whether the returned integer is greater than one.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1001. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1002. &lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1003. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1004. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;8 -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;Our table (DB2 view actually) is set so that we have to manually commit on updates. Commit means to make the update persistent.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1005. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1006. &lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1007. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1008. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;9 -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;The finally statement always runs, and is the recommended place to close out resources. If that operation fails then we throw the exception. There is some debate on whether it is best to throw an exception at this point. &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1009. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1010. &lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1011. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1012. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;10 -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;Lastly we return back a String of success or failure. Error Handling is done in the calling method.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1013. &lt;/div&gt;
  1014. </description><link>http://notesspeak.blogspot.com/2015/06/using-db2-in-xpages-part-8-updating.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-7990021514696767988</guid><pubDate>Sun, 21 Jun 2015 23:18:00 +0000</pubDate><atom:updated>2015-07-26T19:37:46.319-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DB2</category><category domain="http://www.blogger.com/atom/ns#">xpages</category><title>Using DB2 in XPages Part 7: Inserting a New Record into DB2</title><description>&lt;span style=&quot;color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;My apologies for the long break in my blog series. The project that this is the basis for this blog series is wrapping up which is causing work to be extremely busy.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1015. &lt;span style=&quot;color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
  1016. &lt;span style=&quot;color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Before I get started I am excited to report that I will be co-presenting a session at the&amp;nbsp;&lt;a href=&quot;https://www.blogger.com/&quot;&gt;&lt;span id=&quot;goog_1704108039&quot;&gt;&lt;/span&gt;MWLUG&lt;span id=&quot;goog_1704108040&quot;&gt;&lt;/span&gt;&lt;/a&gt;&amp;nbsp;conference in August titled &lt;b&gt;Real World Experience: Integrating DB2 and XPages.&lt;/b&gt; The session will cover some of the material in this blog series as well a much more. I will be presenting with my coworker Dwain Wuerfel who has worked on two&amp;nbsp;separate&amp;nbsp;XPages projects using a DB2 backend. Come see us in Atlanta this August 19-21.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1017. &lt;span style=&quot;color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
  1018.  
  1019.  
  1020. &lt;span style=&quot;color: #444444;&quot;&gt;Now onto this post in which I will cover how to Insert a new record into DB2.&lt;/span&gt;&lt;br /&gt;
  1021. &lt;span style=&quot;color: #444444;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  1022. &lt;br /&gt;
  1023. &lt;h3&gt;
  1024. &lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: inherit; font-size: large;&quot;&gt;Example Overview&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
  1025. &lt;span style=&quot;color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
  1026. &lt;span style=&quot;color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;The code to perform an INSERT is fairly straightforward. However I personally find The INSERT statement in SQL to be somewhat awkward because of the way it must contain a VALUES statement that pairs with the column values that&amp;nbsp;precede&amp;nbsp;it. I find it easy to get values mixed up especially when you have a multitude of columns.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1027. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;After you execute an INSERT query, it does not return a boolean success or failure like the SELECT. It simply returns an integer of how many rows were updated. A return value of zero would indicate that something went wrong.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1028. &lt;br /&gt;
  1029. &lt;h3&gt;
  1030. &lt;span style=&quot;color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: large;&quot;&gt;Code Usage&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
  1031. &lt;div&gt;
  1032. &lt;br /&gt;&lt;/div&gt;
  1033. &lt;div&gt;
  1034. This code is intended to be called upon an XPages event like the onClick of a button, &amp;nbsp;You would keep this in your controller managed bean and call it like this:&lt;/div&gt;
  1035. &lt;div&gt;
  1036. &lt;br /&gt;&lt;/div&gt;
  1037. &lt;div&gt;
  1038. &lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;var insertResult = appBean.insertExample(keywordBean.getString(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&quot;SCHEMA&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;));&lt;/span&gt;&lt;/div&gt;
  1039. &lt;div&gt;
  1040. &lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  1041. &lt;h3&gt;
  1042. &lt;span style=&quot;font-size: large;&quot;&gt;Code Example with footnotes&lt;/span&gt;&lt;/h3&gt;
  1043. &lt;div&gt;
  1044. &lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
  1045. &lt;div&gt;
  1046. &lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;public&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;String insertExample(String schema){&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1047. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;1&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;XLog log =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;new&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;XLog(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&quot;XYZ Bean&quot;, .....&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1048. &lt;div&gt;
  1049. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;b style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;2&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;XYZConnectionManager cm =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;new&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;XYZConnectionManager();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1050. &lt;div&gt;
  1051. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; PreparedStatement ps =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;null&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1052. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
  1053. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; Connection c =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;null&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1054. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; String returnValue =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1055. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
  1056. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;3&lt;/b&gt;&lt;b style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;FacesContext facesContext = FacesContext.&lt;i style=&quot;line-height: 18.4599990844727px;&quot;&gt;getCurrentInstance&lt;/i&gt;();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1057. &lt;div&gt;
  1058. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; Map&amp;lt;String, Object&amp;gt; viewScope = facesContext.getViewRoot().getViewMap();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1059. &lt;br style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot; /&gt;
  1060. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;try&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1061. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;4&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;c = cm.getConnection();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1062. &lt;div&gt;
  1063. &lt;br style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot; /&gt;
  1064. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String sql =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&quot;INSERT INTO &quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;+ schema +&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&quot;.PERSON_TABLE &quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;+&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
  1065. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&quot;(FIRST_NAME, LAST_NAME, AGE, BIG_BAG_OF_NOTHING, BIRTHDAY)&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;+&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;//1,2,3,4,5&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1066. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&quot;VALUES (?, ?, ?, ?, ?)&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1067. &lt;br style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot; /&gt;
  1068. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ps = c.prepareStatement(sql);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1069. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
  1070. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;5&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;ps.setString(1, (String) viewScope.get(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&quot;userFirstName&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;));&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1071. &lt;div&gt;
  1072. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ps.setString(2, (Long) viewScope.get(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&quot;userLastName&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;));&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1073. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;6&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;ps.setLong(3, (Long) viewScope.get(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&quot;userAge&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;));&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1074. &lt;div&gt;
  1075. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;7&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;ps.setNull(4, java.sql.Types.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #0021bf; font-family: Courier New;&quot;&gt;&lt;i style=&quot;line-height: 18.4599990844727px;&quot;&gt;VARCHAR&lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1076. &lt;div&gt;
  1077. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;8&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;ps.setDate(5, (Date) viewScope.get(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&quot;userDOB&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;));&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1078. &lt;div&gt;
  1079. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
  1080. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;int&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;result = ps.executeUpdate();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1081. &lt;br style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot; /&gt;
  1082. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;if&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;(result &amp;gt; 0){&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1083. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; returnValue =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&quot;Success&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1084. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;else&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1085. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; returnValue =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&quot;Failure&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1086. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1087. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
  1088. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;catch&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;(Exception e) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1089. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; log.error(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&quot;EXCEPTION in insertATMInfo: &quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;+ e.toString());&lt;/span&gt;&lt;/div&gt;
  1090. &lt;div&gt;
  1091. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;finally&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1092. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;9&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;try&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;{&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;// close resources&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1093. &lt;div&gt;
  1094. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ps.close(); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1095. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c.close();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1096. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;catch&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;(SQLException e) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1097. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; log.error(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&quot;FATAL EXCEPTION in closing out resources &quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;+ e.toString());&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1098. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;throw&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;new&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;RuntimeException(e);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1099. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1100. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1101. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;b style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;10&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;return&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;returnValue; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1102. &lt;div&gt;
  1103. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1104. &lt;div&gt;
  1105. &lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  1106. &lt;div&gt;
  1107. &lt;h3 style=&quot;background-color: white; color: #444444; font-family: &#39;PT Sans Caption&#39;; margin: 0px; position: relative;&quot;&gt;
  1108. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 21.2999992370605px;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Code Explanation using footnotes&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
  1109. &lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;PT Sans Caption&#39;; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;
  1110. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 21.2999992370605px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1111. &lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;PT Sans Caption&#39;; line-height: 18.2000007629395px;&quot;&gt;
  1112. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1113. &lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;1 &amp;nbsp;-&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;Creates new instance of our logging utility. We had problems creating a single instance, so we resorted to creating a new instance each time.&lt;/span&gt;&lt;/div&gt;
  1114. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1115. &lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  1116. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1117. &lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-weight: bold;&quot;&gt;2 &amp;nbsp;-&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;Creates new instance of our connection manager class, see Part 3 for a detailed&amp;nbsp;explanation&amp;nbsp;of&amp;nbsp;this class&lt;/span&gt;&lt;/div&gt;
  1118. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1119. &lt;b&gt;&lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  1120. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1121. &lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-weight: bold;&quot;&gt;3 - &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Gets a handle to the viewScope in which the UI elements are bound.&lt;/span&gt;&lt;/div&gt;
  1122. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1123. &lt;b&gt;&lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  1124. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1125. &lt;b style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;4 - &amp;nbsp;&lt;/b&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;Creates a new connection or grabs one from the pool. This method is explained in Part 3 of this series.&lt;/span&gt;&lt;/div&gt;
  1126. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1127. &lt;b&gt;&lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  1128. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1129. &lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-weight: bold;&quot;&gt;5 -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;The setString method of the Prepared Statement accepts a String and writes a VARCHAR or a LONGVARCHAR depending on the size of the String&lt;/span&gt;&lt;/div&gt;
  1130. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1131. &lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  1132. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1133. &lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-weight: bold;&quot;&gt;6 -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;The setLong method of the Prepared Statement accepts a long &amp;nbsp;and writes a BIGINT into DB2.&lt;/span&gt;&lt;/div&gt;
  1134. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1135. &lt;/div&gt;
  1136. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1137. &lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;7 -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;The setNull method of the Prepared Statement is useful for writing null to a column that is set to accept a null. &amp;nbsp;You have to include the type of value so that the method knows which type of null to write.&lt;/span&gt;&lt;/div&gt;
  1138. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1139. &lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  1140. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1141. &lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;8 -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;The setDate method of the Prepared Statement accepts any kinds of Date (util or sql) and writes it to a Sql DATE type.&lt;/span&gt;&lt;/div&gt;
  1142. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1143. &lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  1144. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1145. &lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;9 -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;The finally statement always runs, and is the recommended place to close out resources. If that operation fails then we throw the exception. There is some debate on whether it is best to throw an exception at this point. &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1146. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1147. &lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  1148. &lt;div style=&quot;line-height: 18.2000007629395px;&quot;&gt;
  1149. &lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-weight: bold; line-height: 18.2000007629395px;&quot;&gt;10 -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;Lastly we return back a String of success or failure. Error Handling is done in the calling method.&lt;/span&gt;&lt;/div&gt;
  1150. &lt;/div&gt;
  1151. &lt;/div&gt;
  1152. </description><link>http://notesspeak.blogspot.com/2015/06/using-db2-in-xpages-part-7-inserting.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-7837875219215744892</guid><pubDate>Sun, 10 May 2015 21:24:00 +0000</pubDate><atom:updated>2015-05-10T17:35:01.525-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DB2</category><category domain="http://www.blogger.com/atom/ns#">xpages</category><title>Using DB2 in XPages Part 6: Populating a Combobox dropdown with relational data</title><description>&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;In the last post I showed how to perform a simple SELECT statement to populate a page. &lt;b&gt;In this post I will show how to use a SELECT query to populate the contents of a ComboBox. &amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1153. &lt;span style=&quot;background-color: white; color: #444444; font-family: sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  1154. &lt;br /&gt;
  1155. &lt;h3&gt;
  1156. Example Overview&amp;nbsp;&lt;/h3&gt;
  1157. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;This example will loop through a result set, and create a SelectItem object with a value for &#39;label&#39; and a value for &#39;value&#39;. &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;This allows choices that are displayed to a user in which to choose from, that are different from what is actually stored when we insert this value back into DB2.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1158. &lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
  1159. &lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;This is similar to how, back in the day we would code in the Notes client with a label and alias separated with a pipe character (|). When the value is saved, the only thing we will save is the SelectItem value. This is because the value serves as a foreign key in a different table than what we select from in this query.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1160. &lt;span style=&quot;background-color: white; color: #444444; font-family: sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  1161. &lt;br /&gt;
  1162. &lt;h3&gt;
  1163. &lt;span style=&quot;font-family: inherit;&quot;&gt;Code Usage&lt;/span&gt;&lt;/h3&gt;
  1164. I think it would &amp;nbsp;help to show first, how and where this is used. The method is called in the Values property of the ComboBox. One issue with this property in general that I find very annoying is that the UI gives the impression that you can have one formula for Label, and one for Value, but in fact you can only have one for both. The Formula Item code is a single line of SSJS that calls the java method below:&lt;br /&gt;
  1165. &lt;br /&gt;
  1166. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;appBean.getBranchName(keywordBean.getString(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff;&quot;&gt;&quot;SCHEMA&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;));&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1167. &lt;br /&gt;
  1168. &lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
  1169. &lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-71u5vg1qe9M/VU0dwRIzo3I/AAAAAAAAHdI/n3jHz-IQBdw/s1600/Capture5-8.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;265&quot; src=&quot;http://1.bp.blogspot.com/-71u5vg1qe9M/VU0dwRIzo3I/AAAAAAAAHdI/n3jHz-IQBdw/s640/Capture5-8.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
  1170. &lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif; font-size: small;&quot;&gt;The code is added to the ComboBox Values as a Formula Item&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  1171. &lt;/tbody&gt;&lt;/table&gt;
  1172. &lt;br /&gt;
  1173. &lt;span style=&quot;background-color: white; color: #444444; font-family: sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  1174. &lt;span style=&quot;background-color: white; color: #444444; font-family: sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  1175. &lt;br /&gt;
  1176. &lt;h3 style=&quot;background-color: white; color: #444444; font-family: &#39;PT Sans Caption&#39;; margin: 0px; position: relative;&quot;&gt;
  1177. Code Example with footnotes&lt;/h3&gt;
  1178. &lt;span style=&quot;background-color: white; color: #444444; font-family: sans-serif; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  1179. &lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;public&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;List&amp;lt;SelectItem&amp;gt; getBranchName(String schema){&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1180. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1181. &lt;span style=&quot;background-color: white; color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;b&gt;1 &lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;XYZConnectionManager cm =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;new&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;XYZConnectionManager();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1182. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;PreparedStatement ps =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;null&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1183. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;ResultSet rs =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;null&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1184. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;Connection c =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;null&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1185. &lt;span style=&quot;background-color: white; line-height: 21.2999992370605px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;b&gt;2&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;List&amp;lt;SelectItem&amp;gt; options =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;new&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;ArrayList&amp;lt;SelectItem&amp;gt;();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1186. &lt;br style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot; /&gt;
  1187. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;try&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1188. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;// Get Connection from ConnectionManager&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1189. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;b&gt;3&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt; c = cm.getConnection();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1190. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; String sql =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&quot;Select CB_NM, CB_ID FROM &quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;+ schema +&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&quot;.BRANCH01&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1191. &lt;br style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot; /&gt;
  1192. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;// Create Statement Object&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1193. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ps = c.prepareStatement(sql);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1194. &lt;br style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot; /&gt;
  1195. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;// Run Query&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1196. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;boolean&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;result = ps.execute();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1197. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;if&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;(result) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1198. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rs = ps.getResultSet();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1199. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;while&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;(rs.next()) { &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1200. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;b&gt;4&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt; SelectItem option =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;new&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;SelectItem();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1201. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; option.setLabel(rs.getString(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&quot;CB_NM&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;).trim());&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1202. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; option.setValue(rs.getString(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&quot;CB_ID&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;).trim());&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1203. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;b&gt;5&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt; options.add(option);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1204. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1205. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1206. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;catch&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;(Exception e) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1207. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;log.error(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&quot;EXCEPTION in&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;;&quot;&gt;getBranchName()&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;: &quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;+ e.toString()); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
  1208. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;finally&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1209. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;b&gt;6&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;try&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;{&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;// close resources&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1210. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ps.close();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1211. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rs.close();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1212. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c.close();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1213. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;catch&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;(SQLException e) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1214. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; log.error(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&quot;FATAL EXCEPTION in&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: &#39;Courier New&#39;;&quot;&gt;getBranchName()&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;: &quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;+ e.toString());&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1215. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;throw&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;new&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;RuntimeException(e);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1216. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1217. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1218. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;return&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;options;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1219. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1220. &lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  1221. &lt;br /&gt;
  1222. &lt;h3 style=&quot;background-color: white; color: #444444; font-family: &#39;PT Sans Caption&#39;; margin: 0px; position: relative;&quot;&gt;
  1223. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 21.2999992370605px;&quot;&gt;Code Explanation using footnotes&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
  1224. &lt;div&gt;
  1225. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 21.2999992370605px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1226. &lt;div&gt;
  1227. &lt;div style=&quot;background-color: white; color: #444444; line-height: 18.2000007629395px;&quot;&gt;
  1228. &lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; font-weight: bold;&quot;&gt;1 &amp;nbsp;-&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Creates new instance of our connection manager class, see Part 3 for a detailed&amp;nbsp;explanation&amp;nbsp;of&amp;nbsp;this class&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1229. &lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;PT Sans Caption&#39;; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;
  1230. &lt;b&gt;&lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  1231. &lt;div style=&quot;background-color: white; color: #444444; line-height: 18.2000007629395px;&quot;&gt;
  1232. &lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; font-weight: bold;&quot;&gt;2 - &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Creates a new ArrayList and stores it as a List, the superclass of ArrayList. The angle brackets tell the compiler what type of Objects are to be stored in the collection.&lt;/span&gt;&lt;/div&gt;
  1233. &lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;PT Sans Caption&#39;; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;
  1234. &lt;b&gt;&lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  1235. &lt;div style=&quot;background-color: white; color: #444444; line-height: 18.2000007629395px;&quot;&gt;
  1236. &lt;b style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px;&quot;&gt;3 - &amp;nbsp;&lt;/b&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Creates a new connection or grabs one from the pool. This method is explained in Part 3 of this series.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1237. &lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;PT Sans Caption&#39;; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;
  1238. &lt;b&gt;&lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  1239. &lt;div style=&quot;background-color: white; color: #444444; line-height: 18.2000007629395px;&quot;&gt;
  1240. &lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; font-weight: bold;&quot;&gt;4 -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Inside the while loop, it creates an new SelectItem object for each row in the result set. &amp;nbsp;The SelectItem object is a JSF object that represents a value that the user can select.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1241. &lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;PT Sans Caption&#39;; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;
  1242. &lt;b&gt;&lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  1243. &lt;div style=&quot;background-color: white; line-height: 18.2000007629395px;&quot;&gt;
  1244. &lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; font-weight: bold;&quot;&gt;5 -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #444444; line-height: 18.2000007629395px;&quot;&gt;Populates the ArrayList with the SelectItem object&lt;/span&gt;&lt;/div&gt;
  1245. &lt;div style=&quot;background-color: white; line-height: 18.2000007629395px;&quot;&gt;
  1246. &lt;span style=&quot;color: #444444; line-height: 18.2000007629395px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  1247. &lt;div style=&quot;background-color: white; color: #444444; line-height: 18.2000007629395px;&quot;&gt;
  1248. &lt;span style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: 13px; font-weight: bold;&quot;&gt;6 -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 18.2000007629395px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;The finally statement always runs, and is the recommended place to close out resources. If that operation fails then we throw the exception.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1249. &lt;div style=&quot;background-color: white; color: #444444; font-family: &#39;PT Sans Caption&#39;; font-size: 13px; line-height: 18.2000007629395px;&quot;&gt;
  1250. &lt;br /&gt;&lt;/div&gt;
  1251. &lt;/div&gt;
  1252. &lt;h3&gt;
  1253. &lt;span style=&quot;font-family: inherit;&quot;&gt;Attribution&lt;/span&gt;&lt;/h3&gt;
  1254. &lt;div&gt;
  1255. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  1256. &lt;div&gt;
  1257. The basis for the code here is taken from &lt;a href=&quot;http://stackoverflow.com/questions/21532641/populating-selectitems-of-the-combobox-label-value-using-a-managed-bean&quot; target=&quot;_blank&quot;&gt;this Stack Overflow question&lt;/a&gt; answered by Mark Leusink. Thanks Mark!&lt;/div&gt;
  1258. &lt;div&gt;
  1259. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  1260. </description><link>http://notesspeak.blogspot.com/2015/05/using-db2-in-xpages-part-6-populating.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-71u5vg1qe9M/VU0dwRIzo3I/AAAAAAAAHdI/n3jHz-IQBdw/s72-c/Capture5-8.PNG" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-182846106807507205</guid><pubDate>Fri, 01 May 2015 10:52:00 +0000</pubDate><atom:updated>2015-05-01T04:52:32.064-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DB2</category><category domain="http://www.blogger.com/atom/ns#">xpages</category><title>Using DB2 in XPages Part 5: Creating a Simple SELECT Query to Populate a Page</title><description>&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Now that I have finally laid the groundwork for connecting to DB2 in parts 1-4, it is time to show the fun stuff, actually using it. &lt;/span&gt;&lt;b style=&quot;font-family: inherit;&quot;&gt;In this post, I will show how to populate the contents of a page using DB2 data. &lt;/b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;This example will SELECT data based on a value&amp;nbsp;&lt;/span&gt;inputted&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;by a user and refresh the page,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1261. &lt;span style=&quot;background-color: white; color: #444444; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  1262. &lt;br /&gt;
  1263. &lt;h3&gt;
  1264. &lt;span style=&quot;font-family: inherit;&quot;&gt;Strategy For Binding UI elements to data&lt;/span&gt;&lt;/h3&gt;
  1265. &lt;br /&gt;
  1266. &lt;span style=&quot;font-family: inherit;&quot;&gt;When we first started using DB2 as a backend, we had each data element tied to a member of a managed bean, each with its own getter and setter. This is a fine approach, and we still use it for the older pages in our application. &amp;nbsp;An easier approach is to just bind every UI element to viewScope and update the viewScope in our java controller methods. This example will show the latter.&lt;/span&gt;&lt;br /&gt;
  1267. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  1268. &lt;br /&gt;
  1269. &lt;h3&gt;
  1270. &lt;span style=&quot;font-family: inherit;&quot;&gt;Company Standards&lt;/span&gt;&lt;/h3&gt;
  1271. &lt;br /&gt;
  1272. &lt;span style=&quot;font-family: inherit;&quot;&gt;Before I begin, let me explain that my company has a few standards that must be followed&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;for using SQL&amp;nbsp;statements. The standards are that * is not allowed, and we must use prepared statements where we inject our dependencies. I don&#39;t understand the former, but completely agree with the latter. The one exception that is allowed is that the Schema value&amp;nbsp;&lt;/span&gt;(PROD, INTG, UNIT)&amp;nbsp;&lt;span style=&quot;font-family: inherit;&quot;&gt;can be added via String addition.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1273. &lt;br /&gt;
  1274. &lt;h3&gt;
  1275. Code Example with footnotes&lt;/h3&gt;
  1276. &lt;div&gt;
  1277. &lt;br /&gt;&lt;/div&gt;
  1278. &lt;div&gt;
  1279. &lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;1&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;//Date converters for use in various methods&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1280. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;SimpleDateFormat&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;formatDateUI&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;new&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp;SimpleDateFormat(&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;MM/dd/yyyy&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;); &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;//&lt;u style=&quot;line-height: 18.4599990844727px;&quot;&gt;dateformatter&lt;/u&gt;&amp;nbsp;to convert to UI friendly format&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1281. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;SimpleDateFormat&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;formatDateDB2&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;new&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp;SimpleDateFormat(&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;yyyy-MM-dd&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;);&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;//&lt;u style=&quot;line-height: 18.4599990844727px;&quot;&gt;dataformatter&lt;/u&gt;&amp;nbsp;to convert to DB2 format&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1282. &lt;br style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot; /&gt;
  1283. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;public&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;void&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp;loadPersonInfo(String userID, String schema){&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1284. &lt;span style=&quot;background-color: white; color: #38761d; font-family: Courier New;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;2&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;FacesContext facesContext = FacesContext.&lt;i style=&quot;line-height: 18.4599990844727px;&quot;&gt;getCurrentInstance&lt;/i&gt;();&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1285. &lt;div&gt;
  1286. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; Map&amp;lt;String, Object&amp;gt; viewScope = facesContext.getViewRoot().getViewMap();&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1287. &lt;span style=&quot;background-color: white; color: #38761d; font-family: Courier New;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;3&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;XyzConnectionManager cm =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;new&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp;XyzConnectionManager();&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1288. &lt;div&gt;
  1289. &lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;4&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;PreparedStatement ps =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;null&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1290. &lt;div&gt;
  1291. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; ResultSet rs =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;null&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1292. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; Connection c =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;null&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1293. &lt;div&gt;
  1294. &lt;br style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot; /&gt;
  1295. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;try&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1296. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;// Get Connection from ConnectionManager&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1297. &lt;span style=&quot;background-color: white; color: #38761d; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;5&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;c = cm.getConnection();&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1298. &lt;div&gt;
  1299. &lt;span style=&quot;color: #38761d;&quot;&gt;&lt;br style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;6&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;String sql =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;Select USER_ID, FIRST_NAME, LAST_NAME, START_DATE6&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot; +&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1300. &lt;div&gt;
  1301. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;USER_BRANCH_ID, BRANCH_NAME, BRANCH_STATE, BRANCH_CITY, BRANCH_ZIP &quot; +&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
  1302. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;FROM &quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp;+ schema +&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;.USERDETAIL01 INNER JOIN &quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp;+ schema +&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;.USERBRANCH &quot; +&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1303. &lt;div&gt;
  1304. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;on USER_BR_ID = USER_BRANCH_ID&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;WHERE USER_ID=?&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1305. &lt;br style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot; /&gt;
  1306. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;// Create Statement Object&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1307. &lt;span style=&quot;background-color: white; color: #38761d; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;7&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;ps = c.prepareStatement(sql);&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1308. &lt;div&gt;
  1309. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ps.setString(1, atmID);&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1310. &lt;br style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot; /&gt;
  1311. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;// Run Query&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1312. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;boolean&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp;result = ps.execute();&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1313. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;if&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp;(result) {&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1314. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rs = ps.getResultSet();&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1315. &lt;span style=&quot;background-color: white; color: #38761d; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;8 &lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;rs.next();&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1316. &lt;div&gt;
  1317. &lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;9 &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;viewScope.put(&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;manageFirstName&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;, rs.getString(&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;FIRST_NAME&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;));&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1318. &lt;div&gt;
  1319. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; viewScope.put(&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;manageLastName&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;, rs.getString(&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;LAST_NAME&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;).trim());&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1320. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; viewScope.put(&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;manageBranchName&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;, rs.getString(&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;BRANCH_NAME&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;).trim());&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
  1321. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; viewScope.put(&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;manageBranchCity&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;, rs.getString(&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;BRANCH_CITY&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;).trim());&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1322. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; viewScope.put(&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;manageBranchState&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;, rs.getString(&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;BRANCH_STATE&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;).trim());&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1323. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; viewScope.put(&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;manageBranchZip&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;, rs.getString(&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;BRANCH_ZIP&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;).trim());&lt;/span&gt;&lt;/div&gt;
  1324. &lt;div&gt;
  1325. &lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;10&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;viewScope.put(&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;manageStartDate&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;
  1326. &lt;div&gt;
  1327. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;formatDateUI&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;.format(rs.getDate(&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;START_DATE&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;)));&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1328. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1329. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;catch&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp;(SQLException e) {&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1330. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; log.error(&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;ERROR in loadPersonInfo: &quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp;+ e.toString());&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1331. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;finally&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1332. &lt;span style=&quot;background-color: white; color: #38761d; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;11&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;try&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp;{&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;// close resources&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1333. &lt;div&gt;
  1334. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rs.close();&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1335. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ps.close();&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1336. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c.close();&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1337. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;catch&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp;(SQLException e) {&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1338. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; log.error(&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&quot;FATAL EXCEPTION &quot; +&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Courier New&#39;;&quot;&gt;e.toString() +&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;in loadPersonInfo&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;
  1339. &lt;div&gt;
  1340. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;throw&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;new&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp;RuntimeException(e);&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1341. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1342. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1343. &lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1344. &lt;div&gt;
  1345. &lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  1346. &lt;h3&gt;
  1347. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; line-height: 21.2999992370605px;&quot;&gt;Code Explanation using footnotes&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
  1348. &lt;div&gt;
  1349. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; line-height: 21.2999992370605px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1350. &lt;div&gt;
  1351. &lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif; font-weight: bold;&quot;&gt;1 &amp;nbsp;- &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;These two Date formatters are very useful for writing between XPages and DB2. The format YYYY-MM-DD is the standard date format for DB2.&lt;/span&gt;&lt;/div&gt;
  1352. &lt;div&gt;
  1353. &lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  1354. &lt;div&gt;
  1355. &lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif; font-weight: bold;&quot;&gt;2 - &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;We have found it necessary to get a new handle to viewScope in every method where it is used&lt;/span&gt;&lt;/div&gt;
  1356. &lt;div&gt;
  1357. &lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  1358. &lt;div&gt;
  1359. &lt;b style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;3 - &amp;nbsp;&lt;/b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Creates new instance of our connection manager class, see Part 3 for a detailed&amp;nbsp;explanation&amp;nbsp;of&amp;nbsp;this class&lt;/span&gt;&lt;/div&gt;
  1360. &lt;div&gt;
  1361. &lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  1362. &lt;div&gt;
  1363. &lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif; font-weight: bold;&quot;&gt;4 - &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;We use the PreparedStatement class to build our query, this is done to follow my company standards, and also a good practice.&lt;/span&gt;&lt;/div&gt;
  1364. &lt;div&gt;
  1365. &lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  1366. &lt;div&gt;
  1367. &lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif; font-weight: bold;&quot;&gt;5 - &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Creates a new connection or grabs one from the pool. This method is explained in Part 3 of this series.&lt;/span&gt;&lt;/div&gt;
  1368. &lt;div&gt;
  1369. &lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  1370. &lt;div&gt;
  1371. &lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif; font-weight: bold;&quot;&gt;6 - &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Our SQL statement which includes a join, and one dependency. The dependency is typically user input.&lt;/span&gt;&lt;/div&gt;
  1372. &lt;div&gt;
  1373. &lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  1374. &lt;div&gt;
  1375. &lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif; font-weight: bold;&quot;&gt;7 - &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Preparing our statement. This is where we insert the dependencies. The number of dependencies added here, must match exactly what is in the SQL statement.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1376. &lt;div&gt;
  1377. &lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  1378. &lt;div&gt;
  1379. &lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif; font-weight: bold;&quot;&gt;8 - &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;This takes you to the first record in the result set and is necessary&lt;/span&gt;&lt;/div&gt;
  1380. &lt;div&gt;
  1381. &lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  1382. &lt;div&gt;
  1383. &lt;b style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;9 - &lt;/b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Populating the viewScope from the resultSet. &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  1384. &lt;div&gt;
  1385. &lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  1386. &lt;div&gt;
  1387. &lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif; font-weight: bold;&quot;&gt;10 - &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Using the Date Formatter explained in footnote 1&lt;/span&gt;&lt;/div&gt;
  1388. &lt;div&gt;
  1389. &lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
  1390. &lt;div&gt;
  1391. &lt;b style=&quot;color: blue; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;11 - &lt;/b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;The finally statement always runs, and is the recommended place to close out resources. If that operation fails then we throw the exception.&lt;/span&gt;&lt;/div&gt;
  1392. &lt;div&gt;
  1393. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  1394. &lt;h3&gt;
  1395. &lt;span style=&quot;font-family: inherit;&quot;&gt;Next Post&lt;/span&gt;&lt;/h3&gt;
  1396. &lt;div&gt;
  1397. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  1398. &lt;div&gt;
  1399. &lt;span style=&quot;font-family: inherit;&quot;&gt;In my next post, I will show how to populate a Combobox with the values from a DB2 Query.&lt;/span&gt;&lt;/div&gt;
  1400. </description><link>http://notesspeak.blogspot.com/2015/05/using-db2-in-xpages-part-5-creating.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-3093705576802680959</guid><pubDate>Mon, 27 Apr 2015 01:20:00 +0000</pubDate><atom:updated>2015-04-26T19:20:49.859-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DB2</category><category domain="http://www.blogger.com/atom/ns#">xpages</category><title>Using DB2 in XPages Part 4: Setting up the Database Connection for use with SSJS</title><description>In this fourth entry in my blog series on XPages and DB2, I will explain the additional steps necessary for SSJS access, if using parameterized connection information. This post isn&#39;t intended to stand alone but build on what I discussed in &lt;a href=&quot;http://notesspeak.blogspot.com/2015/04/using-db2-in-xpages-part-3-setting-up.html&quot; target=&quot;_blank&quot;&gt;part 3&lt;/a&gt;. &amp;nbsp;I will say this, if you decide to store your credentials in the db2.jdbc XML file then everything here in this post is unnecessary for you. &lt;b&gt;If you are an XPages developer and have never had made your own custom tags, then this post might serve as a general example on how to go about doing that.&lt;/b&gt;&lt;br /&gt;
  1401. &lt;br /&gt;
  1402. &lt;h3&gt;
  1403. Create Custom Control for adding your Customized Connection Manager&lt;/h3&gt;
  1404. &lt;div&gt;
  1405. &lt;br /&gt;&lt;/div&gt;
  1406. &lt;div&gt;
  1407. To take advantage of our connection manager java class (described in part 3) in SSJS, we need to create a custom control for adding the connection manager to each page. For simplicity, we name it the same thing as our java class, which is XYZConnectionManager. &amp;nbsp;In order to make our own custom control, we have to create an faces-config extension file, or add to it, if we already have one. We cannot put our entry directly in the main face-config as this doesn&#39;t compile. The faces-config extension is a separate file that you create when necessary for the purpose of creating custom tags.&lt;br /&gt;
  1408. &lt;br /&gt;
  1409. This file should be copied into the WEB-INF folder alongside the faces-config file using the Package Explorer. &lt;br /&gt;
  1410. &lt;br /&gt;
  1411. Here is what the contents of the file look like.&lt;br /&gt;
  1412. &lt;br /&gt;
  1413. &lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;faces-config&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1414. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;faces-config-extension&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1415. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;namespace-uri&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; cursor: pointer; font-family: Courier New; line-height: normal;&quot;&gt;&lt;a href=&quot;http://www.xyzcompany.org/xpages/component&quot; style=&quot;background-color: white; color: #0068cf; cursor: pointer; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot; target=&quot;_blank&quot;&gt;http://www.xyzCompany.org/xpages/component&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;namespace-uri&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1416. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;default-prefix&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;xyz&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;default-prefix&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1417. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;faces-config-extension&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1418. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;component&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1419. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;display-name&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;XYZ Connection Manager&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;display-name&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1420. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;component-type&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&lt;u style=&quot;line-height: 18.4599990844727px;&quot;&gt;com&lt;/u&gt;.&lt;u style=&quot;line-height: 18.4599990844727px;&quot;&gt;ibm&lt;/u&gt;.&lt;u style=&quot;line-height: 18.4599990844727px;&quot;&gt;xsp&lt;/u&gt;.&lt;u style=&quot;line-height: 18.4599990844727px;&quot;&gt;extlib&lt;/u&gt;.relational.&lt;u style=&quot;line-height: 18.4599990844727px;&quot;&gt;jdbc&lt;/u&gt;.JdbcConnectionManager&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;component-type&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1421. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;component-class&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&lt;u style=&quot;line-height: 18.4599990844727px;&quot;&gt;org&lt;/u&gt;.&lt;span style=&quot;line-height: 18.4599990844727px;&quot;&gt;&lt;u&gt;xyz&lt;/u&gt;&lt;/span&gt;.&lt;u style=&quot;line-height: 18.4599990844727px;&quot;&gt;atm&lt;/u&gt;.&lt;u style=&quot;line-height: 18.4599990844727px;&quot;&gt;util&lt;/u&gt;.XyzConnectionManager&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;component-class&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1422. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;component-extension&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1423. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;base-component&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&lt;u style=&quot;line-height: 18.4599990844727px;&quot;&gt;com&lt;/u&gt;.&lt;u style=&quot;line-height: 18.4599990844727px;&quot;&gt;ibm&lt;/u&gt;.&lt;u style=&quot;line-height: 18.4599990844727px;&quot;&gt;xsp&lt;/u&gt;.&lt;u style=&quot;line-height: 18.4599990844727px;&quot;&gt;extlib&lt;/u&gt;.relational.&lt;u style=&quot;line-height: 18.4599990844727px;&quot;&gt;jdbc&lt;/u&gt;.JdbcConnectionManager&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;base-component&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1424. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;tag-name&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;XyzConnectionManager&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;tag-name&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1425. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;designer-extension&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1426. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;category&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;XYZ Custom&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;category&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1427. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;generate-id&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;generate-id&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1428. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;in-palette&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;in-palette&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1429. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;visible&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;visible&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1430. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;designer-extension&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1431. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;component-extension&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1432. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;component&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1433. &lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;faces-config&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1434. &lt;br /&gt;
  1435. Essentially what you are doing here is creating your own tag here that you can add to any page. &amp;nbsp;In this case, you will get access to the relational controls for whatever page in which you add the custom tag. &amp;nbsp;This would replace adding the built-in JDBCConnectionManager to your page. &lt;br /&gt;
  1436. &lt;br /&gt;
  1437. Here is a explanation of key parts of this file:&lt;br /&gt;
  1438. &lt;br /&gt;
  1439. &lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;1&lt;/span&gt; - The namespace URI needs to only be a unique value. &amp;nbsp;It does not need to resolve to a real URL, just as the XSP namespace does not resolve to a real URL.&lt;br /&gt;
  1440. &lt;br /&gt;
  1441. &lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;2&lt;/span&gt; - This is the prefix we chose for our tag. This is analogous to &quot;xp&quot; for core controls, or &quot;xe&quot; for extension library controls.&lt;br /&gt;
  1442. &lt;br /&gt;
  1443. &lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;3&lt;/span&gt;&lt;/b&gt; - This maps the control to the java class we want to use&lt;br /&gt;
  1444. &lt;br /&gt;
  1445. &lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;4&lt;/span&gt; - This is the name of the tag that we show in our code&lt;br /&gt;
  1446. &lt;br /&gt;
  1447. &lt;span style=&quot;color: blue; font-family: Trebuchet MS, sans-serif;&quot;&gt;5&lt;/span&gt; - Setting this to true, make the control show up in our palette where we can drag it onto a page&lt;br /&gt;
  1448. &lt;br /&gt;
  1449. &lt;b&gt;Sample Usage:&lt;/b&gt;&lt;br /&gt;
  1450. 1) Include the new name space in your xpView tag at the very top&lt;br /&gt;
  1451. &lt;span style=&quot;color: #274e13;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;xmlns:&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;xyz=&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&lt;i style=&quot;line-height: 18.4599990844727px;&quot;&gt;&quot;&lt;/i&gt;&lt;/span&gt;&lt;a href=&quot;http://www.navyfederal.org/xpages/component&quot; style=&quot;background-color: white; cursor: pointer; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Courier New; line-height: normal;&quot;&gt;&lt;i style=&quot;line-height: 18.4599990844727px;&quot;&gt;http://www.xyzcompany.org/xpages/component&lt;/i&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: white; font-family: Courier New;&quot;&gt;&lt;i style=&quot;line-height: 18.4599990844727px;&quot;&gt;&quot;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; line-height: 21.2999992370605px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;2) Drag your control on the page using the&amp;nbsp;palette or type it in the source.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1452. &lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;xyz:XyzConnectionManager&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: purple; font-family: Courier New;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&lt;i style=&quot;line-height: 18.4599990844727px;&quot;&gt;&quot;XyzConnectionManager1&quot;&lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080; font-family: Courier New;&quot;&gt;xyz:XyzConnectionManager&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal; font-family: Courier New;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1453. &lt;br /&gt;
  1454. You will want to put this tag on any page that uses the relational controls, or put this in your application layout once, which makes it available on any page.&lt;br /&gt;
  1455. &lt;br /&gt;
  1456. &lt;b&gt;Known Issue:&lt;/b&gt;&lt;br /&gt;
  1457. For some reason, Designer often &quot;forgets&quot; about the faces-extension file and creates an unknown tag error on every page where it is used. &amp;nbsp;If you go and edit something in the faces-extension file and save the &quot;change&quot; (without really changing anything) and the clean your application the errors will go away. It sometimes takes two cleans.&lt;br /&gt;
  1458. &lt;br /&gt;
  1459. &lt;h3&gt;
  1460. Next Post&lt;/h3&gt;
  1461. &lt;div&gt;
  1462. &lt;br /&gt;&lt;/div&gt;
  1463. &lt;div&gt;
  1464. In my next post, I will finally get to the part where I can show how we use DB2 as our backend datastore. I will start with how to write a simple SELECT statement to populate a page.&amp;nbsp;&lt;/div&gt;
  1465. &lt;/div&gt;
  1466. </description><link>http://notesspeak.blogspot.com/2015/04/using-db2-in-xpages-part-4-setting-up.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-509862387908163396</guid><pubDate>Thu, 16 Apr 2015 02:09:00 +0000</pubDate><atom:updated>2015-04-15T20:10:11.833-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DB2</category><category domain="http://www.blogger.com/atom/ns#">xpages</category><title>Using DB2 in XPages Part 3: Setting up the Database Connection</title><description>In this third entry in my blog series, I will explain the process that we used to set up a connection to the DB2 database.&lt;br /&gt;
  1467. &lt;div&gt;
  1468. &lt;br /&gt;&lt;/div&gt;
  1469. &lt;h3&gt;
  1470. Ground Rules&lt;/h3&gt;
  1471. &lt;div&gt;
  1472. &lt;br /&gt;&lt;/div&gt;
  1473. &lt;div&gt;
  1474. The major ground rule that we had to follow was that connection parameters, including username and password, cannot be stored in an XML file the way that IBM recommends. These values must be passed in to the connection manager via a parameter. All connection information must be pulled from a central location for each environment. We keep this information in a Notes database and use keywords to hold the path to this connection repository database.&lt;/div&gt;
  1475. &lt;div&gt;
  1476. &lt;br /&gt;&lt;/div&gt;
  1477. &lt;div&gt;
  1478. It was no small effort to set up the connection manager to accept keywords. I will first explain what we needed to do for java access in this post, and in Part 4, I will explain the additional steps needed for SSJS access. &amp;nbsp;See &lt;a href=&quot;http://notesspeak.blogspot.com/2015/04/using-db2-in-xpages-part-2-application.html&quot;&gt;Part 2&lt;/a&gt; for an explanation of how the database architecture is setup.&lt;/div&gt;
  1479. &lt;div&gt;
  1480. &lt;br /&gt;&lt;/div&gt;
  1481. &lt;h3&gt;
  1482. Assumptions&lt;/h3&gt;
  1483. &lt;div&gt;
  1484. &lt;br /&gt;&lt;/div&gt;
  1485. &lt;div&gt;
  1486. First off, I am assuming that you are using Notes 9. &amp;nbsp;Next, I am assuming that you have downloaded the Extension Library from OpenNTF. The one that comes with Notes 9 does not contain the relational controls that you need. In November 2014, the relational controls were integrated into the main library. However, we had problems with the November version. The one we are using is the Dec 19, 2014 release. I recommend that one, or a newer release. You need to install it on your server &lt;i&gt;and&lt;/i&gt; your Designer client.&amp;nbsp;&lt;/div&gt;
  1487. &lt;div&gt;
  1488. &lt;br /&gt;&lt;/div&gt;
  1489. &lt;h3&gt;
  1490. Setting Up Your Connection&lt;/h3&gt;
  1491. &lt;div&gt;
  1492. &lt;br /&gt;&lt;/div&gt;
  1493. &lt;div&gt;
  1494. Given the aforementioned ground rules, you will need to follow all of these steps to set up your connection.&amp;nbsp;&lt;/div&gt;
  1495. &lt;div&gt;
  1496. &lt;br /&gt;&lt;/div&gt;
  1497. &lt;div&gt;
  1498. 1) Ensure that the Extension Library is installed, and make sure the relational libraries are loaded for your database. Even though the libraries are included in the main library download, you still have to choose to add them to your database. &amp;nbsp;&lt;/div&gt;
  1499. &lt;div&gt;
  1500. &lt;br /&gt;&lt;/div&gt;
  1501. &lt;div&gt;
  1502. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  1503. &lt;a href=&quot;http://1.bp.blogspot.com/-VI0VrYzU4RA/VS8Rhpi5CrI/AAAAAAAAHZY/E3uCXbSw1uM/s1600/Capture4-15.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-VI0VrYzU4RA/VS8Rhpi5CrI/AAAAAAAAHZY/E3uCXbSw1uM/s1600/Capture4-15.PNG&quot; height=&quot;147&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  1504. &lt;br /&gt;&lt;/div&gt;
  1505. &lt;div&gt;
  1506. 2) Make sure the DB2 connection information gets created in the external connection repository database. For each connection you need these values: Username, Password, Driver, and URL&lt;/div&gt;
  1507. &lt;div&gt;
  1508. &lt;br /&gt;&lt;/div&gt;
  1509. &lt;div&gt;
  1510. 3) Create keywords lookup values. We use a Keyword Bean bound to Application Scope to hold all our keyword values. At a minimum, you will need values for:&lt;/div&gt;
  1511. &lt;div&gt;
  1512. &lt;ul&gt;
  1513. &lt;li&gt;Schema&lt;/li&gt;
  1514. &lt;li&gt;DB2 Driver&lt;/li&gt;
  1515. &lt;li&gt;Path to connection repository database&lt;/li&gt;
  1516. &lt;li&gt;Key in connection repository database&amp;nbsp;&lt;/li&gt;
  1517. &lt;/ul&gt;
  1518. We use a managed bean for keywords; use whatever method you like.&lt;br /&gt;
  1519. &lt;ul&gt;
  1520. &lt;/ul&gt;
  1521. &lt;div&gt;
  1522. 4) Create Credentials.java class. As the name implies, this class loads the credentials and stores them in memory for all users. This class is a managed bean bound to applicationScope. See the code below in the Code Explanation section. &amp;nbsp;I think that if just using this for java (no SSJS), then you would want to make this a POJO.&lt;/div&gt;
  1523. &lt;/div&gt;
  1524. &lt;div&gt;
  1525. &lt;br /&gt;&lt;/div&gt;
  1526. &lt;div&gt;
  1527. 5) The next step involves creating a class that extends the &lt;a href=&quot;https://github.com/OpenNTF/XPagesExtensionLibrary/blob/6a4c6a664ca1f471d3aca7bc9b1049954951c657/extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.relational/src/com/ibm/xsp/extlib/relational/component/jdbc/UIJdbcConnectionManager.java&quot;&gt;UIJdbcConnectionManager&lt;/a&gt; class. This is necessary in order to use passed in connection details. For this example, let&#39;s pretend that my employer is XYZ Corporation, &amp;nbsp;I would name this class XYZConnectionManager. This code is also explained below in the Code Explanation Section.&lt;br /&gt;
  1528. &lt;br /&gt;
  1529. For java newbies, to extend a class means that we make a child class that inherits all the methods of the parent class. This allows you to add or overwrite functionality depending on your need. In our case, we implement an alternate way to read the credentials, but otherwise leave all the rest of the functionality intact.&lt;br /&gt;
  1530. &lt;br /&gt;
  1531. &lt;h3&gt;
  1532. Code Explanation - Credentials Class&lt;/h3&gt;
  1533. &lt;div&gt;
  1534. &lt;br /&gt;&lt;/div&gt;
  1535. &lt;div&gt;
  1536. &lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;gt;&amp;gt;Package, Imports, and Logging Removed&lt;/span&gt;&lt;/div&gt;
  1537. &lt;div&gt;
  1538. &lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  1539. &lt;div&gt;
  1540. &lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;public class Credentials implements Serializable{&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1541. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;private static final long serialVersionUID = 1L;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;public Credentials(){} &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Default no argument constructor&lt;/span&gt;&lt;br /&gt;
  1542. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1543. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;public void load(){&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1544. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1545. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;HashMap&amp;lt;String,String&amp;gt; r = new HashMap&amp;lt;String,String&amp;gt;();&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1546. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1547. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;// Get FacesContext &lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Standard Way to Get Scoped Variable&lt;/span&gt;&lt;br /&gt;
  1548. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;FacesContext context = FacesContext.getCurrentInstance();&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1549. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;Map applicationScope = context.getExternalContext().getApplicationMap();&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1550. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1551. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;// Get keywordBean &lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;gt;&amp;gt;Relates to Step 3 above&lt;/span&gt;&lt;br /&gt;
  1552. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;KeywordBean kw = this.getKeywords();&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1553. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;String dbpath = kw.getString(&quot;dbpasspath&quot;);&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1554. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;String dbview = kw.getString(&quot;dbpassview&quot;);&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1555. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;String dbkey = kw.getString(&quot;dbpasskey&quot;);&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1556. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1557. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;try {&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1558. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Session s = (Session)context.getApplication().getVariableResolver().&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1559. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; resolveVariable(context, &quot;sessionAsSigner&quot;);&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1560. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if(!s.isValid()){&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1561. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;gt;&amp;gt;log error condition&lt;/span&gt;&lt;span style=&quot;color: #38761d; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;(&quot;Unable to access sessionAsSigner.&quot;);&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1562. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;return;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1563. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} &lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;gt;&amp;gt;Makes sure proper permissions are in place&lt;/span&gt;&lt;br /&gt;
  1564. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1565. &lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;gt;&amp;gt;Get Handle to Notes Database that is connection repository&lt;/span&gt;&lt;br /&gt;
  1566. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; Database db_pass = s.getDatabase(s.getServerName(), dbpath);&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1567. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; if (db_pass.isOpen()) {&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1568. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; View v = db_pass.getView(dbview);&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1569. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if (v != null) {&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1570. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Document doc = v.getDocumentByKey(dbkey, true);&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1571. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (doc != null) {&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1572. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// ensure these HashMap variables match with the XYZConnectionManager&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1573. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;r.put(&quot;driver&quot;, kw.getString(&quot;DBDriver&quot;));&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1574. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;r.put(&quot;url&quot;, doc.getItemValueString(&quot;PI_JDBCURL&quot;));&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1575. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;r.put(&quot;user&quot;, doc.getItemValueString(&quot;PI_Username&quot;));&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1576. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;r.put(&quot;password&quot;, doc.getItemValueString(&quot;PI_Password&quot;));&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1577. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;applicationScope.put(&quot;dbpass&quot;,r);&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1578. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;doc.recycle();&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1579. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;v.recycle();&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1580. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else {&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1581. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;gt;&amp;gt;Log error condition&lt;/span&gt;&lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;(&quot;Unable to open document&quot;);&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1582. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1583. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;} else {&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1584. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;gt;&amp;gt;Log error condition&lt;/span&gt;&lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;(&quot;Unable to open view Pass\\All&quot;);&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1585. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1586. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; } else {&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1587. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;gt;&amp;gt;Log error condition&lt;/span&gt;&lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;(&quot;Unable to open connection database&quot;);&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1588. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1589. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; if(db_pass.isOpen()){&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1590. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; db_pass.recycle();&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1591. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1592. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;} catch (NotesException e) {&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1593. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;gt;&amp;gt;Log error condition&lt;/span&gt;&lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;(e.getLocalizedMessage());&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1594. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1595. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;return;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1596. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1597. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1598. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;private KeywordBean getKeywords(){&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1599. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;gt;&amp;gt;Get handle to Keyword Bean for getting location to connections database&lt;/span&gt;&lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1600. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1601. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;} //end Credentials.java&lt;/span&gt;&lt;br /&gt;
  1602. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  1603. &lt;br /&gt;
  1604. &lt;h3&gt;
  1605. Code Explanation - XYZConnection Manager Class&lt;/h3&gt;
  1606. &lt;div&gt;
  1607. &lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  1608. &lt;div&gt;
  1609. &lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  1610. &lt;div&gt;
  1611. &lt;span style=&quot;color: #444444;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Trebuchet MS, sans-serif;&quot;&gt;Note: If you use this, replace XYZ with your company name.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1612. &lt;div&gt;
  1613. &lt;span style=&quot;color: #444444; font-family: sans-serif; font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1614. &lt;div&gt;
  1615. &lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;gt;&amp;gt;Package, Imports, and Logging Removed&lt;/span&gt;&lt;/div&gt;
  1616. &lt;div&gt;
  1617. &lt;br style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; line-height: 21.2999992370605px;&quot; /&gt;
  1618. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;public class XYZConnectionManager extends UIJdbcConnectionManager {&lt;/span&gt;&lt;span style=&quot;background-color: white; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1619. &lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;gt;&amp;gt;UIjdbcConnectionManager is part of the Extension Library&lt;/span&gt;&lt;br /&gt;
  1620. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;private JdbcPoolDataSource dataSource = null;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1621. &lt;br style=&quot;background-color: white; line-height: 21.2999992370605px;&quot; /&gt;
  1622. &lt;span style=&quot;background-color: white; color: #38761d; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;public Connection createConnection() throws SQLException {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1623. &lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;gt;&amp;gt;This is the only method that we override from the superclass&lt;/span&gt;&lt;br /&gt;
  1624. &lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br style=&quot;background-color: white;&quot; /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;// Initialize vars&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Calibri, sans-serif; font-size: 15px; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1625. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;String driver = &quot;&quot;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1626. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;String url = &quot;&quot;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1627. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;String user = &quot;&quot;;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1628. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;String password = &quot;&quot;;&lt;/span&gt;&lt;span style=&quot;background-color: white; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
  1629. &lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; line-height: 21.2999992370605px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1630. &lt;div&gt;
  1631. &lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Standard Way to Get Scoped Variable&lt;/span&gt;&lt;br /&gt;
  1632. &lt;span style=&quot;background-color: white; color: #38761d; font-family: sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;FacesContext context = FacesContext.getCurrentInstance();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1633. &lt;span style=&quot;background-color: white; color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;Map applicationScope = context.getExternalContext().getApplicationMap();&lt;/span&gt;&lt;br /&gt;
  1634. &lt;br /&gt;
  1635. &lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;gt;&amp;gt;If the Credentials are already in applicationScope then use them, otherwise use Credentials class to load them&lt;/span&gt;&lt;br /&gt;
  1636. &lt;span style=&quot;background-color: white; color: #38761d; font-family: sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;try {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1637. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Read from ApplicationScope if available&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1638. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// ensure the values being retrieved match with the HashMap values set in the Credentials class&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1639. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (applicationScope.containsKey(&quot;dbpass&quot;)) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1640. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HashMap dbpass = (HashMap) applicationScope.get(&quot;dbpass&quot;);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1641. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (dbpass.containsKey(&quot;driver&quot;)) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1642. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; driver = (String) dbpass.get(&quot;driver&quot;);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1643. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1644. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (dbpass.containsKey(&quot;url&quot;)) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1645. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;url = (String) dbpass.get(&quot;url&quot;);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1646. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1647. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (dbpass.containsKey(&quot;user&quot;)) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1648. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; user = (String) dbpass.get(&quot;user&quot;);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1649. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1650. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (dbpass.containsKey(&quot;password&quot;)) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1651. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;password = (String) dbpass.get(&quot;password&quot;);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1652. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1653. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1654. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Try to get credentials&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1655. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x.error(&quot;Warning: DB2Pass not loaded.&quot;);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1656. &lt;div&gt;
  1657. &lt;span style=&quot;background-color: white; color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Credentials cred = new Credentials();&lt;/span&gt;&lt;/div&gt;
  1658. &lt;div&gt;
  1659. &lt;span style=&quot;background-color: white; color: #38761d; font-family: Calibri, sans-serif; font-size: 15px; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: 15px; line-height: 21.2999992370605px;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt; &amp;gt;&amp;gt;Not sure why original developer creates new instance here, if it is managed already&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1660. &lt;span style=&quot;background-color: white; font-size: 15px; line-height: 21.2999992370605px;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
  1661. &lt;span style=&quot;background-color: white; color: #38761d; font-family: sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; font-family: sans-serif;&quot;&gt;&amp;nbsp;cred.load();&lt;/span&gt;&lt;span style=&quot;background-color: white; line-height: 21.2999992370605px;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;&lt;span style=&quot;font-size: 15px;&quot;&gt;&amp;gt;&amp;gt;Loads credentials from connection database, then reads from applicationScope&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1662. &lt;span style=&quot;background-color: white; color: #38761d; font-family: sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp;if (applicationScope.containsKey(&quot;dbpass&quot;)) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1663. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HashMap dbpass = (HashMap) applicationScope.get(&quot;dbpass&quot;);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1664. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (dbpass.containsKey(&quot;driver&quot;)) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1665. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; driver = (String) dbpass.get(&quot;driver&quot;);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1666. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1667. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (dbpass.containsKey(&quot;url&quot;)) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1668. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;url = (String) dbpass.get(&quot;url&quot;);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1669. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1670. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (dbpass.containsKey(&quot;user&quot;)) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1671. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; user = (String) dbpass.get(&quot;user&quot;);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1672. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1673. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (dbpass.containsKey(&quot;password&quot;)) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1674. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;password = (String) dbpass.get(&quot;password&quot;);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1675. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1676. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1677. &lt;span style=&quot;background-color: white; color: #38761d; font-family: sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;gt;&amp;gt;log error condition&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;(&quot;Unable to access connection credentials.&quot;);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1678. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return null;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1679. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1680. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br style=&quot;background-color: white; line-height: 21.2999992370605px;&quot; /&gt;&lt;/span&gt;
  1681. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1682. &lt;div&gt;
  1683. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp;} catch (Exception e) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1684. &lt;span style=&quot;background-color: white; color: #38761d; font-family: sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;gt;&amp;gt;log error condition&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;(e.getLocalizedMessage());&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1685. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return null;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1686. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1687. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br style=&quot;background-color: white; line-height: 21.2999992370605px;&quot; /&gt;&lt;/span&gt;
  1688. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp;// Create DataSource&lt;/span&gt;&lt;span style=&quot;background-color: white; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Trebuchet MS, sans-serif; font-size: 15px; line-height: 21.2999992370605px;&quot;&gt;&amp;gt;&amp;gt;Creates the javax.sql.DataSource object which is needed to connect to DB2 using passed in parameters, only if needed, otherwise pulls from the connection pool. &amp;nbsp;Returns the Connection object.&lt;/span&gt;&lt;br /&gt;
  1689. &lt;span style=&quot;background-color: white; color: #38761d; font-family: sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d; font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;try {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1690. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (this.dataSource == null) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1691. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.dataSource = new JdbcPoolDataSource(driver, url, user,&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;password, 10, 20, 100, 0, 0, 0, 10000);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1692. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1693. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Connection c = dataSource.getConnection();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1694. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;initConnection(context, c);&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1695. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return c;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1696. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br style=&quot;background-color: white; line-height: 21.2999992370605px;&quot; /&gt;&lt;/span&gt;
  1697. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} catch (PoolException e) {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1698. &lt;span style=&quot;background-color: white; color: #38761d; font-family: sans-serif; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;gt;&amp;gt;log error condition&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;(&quot;PoolException creating JdbcPoolDataSource. &quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;+ e.getLocalizedMessage());&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1699. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1700. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return null;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1701. &lt;span style=&quot;background-color: white; color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;br /&gt;
  1702. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&lt;span style=&quot;background-color: white; line-height: 21.2999992370605px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1703. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; private KeywordBean getKeywords() {&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1704. &lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&amp;gt;Get handle to Keyword Bean for getting location to connections database&lt;/span&gt;&lt;span style=&quot;color: #38761d; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1705. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1706. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1707. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #38761d; line-height: 21.2999992370605px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
  1708. &lt;span style=&quot;background-color: white; line-height: 21.2999992370605px;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;b&gt;Sample Usage:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1709. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;XYZConnectionManager cm = new XYZConnectionManager();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;Connection c =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;cm.getConnection();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1710. &lt;h3&gt;
  1711. &lt;/h3&gt;
  1712. &lt;div&gt;
  1713. &lt;br /&gt;&lt;/div&gt;
  1714. &lt;h3&gt;
  1715. Attribution&lt;/h3&gt;
  1716. &lt;/div&gt;
  1717. &lt;div&gt;
  1718. &lt;br /&gt;&lt;/div&gt;
  1719. &lt;div&gt;
  1720. I did not personally write any of this code, but having to explain it has helped me to understand and share this information. &amp;nbsp;The code shown here is based on code originally developed by&lt;a href=&quot;http://lazynotesguy.net/blog/&quot;&gt; Lauri Laanti&lt;/a&gt;. &lt;a href=&quot;http://lazynotesguy.net/blog/2013/08/09/subclassing-an-extlib-component/&quot;&gt;Here&lt;/a&gt; is a blog post that Lauri wrote that explains what he did. (Lauri, if you see this, I hope you don&#39;t give up on that blog).&lt;/div&gt;
  1721. &lt;div&gt;
  1722. &lt;br /&gt;&lt;/div&gt;
  1723. &lt;div&gt;
  1724. I also need to give credit to a former coworker&amp;nbsp;Eric Dyer&amp;nbsp;and a current coworker Dwain Wuerfel, They did all this work in a previous project at my company. &amp;nbsp;We stole it for use in my current project.&amp;nbsp;&lt;/div&gt;
  1725. &lt;div&gt;
  1726. &lt;br /&gt;&lt;/div&gt;
  1727. &lt;h3&gt;
  1728. Next Post&lt;/h3&gt;
  1729. &lt;div&gt;
  1730. &lt;br /&gt;&lt;/div&gt;
  1731. &lt;div&gt;
  1732. In my next post, I will explain what additional steps are necessary to connect to DB2 using server side javascript.&lt;/div&gt;
  1733. </description><link>http://notesspeak.blogspot.com/2015/04/using-db2-in-xpages-part-3-setting-up.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-VI0VrYzU4RA/VS8Rhpi5CrI/AAAAAAAAHZY/E3uCXbSw1uM/s72-c/Capture4-15.PNG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-6678270374260834414</guid><pubDate>Wed, 08 Apr 2015 23:09:00 +0000</pubDate><atom:updated>2015-04-08T17:09:44.547-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DB2</category><category domain="http://www.blogger.com/atom/ns#">xpages</category><title>Using DB2 in XPages Part 2: Application Architecture Overview</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1734. This is the second in my blog series on using an Db2 backend with XPages. &amp;nbsp;I will go over the application architecture, and do my best to explain why we did things the way we did.&lt;/div&gt;
  1735. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1736. &lt;br /&gt;&lt;/div&gt;
  1737. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1738. Working for a very large financial company, they are extremely concerned with protecting the security of their customers. &amp;nbsp;This is a good thing of course, especially considering some of the high profile breaches in recent years. &amp;nbsp;&lt;/div&gt;
  1739. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1740. &lt;br /&gt;&lt;/div&gt;
  1741. &lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1742. &lt;a href=&quot;http://1.bp.blogspot.com/--tTsOMYyf2Y/VRDJiKEZfOI/AAAAAAAAHXk/ZqMwKuvPSg0/s1600/no-easy-button.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/--tTsOMYyf2Y/VRDJiKEZfOI/AAAAAAAAHXk/ZqMwKuvPSg0/s1600/no-easy-button.png&quot; height=&quot;191&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;To protect themselves, they have a mindset of following security standards in developing applications, even internal applications like this one. &amp;nbsp;Standards are fine and good, but in the fast moving world of Web Application Development it is difficult to standardize on anything, because two years later the winds have changed. As a developer, I am very concerned with keeping up with the latest trends, and taking advantage of the collective knowledge of my blogging peers. &amp;nbsp;This can lead to some debate when the standards don&#39;t mesh with recent trends or best practices. As my coworkers could attest, I am always up for defending my position, but ultimately, you have to do what your employer says to do because hey, they are paying you.&lt;/div&gt;
  1743. &lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1744. &lt;br /&gt;&lt;/div&gt;
  1745. &lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1746. With that background being said, I want to explain that what is going to be explained in this blog series isn&#39;t intended to demonstrate the best way to connect to relational databases. &amp;nbsp;This series is going to cover the way we DID do it. &amp;nbsp;&lt;b&gt;I make no claims that this is the best, easiest or fastest way, but this is a way that did work and there is a lot to be said for that. &lt;/b&gt;&amp;nbsp;There are lessons that can be learned from what we did, or maybe even lessons on what not to do.&lt;br /&gt;
  1747. &lt;br /&gt;&lt;/div&gt;
  1748. &lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1749. &lt;h3&gt;
  1750. Application Architecture&lt;/h3&gt;
  1751. &lt;/div&gt;
  1752. &lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1753. From the start, I designed the application to follow a Model-View-Controller style architecture. &amp;nbsp;For the most part I felt we were able to accomplish this goal, especially in keeping code segregated. Speaking of M-V-C, I found these &lt;a href=&quot;http://www.eknori.de/2015-04-03/slides-and-sample-application-from-my-presentation-engage-ics-ug/&quot;&gt;slides from Ulrich Krause at Engage 2015&lt;/a&gt; to be a very excellent overview of M-V-C in XPages. &amp;nbsp;Wish I could have seen the session.&lt;/div&gt;
  1754. &lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1755. &lt;br /&gt;&lt;/div&gt;
  1756. &lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
  1757. &lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-85pdNjxVOvI/VSBVBq66aoI/AAAAAAAAHYc/Cj9UJR1Mn0Q/s1600/arch.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-85pdNjxVOvI/VSBVBq66aoI/AAAAAAAAHYc/Cj9UJR1Mn0Q/s1600/arch.png&quot; height=&quot;202&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
  1758. &lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif; font-size: small;&quot;&gt;High Level Architecture&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  1759. &lt;/tbody&gt;&lt;/table&gt;
  1760. &lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1761. &lt;br /&gt;&lt;/div&gt;
  1762. &lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1763. Some key points not readily apparent from this high level chart. &amp;nbsp;&lt;/div&gt;
  1764. &lt;div class=&quot;&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
  1765. &lt;/div&gt;
  1766. &lt;ul&gt;
  1767. &lt;li&gt;The UI elements are not directly bound to DB2 data via the relational controls, they are bound to either viewScope or managed bean fields and changed using java methods in the controller layer. &amp;nbsp;&lt;/li&gt;
  1768. &lt;li&gt;There is no Object Relational Mapping framework in place (ie: Hibernate)&lt;/li&gt;
  1769. &lt;li&gt;&lt;i&gt;As much as possible&lt;/i&gt;&amp;nbsp;business logic is in java, but &lt;i&gt;all&lt;/i&gt; DB2 access is in java.&amp;nbsp;&lt;/li&gt;
  1770. &lt;li&gt;The java methods in the controller layer contain actual SQL statements to interact with DB2.&amp;nbsp;&lt;/li&gt;
  1771. &lt;li&gt;We are using the extention library relational controls, but do not use the &amp;nbsp;&amp;lt;xe:jdbcQuery&amp;gt; and &amp;lt;xe:jdbc:jdbcRowSet&amp;gt; (since all access is via java).&lt;/li&gt;
  1772. &lt;/ul&gt;
  1773. &lt;br /&gt;
  1774. &lt;ul&gt;
  1775. &lt;/ul&gt;
  1776. &lt;h3&gt;
  1777. Next Post&lt;/h3&gt;
  1778. In my next post, I will explain the way we needed to handle credentials, as well as how we extended the connection manager class to handle passed in credentials. &amp;nbsp;I will show actual code next time, I promise :)</description><link>http://notesspeak.blogspot.com/2015/04/using-db2-in-xpages-part-2-application.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/--tTsOMYyf2Y/VRDJiKEZfOI/AAAAAAAAHXk/ZqMwKuvPSg0/s72-c/no-easy-button.png" height="72" width="72"/><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-159484009820935264</guid><pubDate>Mon, 23 Mar 2015 00:16:00 +0000</pubDate><atom:updated>2015-04-08T17:10:05.761-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DB2</category><category domain="http://www.blogger.com/atom/ns#">xpages</category><title>New Blog Series: Using a DB2 Datasource in XPages</title><description>This post is the introduction of a blog series on using a DB2 backend datasource in XPages. &amp;nbsp;I will discuss how we set up the connections and give examples of different types of queries. There should be very little here specific to DB2, but for ease of writing, I will write &#39;DB2&#39; throughout this series. Feel free to substitute any relational database, such as Oracle, MySQL, SQL Server, etc.&lt;br /&gt;
  1779. &lt;br /&gt;
  1780. &lt;h3&gt;
  1781. Background&lt;/h3&gt;
  1782. &lt;br /&gt;
  1783. Why did we choose to use a DB2 backend? &amp;nbsp;It is complicated... but the real reason we chose to use DB2 is that someone at my company believed that Notes was not secure enough for storing sensitive data. &amp;nbsp;Most everyone who reads this knows that this is far from the truth. &amp;nbsp;Notes is extremely secure and its security model is looked at as one of it biggest strengths.&lt;br /&gt;
  1784. &lt;br /&gt;
  1785. When presented with this assertion, I did my best to present arguments against using DB2. I knew the security premise was wrong, and I knew it would dramatically increase project completion time. Lastly, I knew Notes was well suited for the project at hand.&lt;br /&gt;
  1786. &lt;br /&gt;
  1787. Even though I fought hard for what I felt was right, I was &lt;b&gt;not&lt;/b&gt; very disappointed when I lost the battle. The reason being that I knew that using a relational backend would be a fun learning experience and good for the career. In my last job, I had experience retrieving Oracle data through a java agent, but I never bound an XPage to relational data real time.&lt;br /&gt;
  1788. &lt;br /&gt;
  1789. Around this time, I went to the &lt;a href=&quot;http://www.mwlug.com/&quot;&gt;MWLUG&lt;/a&gt; conference in Grand Rapids and heard an excellent presentation by Toby Samples on using &lt;a href=&quot;http://www.slideshare.net/tobysamples/hibernate-in-xpages&quot;&gt;Hibernate in Xpages.&lt;/a&gt;&amp;nbsp;When I came back, I did my best to sell the use of Hibernate because I felt it would be a benefit, and I now had the information to make it work. Despite this, the decision was made to go with JDBC, mainly because we had already had another database with the same functionality that we could copy, and the developers who wrote it were now on the same project.&lt;br /&gt;
  1790. &lt;br /&gt;
  1791. &lt;h3&gt;
  1792. Series Contents&lt;/h3&gt;
  1793. &lt;br /&gt;
  1794. With that background, I am going to discuss the following topics in this blog series:&lt;br /&gt;
  1795. &lt;ul&gt;
  1796. &lt;li&gt;Setting up your database to connect to DB2. &amp;nbsp;&lt;/li&gt;
  1797. &lt;ul&gt;
  1798. &lt;li&gt;Using the Extension Library Relational Controls&lt;/li&gt;
  1799. &lt;li&gt;Using Connection Pooling&lt;/li&gt;
  1800. &lt;li&gt;Storing the DB2 Credentials in a managed bean&lt;/li&gt;
  1801. &lt;/ul&gt;
  1802. &lt;li&gt;Coding a simple SELECT statement&lt;/li&gt;
  1803. &lt;li&gt;Selecting information from two tables using a JOIN&lt;/li&gt;
  1804. &lt;li&gt;Coding an INSERT&lt;/li&gt;
  1805. &lt;li&gt;Coding an UPDATE&lt;/li&gt;
  1806. &lt;li&gt;Populating a combobox dropdown with values from a DB2 query&lt;/li&gt;
  1807. &lt;li&gt;Retrieving a collection of data in JSON format for using in a data table&lt;/li&gt;
  1808. &lt;/ul&gt;
  1809. &lt;div&gt;
  1810. Note: Due to a very heavy load at work, it might take me up to two months or more to finish this blog series. &amp;nbsp;&lt;/div&gt;
  1811. &lt;br /&gt;
  1812. &lt;h3&gt;
  1813. Assumptions&lt;/h3&gt;
  1814. &lt;br /&gt;
  1815. Throughout I am going to make the assumption that you know the basics of SQL. For me, SQL was the one thing I learned in college that I actually still use today. &amp;nbsp;Another assumption is that you know something about java, because all the coding is done using it. You can use SSJS to access DB2, but early on, we made the decision to have as much of the business logic as possible in java.&lt;br /&gt;
  1816. &lt;br /&gt;
  1817. &lt;h3&gt;
  1818. Credits&lt;/h3&gt;
  1819. &lt;br /&gt;
  1820. I was busy with another project while the groundwork was setup for connecting to DB2. Credit for doing this work goes to my coworker Dwain Weurfel. Dwain, thanks for helping me document and explain the setup, and &amp;nbsp;for helping me to proof these posts, so that I get it right!&amp;nbsp;I should also give credit to former coworker Eric Dyer who had a large role in creating the groundwork while working on the first DB2 backend project at my company.</description><link>http://notesspeak.blogspot.com/2015/03/new-blog-series-using-db2-datasource-in.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-3550029436576625309</guid><pubDate>Sat, 21 Feb 2015 11:59:00 +0000</pubDate><atom:updated>2015-02-21T04:59:31.092-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">javascript</category><title>Using Javascript RegExp Object to replace a XPages Contraint Validator</title><description>&lt;br /&gt;
  1821. &lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #444444; font-family: inherit;&quot;&gt;I had an occasion yesterday where I needed change a partial refresh to process data without validation in order to fix another problem. Despite this I still needed to validate the data the user enters based on a regular expression. &amp;nbsp;The previous developer was was using a&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;xp:validateContraint&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: inherit;&quot;&gt; to check the data, but this check would no longer trigger since I am skipping&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #444444;&quot;&gt;validation&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: inherit;&quot;&gt;. The constraint validator&amp;nbsp;uses a regular expression to determine whether the validation passes or not.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1822. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;Even though the regular expression in this case was simplistic, I did not want to mirror what it does using string manipulation to validate it.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: inherit;&quot;&gt;I remembered from one of my Javascript books (&lt;a href=&quot;http://www.wrox.com/WileyCDA/WroxTitle/Professional-JavaScript-for-Web-Developers-3rd-Edition.productCd-1118222199.html&quot;&gt;Professional JavaScript for Web Developers&lt;/a&gt;) that Regular Expressions are built into the language. &amp;nbsp;It was very easy to duplicate the constraint functionality by just copying the RegExp string that already worked and then creating a RegExp javascript object. &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: inherit; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1823. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;The code here lives in a button in the SSJS onclick event:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1824. &lt;span style=&quot;background-color: white; color: #444444; font-family: sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: sans-serif; font-size: x-small;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; line-height: 21.2999992370605px;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;var&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;thisID = getComponent(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;&quot;inputID&quot;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;).getValue();&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;var&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp;pattern =&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff; font-family: Courier New;&quot;&gt;/^([A-Za-z]{2}[A-Za-z0-9]{0,2})$/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px; line-height: 21.2999992370605px;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;if&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;(!pattern.test(thisID)){&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #820040; font-family: Courier New;&quot;&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;return viewScope&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;.infoMessage = &quot;No Can Do&quot;;&lt;/span&gt;&lt;br /&gt;
  1825. &lt;span style=&quot;background-color: white; color: #444444; font-family: Courier New;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: large; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; font-family: Calibri, sans-serif; font-size: 15px; line-height: 21.2999992370605px;&quot; /&gt;&lt;br /&gt;
  1826. The built-in RegExp object can be created in one of two ways, you can either use the slash as I do in the above code or you can create it using new RegExp(&quot;....&quot;). &amp;nbsp;Either way that you choose, it works the same. The object has a method called test() which will return a true/false depending if the passed in string matches. &amp;nbsp;Of course, you can use this in any javascript, client or serverside.</description><link>http://notesspeak.blogspot.com/2015/02/using-javascript-regexp-object-to.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-8723461929154250425</guid><pubDate>Thu, 08 Jan 2015 12:26:00 +0000</pubDate><atom:updated>2015-01-08T05:26:24.640-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">xpages</category><title>Using a Hidden Input to Validate if a Button was pushed </title><description>&lt;span style=&quot;background-color: white; color: #444444; font-family: inherit;&quot;&gt;In one of my current projects, I came across an issue where I needed to validate a form using the XPages validators. &amp;nbsp;This is a mature application that only uses SSJS everywhere, and I have to work with the boundaries already in place.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-family: inherit; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1827. &lt;br /&gt;
  1828. &lt;h3&gt;
  1829. &lt;span style=&quot;font-family: inherit;&quot;&gt;The Problem&lt;/span&gt;&lt;/h3&gt;
  1830. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;This particular problem is hard to describe but I will try. &amp;nbsp;I wanted to prevent a page from advancing to the next step. &amp;nbsp;The &quot;Next &amp;gt;&quot; link uses validators to control whether it works or not. Because of this established pattern, I needed to continue to use validators. &amp;nbsp;My problem was that there were no editable fields left on the page. &amp;nbsp;Validators only work on editable input fields, not buttons, links or computed fields.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1831. &lt;div&gt;
  1832. &lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  1833. &lt;div&gt;
  1834. &lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;I needed to validate whether a button was pushed&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;color: #444444; line-height: 18.4599990844727px;&quot;&gt;&lt;b&gt;and&lt;/b&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp;still allow the code behind the button to work and itself trigger validation.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
  1835. &lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
  1836. &lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-YIQsVpbQFqs/VK308RBzUsI/AAAAAAAAHHk/LEof6Zo2d54/s1600/combined-capture.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-YIQsVpbQFqs/VK308RBzUsI/AAAAAAAAHHk/LEof6Zo2d54/s1600/combined-capture.png&quot; height=&quot;424&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
  1837. &lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif; font-size: small;&quot;&gt;The Next button allows the user to continue only when all validation is passed.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  1838. &lt;/tbody&gt;&lt;/table&gt;
  1839. &lt;h3&gt;
  1840. &lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;The Solution&lt;/span&gt;&lt;/h3&gt;
  1841. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&lt;span style=&quot;line-height: 18.4599990844727px;&quot;&gt;I am going to show how to use a hidden input to validate non-input clickable elements, in this case a button.&lt;/span&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;line-height: 18.4599990844727px;&quot;&gt;Despite validition, the onclick event of the button will still work. &amp;nbsp;Normally, the validator will trip, and the onclick event will not work&lt;/span&gt;&amp;nbsp;until validation is passed.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1842. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;Since you can only use a validator with input controls, I decided to use a &lt;b&gt;Hidden Input&lt;/b&gt;. This control shows up on the page, but is not displayed. The validation messages of a hidden input are displayed using the standard display error control.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1843. &lt;div style=&quot;font-family: inherit;&quot;&gt;
  1844. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
  1845. &lt;div&gt;
  1846. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: teal;&quot;&gt;&amp;lt;x&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080;&quot;&gt;p:inputHidden&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: purple;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff;&quot;&gt;&lt;i style=&quot;line-height: 18.4599990844727px;&quot;&gt;&quot;inputHidden1&quot;&lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: purple;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff;&quot;&gt;&lt;i style=&quot;line-height: 18.4599990844727px;&quot;&gt;&quot;#requestScope.validateYN}&quot;&lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: purple;&quot;&gt;required&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff;&quot;&gt;&lt;i style=&quot;line-height: 18.4599990844727px;&quot;&gt;&quot;true&quot;&lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080;&quot;&gt;xp:this.validators&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080;&quot;&gt;xp:validateRequired&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: purple;&quot;&gt;message&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #4200ff;&quot;&gt;&lt;i style=&quot;line-height: 18.4599990844727px;&quot;&gt;&quot;Please use Validate with WU button before continuing&quot;&lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080;&quot;&gt;xp:validateRequired&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080;&quot;&gt;xp:this.validators&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: teal;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #3f8080;&quot;&gt;xp:inputHidden&lt;/span&gt;&lt;span style=&quot;background-color: white; color: teal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1847. &lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;
  1848. &lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;The key is to bind the control to a scoped variable with no initial value; this will cause the validator to trigger when the page is submitted. To make the button still work normal, I used the &lt;i&gt;onfocus&lt;/i&gt; to set the scoped variable so that it passes validation. In that onfocus event, I &lt;b&gt;must&lt;/b&gt;&amp;nbsp;do a partial refresh on the hidden input, and &#39;The Process Data Without Validation&#39;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;line-height: 18.4599990844727px;&quot;&gt;box&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;line-height: 18.4599990844727px;&quot;&gt;must&amp;nbsp;&lt;/b&gt;be checked.&lt;/span&gt;&lt;br /&gt;
  1849. &lt;div&gt;
  1850. &lt;br /&gt;&lt;/div&gt;
  1851. &lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
  1852. &lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-dTglrtkPbdo/VK33Vr3EwTI/AAAAAAAAHHw/Q4Q64Rwa-kA/s1600/Capture1-5a.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-dTglrtkPbdo/VK33Vr3EwTI/AAAAAAAAHHw/Q4Q64Rwa-kA/s1600/Capture1-5a.PNG&quot; height=&quot;316&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
  1853. &lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif; font-size: small;&quot;&gt;This shows the onfocus event of the button you want to validate&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  1854. &lt;/tbody&gt;&lt;/table&gt;
  1855. &lt;h3&gt;
  1856. Final Thoughts&lt;/h3&gt;
  1857. &lt;div&gt;
  1858. There might be other ways to accomplish what I show here, but I spent a lot of time trying other ways before I got this one working. I do know this is a rather obscure use case, but google has nothing on it, and I really didn&#39;t want to forget this in case I need to use it again.&lt;br /&gt;
  1859. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;Note: If you are very experienced with XPages, you might ask why I didn&#39;t set the button&#39;s &quot;disabledValidators&quot; property to &quot;true&quot;. &amp;nbsp;For some reason, this did not work; the main code in the onclick event did not execute regardless of the property being set.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
  1860. &lt;/div&gt;
  1861. </description><link>http://notesspeak.blogspot.com/2015/01/using-hidden-input-to-validate-if.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-YIQsVpbQFqs/VK308RBzUsI/AAAAAAAAHHk/LEof6Zo2d54/s72-c/combined-capture.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-7962745466553104442</guid><pubDate>Tue, 30 Dec 2014 01:42:00 +0000</pubDate><atom:updated>2014-12-29T18:42:07.123-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Eclipse</category><title>Using Domino Designer&#39;s &#39;Sign Design&#39; to solve strange Java exceptions</title><description>&lt;span style=&quot;background-color: white; color: #444444; font-family: inherit;&quot;&gt;Today, I reached out to another XPages developer who works on the same project in order to help me get past a strange error I was getting. The issue was that Java code within an XPages application that previously worked fine started failing, even though it had not been altered. He had experienced this issue before and knew what to do to fix it. The fix I am about to describe was new to me, so I felt it was worth sharing here.&lt;/span&gt;&lt;br /&gt;
  1862. &lt;span style=&quot;background-color: white; color: #444444; font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  1863. &lt;span style=&quot;background-color: white; color: #444444; font-family: inherit;&quot;&gt;The exception I was getting was this:&lt;/span&gt;&lt;br /&gt;
  1864. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-size: small;&quot;&gt;javax.servlet.ServletException: java.lang.Error: Unresolved compilation problem:&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1865. &lt;span style=&quot;background-color: white; color: #444444; font-family: inherit; font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  1866. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;When I first got the error, I naturally thought that it was something that I had changed. I didn&#39;t know what to make of an unresolved compilation problem, it seemed a bit generic, like the check engine light on your car. Even after I was able to isolate the line causing the problem, it made no sense because it was run of the mill Java code, the kind of snippet you use and reuse. In this case, it was a variable resolver that gets a handle to the current session.&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444; line-height: 21.2999992370605px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1867. &lt;br /&gt;
  1868. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;My coworker suggested performing a &quot;&lt;b&gt;Sign Design&lt;/b&gt;&quot; on the whole application. To do this, right click on the application name, then click &quot;Application&quot;, and then &quot;Sign Design&quot;. Sure enough, this fixed the issue, no more Java exceptions. &lt;b&gt;This is one of those fixes that is worth trying when nothing else is making sense.&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;&amp;nbsp;Of course this issue is most likely to happen for applications where work is shared by a team of developers, as is the case here. &lt;/span&gt;&lt;span style=&quot;background-color: white; color: #444444;&quot;&gt;The downside of this fix of course, is that you lose some of the history, and it looks like you touched every design element.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
  1869. &lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
  1870. &lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-QlMjyOGiM60/VKH6ORY5JSI/AAAAAAAAHG8/2jlXXWgkZVY/s1600/Capture12-29.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-QlMjyOGiM60/VKH6ORY5JSI/AAAAAAAAHG8/2jlXXWgkZVY/s1600/Capture12-29.PNG&quot; height=&quot;602&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
  1871. &lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif; font-size: small;&quot;&gt;&lt;span style=&quot;text-align: start;&quot;&gt;The way to find the option to &lt;b&gt;Sign Design&lt;/b&gt; is to right-click on the application title, and choose&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;text-align: start;&quot;&gt;Application,&lt;/i&gt;&lt;span style=&quot;text-align: start;&quot;&gt;&amp;nbsp;and then choose&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;text-align: start;&quot;&gt;Sign Design.&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  1872. &lt;/tbody&gt;&lt;/table&gt;
  1873. &lt;br /&gt;&lt;div&gt;
  1874. PS: &amp;nbsp;I want to wish Best Wishes for 2015 to all who stumble across my ramblings.&lt;/div&gt;
  1875. </description><link>http://notesspeak.blogspot.com/2014/12/using-domino-designers-sign-design-to.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-QlMjyOGiM60/VKH6ORY5JSI/AAAAAAAAHG8/2jlXXWgkZVY/s72-c/Capture12-29.PNG" height="72" width="72"/><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-6477985508643124560</guid><pubDate>Mon, 20 Oct 2014 01:23:00 +0000</pubDate><atom:updated>2014-10-19T19:24:29.897-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CSS</category><category domain="http://www.blogger.com/atom/ns#">xpages</category><title>Quick Tip: Forcing a CSS override</title><description>If you are using OneUI in your XPages application, then you know sometimes it just doesn’t do what you want it to do. Trying to get it to behave can be frustrating, this tip will help when OneUI overides your custom style for reasons unknown.&lt;br /&gt;
  1876. &lt;br /&gt;
  1877. &lt;h3&gt;
  1878. The Problem&lt;/h3&gt;
  1879. In my case, I was trying to make the labels of a radio button group appear disabled. Only the buttons themselves would look disabled, but the labels looked the same as when the control was enabled.&lt;br /&gt;
  1880. &lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
  1881. &lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-mCmKz00xf4I/VEKGrQOM7lI/AAAAAAAAGvM/gpPKfpmflNM/s1600/Enabled-Disabled.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-mCmKz00xf4I/VEKGrQOM7lI/AAAAAAAAGvM/gpPKfpmflNM/s1600/Enabled-Disabled.png&quot; height=&quot;157&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
  1882. &lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif; font-size: small;&quot;&gt;I don&#39;t feel that there is enough distinction between Enabled on the left, and Disabled on the right.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  1883. &lt;/tbody&gt;&lt;/table&gt;
  1884. The radio button group control does attempt to make it easy by having a property to enter the styleClass for when the control is disabled or enabled.&lt;br /&gt;
  1885. &lt;br /&gt;
  1886. &lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
  1887. &lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-LySeYkPabmg/VEKIHIwliZI/AAAAAAAAGvY/O5rUTkUP9hM/s1600/disableClass.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-LySeYkPabmg/VEKIHIwliZI/AAAAAAAAGvY/O5rUTkUP9hM/s1600/disableClass.png&quot; height=&quot;116&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
  1888. &lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif; font-size: small;&quot;&gt;XPages makes it easy for you to specify a disabled styleClass&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  1889. &lt;/tbody&gt;&lt;/table&gt;
  1890. This works fine for most of the CSS, except for some reason the color is overwritten as shown in the left picture below. I spent a lot of time playing with multiple CSS selectors with no success until I discovered how to force the CSS to override.&lt;br /&gt;
  1891. &lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
  1892. &lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-O4fQFTv_x-4/VEKI8TIqm2I/AAAAAAAAGvk/J-6MtCk2nGM/s1600/Before-After.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-O4fQFTv_x-4/VEKI8TIqm2I/AAAAAAAAGvk/J-6MtCk2nGM/s1600/Before-After.png&quot; height=&quot;226&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
  1893. &lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif; font-size: small;&quot;&gt;For some reason the &quot;color&quot; is overwritten by OneUI&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  1894. &lt;/tbody&gt;&lt;/table&gt;
  1895. &lt;h3 style=&quot;text-align: left;&quot;&gt;
  1896. The Solution&lt;/h3&gt;
  1897. &lt;div style=&quot;text-align: left;&quot;&gt;
  1898. The way to override is to add &lt;b&gt;“!important”&lt;/b&gt; after the attribute you don’t want to be overwritten. In my case, the only attribute that wasn’t behaving was the color. After I added !important, it worked exactly like I wanted. In the right picture above shows what this one change gives you.&lt;/div&gt;
  1899. &lt;div style=&quot;text-align: left;&quot;&gt;
  1900. &lt;br /&gt;&lt;/div&gt;
  1901. Here is the &lt;i&gt;Before&lt;/i&gt; code:&lt;br /&gt;
  1902. &lt;br /&gt;
  1903. &lt;span style=&quot;color: purple; font-family: Courier New, Courier, monospace;&quot;&gt;.radio-disabled {&lt;/span&gt;&lt;br /&gt;
  1904. &lt;span style=&quot;color: purple; font-family: Courier New, Courier, monospace;&quot;&gt;font-size:14pt;&lt;/span&gt;&lt;br /&gt;
  1905. &lt;span style=&quot;color: purple; font-family: Courier New, Courier, monospace;&quot;&gt;font-family:Calibri;&lt;/span&gt;&lt;br /&gt;
  1906. &lt;span style=&quot;color: purple; font-family: Courier New, Courier, monospace;&quot;&gt;color: #AFAEB5;&lt;/span&gt;&lt;br /&gt;
  1907. &lt;span style=&quot;color: purple; font-family: Courier New, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
  1908. &lt;br /&gt;
  1909. Here is the &lt;i&gt;After&lt;/i&gt; code:&lt;br /&gt;
  1910. &lt;span style=&quot;color: purple; font-family: Courier New, Courier, monospace;&quot;&gt;.radio-disabled {&lt;/span&gt;&lt;br /&gt;
  1911. &lt;span style=&quot;color: purple; font-family: Courier New, Courier, monospace;&quot;&gt;font-size:14pt;&lt;/span&gt;&lt;br /&gt;
  1912. &lt;span style=&quot;color: purple; font-family: Courier New, Courier, monospace;&quot;&gt;font-family:Calibri;&lt;/span&gt;&lt;br /&gt;
  1913. &lt;span style=&quot;color: purple; font-family: Courier New, Courier, monospace;&quot;&gt;color: #AFAEB5 !important;&lt;/span&gt;&lt;br /&gt;
  1914. &lt;span style=&quot;color: purple; font-family: Courier New, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
  1915. &lt;br /&gt;
  1916. &lt;h3&gt;
  1917. The Finished Result&lt;/h3&gt;
  1918. &lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
  1919. &lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-EBayDdwB-jI/VEKKOmQvs9I/AAAAAAAAGvw/6Md_RPay4tI/s1600/Enabled-Disabled-New.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-EBayDdwB-jI/VEKKOmQvs9I/AAAAAAAAGvw/6Md_RPay4tI/s1600/Enabled-Disabled-New.png&quot; height=&quot;157&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
  1920. &lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif; font-size: small;&quot;&gt;Enabled on the left, disabled on the right. It is easy to distinguish which is which.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  1921. &lt;/tbody&gt;&lt;/table&gt;
  1922. &lt;h3&gt;
  1923. Final Thoughts&lt;/h3&gt;
  1924. Perhaps this is old news to some who read this. Though, in my office, none of the four XPages developers knew about this before. I hope that this helps other XPagers who wrestle with OneUI.&lt;br /&gt;
  1925. &lt;br /&gt;
  1926. I will add that, this should be something that is used sparingly. In my case, only the specific class of “.radio-disabled” is using it. I can see that you could really mess your UI by overusing !important. Here is a related article called &lt;a href=&quot;http://james.padolsey.com/usability/dont-use-important/&quot;&gt;“Don’t Use !important”&lt;/a&gt; that explains some of the pitfalls.</description><link>http://notesspeak.blogspot.com/2014/10/quick-tip-forcing-css-override.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-mCmKz00xf4I/VEKGrQOM7lI/AAAAAAAAGvM/gpPKfpmflNM/s72-c/Enabled-Disabled.png" height="72" width="72"/><thr:total>4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-1788226675029372556</guid><pubDate>Fri, 10 Oct 2014 01:14:00 +0000</pubDate><atom:updated>2014-10-09T19:14:08.424-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">xpages</category><title>My First Experience Using the JSON-RPC Service.</title><description>This is one of those posts, where I am writing to my future self so that I can remember all that I learned about using the JSON-RPC service.&lt;br /&gt;
  1927. &lt;br /&gt;
  1928. If you are an XPages developer who is interested in learning about this tool then I first suggest checking out the following resources:&lt;br /&gt;
  1929. &lt;ul&gt;
  1930. &lt;li&gt;&lt;a href=&quot;http://www.notesin9.com/2014/05/21/tim-explains-json-rpc-codefortim/&quot;&gt;This email response&lt;/a&gt; to a question by &lt;a href=&quot;http://www.timtripcony.com/&quot;&gt;Tim Tripcony&lt;/a&gt; is sheer brilliance. I had to read and re-read this several times to really understand it, but that speaks all about me and nothing about how Tim explains things. &amp;nbsp;A big thanks to David Leedy for making it available to all.&lt;/li&gt;
  1931. &lt;/ul&gt;
  1932. &lt;ul&gt;
  1933. &lt;li&gt;Keith Strickland has written a very helpful &lt;a href=&quot;http://www.keithstric.com/A55BAC/keithstric.nsf/default.xsp?documentId=3524156D3B4587E185257920000494C5&quot;&gt;blog post&lt;/a&gt; on JSON-RPC way back in June 2011. It was Keith who first turned me on to the Remote Service control when I found his answer to this &lt;a href=&quot;http://stackoverflow.com/questions/9568519/getting-to-scope-variables-in-client-side-javascript-csjs-on-xpages/9595330#9595330&quot;&gt;Stack Overflow&lt;/a&gt;&amp;nbsp;question.&lt;/li&gt;
  1934. &lt;/ul&gt;
  1935. &lt;ul&gt;
  1936. &lt;li&gt;The &lt;a href=&quot;http://www.redbooks.ibm.com/Redbooks.nsf/ibmpressisbn/9780132901819?Open&quot;&gt;Extension Library Book&lt;/a&gt; devotes a few pages (351-353) to the JSON-RPC that I found very helpful.&lt;/li&gt;
  1937. &lt;/ul&gt;
  1938. &lt;h3&gt;
  1939. &lt;br /&gt;&lt;/h3&gt;
  1940. &lt;h3&gt;
  1941. How I and why I used the JSON-RPC control&lt;/h3&gt;
  1942. &lt;div&gt;
  1943. I needed to run a server based Java method that called a process and returned a result. My requirements stated that I need to try this process twice in a single event, and tell the user if the first try has failed. The way that Java works is to always one return value, so the intermediary messages would never be returned. In order to accomplish what I needed, I knew that clientside javascript was my best bet. In order to call a serverside java method from clientside JS, I decided to use an JSON-PRC call.&lt;br /&gt;
  1944. &lt;h3&gt;
  1945. &lt;br /&gt;&lt;/h3&gt;
  1946. &lt;h3&gt;
  1947. How to create the JSON-RPC service&lt;/h3&gt;
  1948. 1) Pull the tool from the pallet under “Data Access”. It is just called “Remote Service”.&lt;br /&gt;
  1949. &lt;br /&gt;
  1950. &lt;a href=&quot;http://4.bp.blogspot.com/-3JWFHCXDY4Y/VDcn74iNayI/AAAAAAAAGi8/zc6_hr-dGyM/s1600/Capture10-9b.PNG&quot; imageanchor=&quot;1&quot; style=&quot;font-size: 19px; font-weight: bold; margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-3JWFHCXDY4Y/VDcn74iNayI/AAAAAAAAGi8/zc6_hr-dGyM/s1600/Capture10-9b.PNG&quot; height=&quot;147&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
  1951. &lt;br /&gt;
  1952. 2) Give the service a serviceName and/or a pathInfo. I believe that the service may be referred to as either.&lt;br /&gt;
  1953. &lt;br /&gt;
  1954. &lt;a href=&quot;http://1.bp.blogspot.com/-8t06-YxCu4Y/VDcn75mu27I/AAAAAAAAGjE/_xQZ63mHPIo/s1600/Capture10-9a.PNG&quot; imageanchor=&quot;1&quot; style=&quot;font-size: 19px; font-weight: bold; margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-8t06-YxCu4Y/VDcn75mu27I/AAAAAAAAGjE/_xQZ63mHPIo/s1600/Capture10-9a.PNG&quot; height=&quot;307&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
  1955. &lt;br /&gt;
  1956. 3) Create the methods that you need to run. This will involve adding optional arguments and adding SSJS code to run in the script property. The script property doesn’t use the standard script editor that is usually used when you can enter serverside javascript.&lt;br /&gt;
  1957. &lt;br /&gt;
  1958. &lt;a href=&quot;http://4.bp.blogspot.com/-BUgXDd7mRB8/VDcn8HMUDRI/AAAAAAAAGjA/tLs7D24LY4Q/s1600/Capture10-9c.PNG&quot; imageanchor=&quot;1&quot; style=&quot;font-size: 19px; font-weight: bold; margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-BUgXDd7mRB8/VDcn8HMUDRI/AAAAAAAAGjA/tLs7D24LY4Q/s1600/Capture10-9c.PNG&quot; height=&quot;508&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
  1959. &lt;br /&gt;
  1960. 4) The finished result&lt;br /&gt;
  1961. &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
  1962. &lt;a href=&quot;http://3.bp.blogspot.com/-19X6iCsQO0g/VDcn9LbmFDI/AAAAAAAAGjU/tu39rQiDYL4/s1600/Capture10-9d.PNG&quot; imageanchor=&quot;1&quot; style=&quot;font-size: 19px; font-weight: bold; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-19X6iCsQO0g/VDcn9LbmFDI/AAAAAAAAGjU/tu39rQiDYL4/s1600/Capture10-9d.PNG&quot; height=&quot;222&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  1963. &lt;br /&gt;
  1964. &lt;h3&gt;
  1965. Using the Remote Service&lt;/h3&gt;
  1966. It took me a while to understand that the service doesn’t return a value initially, it returns an object that contains a callback method. The callback method actually returns the value. Thanks to Toby Samples who answered my &lt;a href=&quot;http://stackoverflow.com/questions/25920675/how-to-perform-multiple-page-updates-behind-a-single-button-in-xpages&quot;&gt;Stack Overflow question&lt;/a&gt; helping me with this.&lt;br /&gt;
  1967. &lt;br /&gt;
  1968. Here is the code where I call my remote service methods:&lt;br /&gt;
  1969. &lt;a href=&quot;http://2.bp.blogspot.com/-3VT2mE8T4bE/VDcn9SSuc3I/AAAAAAAAGjY/Lz5ngxDN5cY/s1600/Capture10-9e.PNG&quot; imageanchor=&quot;1&quot; style=&quot;font-size: 19px; font-weight: bold; margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-3VT2mE8T4bE/VDcn9SSuc3I/AAAAAAAAGjY/Lz5ngxDN5cY/s1600/Capture10-9e.PNG&quot; height=&quot;368&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
  1970. &lt;br /&gt;
  1971. &lt;b&gt;Code Explanation&lt;/b&gt;:&lt;br /&gt;
  1972. &lt;ol&gt;
  1973. &lt;li&gt;First the code shows the user a message that the process is starting&lt;/li&gt;
  1974. &lt;li&gt;Next, a value needed in one of the messages is pulled from a hidden input&lt;/li&gt;
  1975. &lt;li&gt;The RPC method is called, the object returned is assigned to the var “deferred”&lt;/li&gt;
  1976. &lt;li&gt;The callback of the object is called to get the result of the ‘first’ method&lt;/li&gt;
  1977. &lt;li&gt;If the ‘first’ method returns true, the user gets a success message&lt;/li&gt;
  1978. &lt;li&gt;If the ‘first’ method fails, the user gets a ‘retrying’ message, and the second method is called and the resulting object is assigned to a var “insideDeferred”&lt;/li&gt;
  1979. &lt;li&gt;If the result of the ‘second’ is true, the user gets a success message&lt;/li&gt;
  1980. &lt;li&gt;If the result of the ‘second’ method is false, the user gets a ‘try later’ message.&lt;/li&gt;
  1981. &lt;/ol&gt;
  1982. &lt;br /&gt;
  1983. &lt;h3&gt;
  1984. A slight problem&lt;/h3&gt;
  1985. This code all worked great, except… it ran so fast that the ‘trying again’ message appeared too quick for a user to read. I spent a lot of time trying to figure out a way to use timers to slow it down. Eventually I decided that I was spending too much time on this, and used an simple alert for that message, which fulfills my requirement and allowed me to get moving with the rest of the project.&lt;br /&gt;
  1986. &lt;h3&gt;
  1987. &lt;br /&gt;&lt;/h3&gt;
  1988. &lt;h3&gt;
  1989. Parting Thoughts&lt;/h3&gt;
  1990. Now that I understand how the Remote Service is used, I am sure I will find more uses for it. &amp;nbsp;It is an important tool in any XPages developers toolbox. &amp;nbsp;I can also see it being an important part of web applications that use a Domino backend and frontend Javascript frameworks like Angular JS.&lt;br /&gt;
  1991. &lt;div&gt;
  1992. &lt;/div&gt;
  1993. </description><link>http://notesspeak.blogspot.com/2014/10/my-first-experience-using-json-rpc.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-3JWFHCXDY4Y/VDcn74iNayI/AAAAAAAAGi8/zc6_hr-dGyM/s72-c/Capture10-9b.PNG" height="72" width="72"/><thr:total>5</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4805395909933518229.post-6813782039576580616</guid><pubDate>Thu, 21 Aug 2014 00:57:00 +0000</pubDate><atom:updated>2014-08-20T18:57:07.020-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Eclipse</category><category domain="http://www.blogger.com/atom/ns#">Java</category><category domain="http://www.blogger.com/atom/ns#">xpages</category><title>Trouble Using the Jar Design Element in XPages</title><description>It has been a while since posting, I have not forgot about blogging, but really have not done anything blog worthy. &amp;nbsp;In one of my projects, we have to talk to a mainframe &lt;i&gt;application&lt;/i&gt;&amp;nbsp;(not the tables) and perform various tasks. &amp;nbsp;The mainframe connection is made through Hostbridge technology, and packaged for me by our java developer in a jar that I can interact with using the java beans I use for business logic in my application.&lt;br /&gt;
  1994. &lt;br /&gt;
  1995. As we are in proof of concept mode, the java developer sends me the jar every time he makes a change and I place it in my NSF using the new Jar design element. Unfortunately, so far it hasn&#39;t been as easy doing this as I expected. &amp;nbsp;I dropped the jar file in, and then was able to write code to call the public methods using the java bean. &amp;nbsp;So far so good, after adding the proper imports the code &lt;i&gt;compiled&lt;/i&gt; fine.&lt;br /&gt;
  1996. &lt;br /&gt;
  1997. &lt;span style=&quot;font-family: inherit;&quot;&gt;At runtime, it would choke and give me a&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 17.804800033569336px;&quot;&gt;NoClassDefFoundError exception. This of course is really confusing because to me, the time to decide that you can&#39;t find the class should be compile time. I tried several times cleaning and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;line-height: 17.804800033569336px;&quot;&gt;rebuilding&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;line-height: 17.804800033569336px;&quot;&gt;&amp;nbsp;the application before turning to Stack Overflow with this question:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit; line-height: 17.804800033569336px;&quot;&gt;&lt;a href=&quot;http://stackoverflow.com/questions/25371817/the-contents-of-jar-file-not-found-using-jar-design-element-of-designer-9&quot;&gt;http://stackoverflow.com/questions/25371817/the-contents-of-jar-file-not-found-using-jar-design-element-of-designer-9&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
  1998. &lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 17.804800033569336px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
  1999. &lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; line-height: 17.804800033569336px;&quot;&gt;I recieved two helpful answers from Stephan Wissell and&amp;nbsp;&lt;/span&gt;Frantisek Kossuth. &amp;nbsp;The first thing I tried was removing the application, re-adding and verifying the build path which Stephan suggested. &amp;nbsp;This worked, and I was able to continue on without getting the same exception. &lt;/span&gt;&lt;br /&gt;
  2000. &lt;br /&gt;
  2001. The next day it was necessary to change the package name we were using inside the jar. &amp;nbsp;I was able to fix my own java code by correcting the import and again it compiled fine. &amp;nbsp;Unfortuately at runtime, &amp;nbsp;I started getting the same NoClassDefFoundError exception again. &amp;nbsp;This time nothing I tried worked. &amp;nbsp;I spent a long time checking build paths, and trying to use the&amp;nbsp;WebContent/WEB-INF/lib&amp;nbsp;instead of the jar element. &amp;nbsp;I did discover along the way that the jar element actually places the file in the the lib folder on its own. &amp;nbsp;I also discovered that the Package Explorer makes it appear that the file is not there, but if you use the Navigator instead you can see that the jar file is present in that folder. &lt;br /&gt;
  2002. &lt;br /&gt;
  2003. Franitisek in his answer, linked to another Stack Overflow question, one that I discovered before I asked my question. &amp;nbsp;In that &lt;a href=&quot;http://stackoverflow.com/questions/14464827/are-jar-files-in-webcontent-web-inf-lib-available-to-java-design-elements-in-dom&quot;&gt;question&lt;/a&gt;, the person who answered&amp;nbsp;Panu Haaramo made a comment on his answer directing the OP to this blog post:&amp;nbsp;&lt;a href=&quot;http://lotusandjava.blogspot.com/2012/10/xpage-javalangnoclassdeffounderror.html&quot;&gt;http://lotusandjava.blogspot.com/2012/10/xpage-javalangnoclassdeffounderror.html&lt;/a&gt;&lt;br /&gt;
  2004. &lt;br /&gt;
  2005. In this post, the author remarked that the only thing that worked was renaming the class. &amp;nbsp;So instead of renaming any classes, I decided to rename the jar file using the right-click menu option rename. &amp;nbsp;I did not rename using the O/S or have the java developer send me a new jar. &amp;nbsp;To my amazement,&lt;b&gt; this worked&lt;/b&gt;, and the exception went away and I am now back in business. &amp;nbsp;I probably spent at least 4 hours at work today struggling with this issue, so I am hoping this post will save someone that trouble. &lt;br /&gt;
  2006. &lt;br /&gt;
  2007. &lt;h3&gt;
  2008. The bottom line&lt;/h3&gt;
  2009. If you are getting a NoClassDefFoundError exception and using jars, try renaming the jars using the right click menu. It is easy, and it just might work. (You can always rename them back later, although I haven&#39;t actually tried that yet)&lt;br /&gt;
  2010. &lt;br /&gt;
  2011. If someone at IBM sees this post, this might be something to look into fixing in the next release. :)&lt;br /&gt;
  2012. &lt;br /&gt;
  2013. &lt;br /&gt;
  2014. PS. &amp;nbsp;I am looking forward to attending &lt;a href=&quot;http://www.mwlug.com/&quot;&gt;MWLUG&lt;/a&gt; next week, hope to see some of you there.</description><link>http://notesspeak.blogspot.com/2014/08/trouble-using-jar-design-element-in.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>3</thr:total></item></channel></rss>

If you would like to create a banner that links to this page (i.e. this validation result), do the following:

  1. Download the "valid RSS" banner.

  2. Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)

  3. Add this HTML to your page (change the image src attribute if necessary):

If you would like to create a text link instead, here is the URL you can use:

http://www.feedvalidator.org/check.cgi?url=http%3A//notesspeak.blogspot.com/feeds/posts/default%3Falt%3Drss

Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda