Re: Parameterizing table name

John Abraham <[email protected]> Wed, 23 Nov 2011 17:44:12 -0700
Newsgroups gmane.comp.java.orm.simpleorm
Message-ID <[email protected]>
--Apple-Mail=_5FFB2D4A-BDEC-44C8-BF61-7495D31D58B0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252


On 2011-11-23, at 5:14 PM, anthony berglas wrote:

> The "final" is only a matter of style and you could certainly remove it.=
=20

Thanks.  I wrote a static class initialization routine and call it right af=
ter reading my properties file.  I have no idea why I thought the "final" w=
as important.

> I would suggest you think about the order of the static initializations. =
 What is causing the class to load before the ResourceUtil one?=20

It's that we read the .properties file to determine runtime properties (suc=
h as table names) from the main() method, not from a static initializer. =
=20

--
John Abraham
[email protected]


--Apple-Mail=_5FFB2D4A-BDEC-44C8-BF61-7495D31D58B0
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 7bit





<head>

<style type="text/css">
<!--

/* start of attachment style */
       .ygrp-photo-title{
         clear: both;
         font-size: smaller;
         height: 15px;
         overflow: hidden;
         text-align: center;
         width: 75px;
       }
       div.ygrp-photo{
         background-position: center;
         background-repeat: no-repeat;
         background-color: white;
         border: 1px solid black;
         height: 62px;
         width: 62px;
       }

       div.photo-title 
         a,
         div.photo-title a:active,
         div.photo-title a:hover,
         div.photo-title a:visited {
           text-decoration: none; 
       }

       div.attach-table div.attach-row {
         clear: both;
       }

       div.attach-table div.attach-row div {
         float: left;
         /* margin: 2px;*/
       }

       p {
         clear: both;
         padding: 15px 0 3px 0;
	 overflow: hidden;
       }

       div.ygrp-file {
         width: 30px;
         valign: middle;
       }
       div.attach-table div.attach-row div div a {
         text-decoration: none;
       }

       div.attach-table div.attach-row div div span {
         font-weight: normal;
       }

       div.ygrp-file-title {
         font-weight: bold;
       }
 /* end of attachment style */
        -->
        </style>
        </head>
<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">




<br><div><div>On 2011-11-23, at 5:14 PM, anthony berglas wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: Georgia; font-size: 13px; line-height: 15px; ">The "final" is only a matter of style an
 d you could certainly remove it.<span class="Apple-converted-space">&nbsp;</span></span></span></blockquote><br></div><div>Thanks. &nbsp;I wrote a static class initialization routine and call it right after reading my properties file. &nbsp;I have no idea why I thought the "final" was important.</div><div><br></div><div><blockquote type="cite"><span class="Apple-style-span" style="font-family: Georgia; font-size: 13px; line-height: 15px; ">I would suggest you think about the order of the static initializations. &nbsp;What is causing the class to load before the ResourceUtil one?&nbsp;</span></blockquote><br></div><div>It's that we read the .properties file to determine runtime properties (such as table names) from the main() method, not from a static initializer. &nbsp;</div><div><br></d
 iv><div>--</div><div>John Abraham</div><div><a href="mailto:[email protected]">[email protected]</a></div><br>



<!-- |**|begin egp html banner|**| -->

<br>

    
    
<br>

<!-- |**|end egp html banner|**| -->


<div width="1" style="color: white; clear: both;"/>__._,_.___</div>

<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- |**|begin egp html banner|**| -->

  <img src="http://geo.yahoo.com/serv?s=97476590/grpId=7360226/grpspId=1705006905/msgId=2040/stime=1322095456" width="1" height="1"> <br>

<!-- |**|end egp html banner|**| -->

    
<!-- |**|begin egp html banner|**| -->

<br>
      <div style="font-family: verdana; font-size: 77%; border-top: 1px solid #666; padding: 5px 0;" >
      Your email settings: Individual Email|Traditional <br>
      <a href="http://groups.yahoo.com/group/SimpleORM/join;_ylc=X3oDMTJmbzV0aWtuBF9TAzk3NDc2NTkwBGdycElkAzczNjAyMjYEZ3Jwc3BJZAMxNzA1MDA2OTA1BHNlYwNmdHIEc2xrA3N0bmdzBHN0aW1lAzEzMjIwOTU0NTY-">Change settings via the Web</a> (Yahoo! ID required) <br>
      Change settings via email: <a href="mailto:[email protected]?subject=Email Delivery: Digest">Switch delivery to Daily Digest</a> | <a href = "mailto:[email protected]?subject=Change Delivery Format: Fully Featured">Switch to Fully Featured</a> <br>
           <a href="http://groups.yahoo.com/group/SimpleORM;_ylc=X3oDMTJkY292b2ZoBF9TAzk3NDc2NTkwBGdycElkAzczNjAyMjYEZ3Jwc3BJZAMxNzA1MDA2OTA1BHNlYwNmdHIEc2xrA2hwZgRzdGltZQMxMzIyMDk1NDU2">
        Visit Your Group 
      </a> |
      <a href="http://docs.yahoo.com/info/terms/">
        Yahoo! Groups Terms of Use
      </a> |
      <a href="mailto:[email protected]?subject=Unsubscribe">
       Unsubscribe 
      </a> 
 <br>
    </div>
  <br>

<!-- |**|end egp html banner|**| -->


<div style="color: white; clear: both;"/>__,_._,___</div>
</body></html>
--Apple-Mail=_5FFB2D4A-BDEC-44C8-BF61-7495D31D58B0--