Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #14870

Re: Extract String and StringBuffer

From markspace <-@.>
Newsgroups comp.lang.java.programmer
Subject Re: Extract String and StringBuffer
Date 2012-05-28 12:19 -0700
Organization A noiseless patient Spider
Message-ID <jq0j37$cq6$2@dont-email.me> (permalink)
References <34c76a08-4bdb-462b-9178-c8a24d9a5dba@googlegroups.com> <fuudnas749CBZCDSnZ2dnUVZ8h2dnZ2d@giganews.com> <54c296d1-7913-45f0-b1f1-a602a0c34cbf@googlegroups.com> <jpljlp$jeu$1@dont-email.me> <7r97s71q986thd243sj2hv78qfc8keghu0@4ax.com>

Show all headers | View raw


On 5/28/2012 9:28 AM, Roedy Green wrote:
> On Thu, 24 May 2012 08:21:28 -0700, markspace<-@.>  wrote, quoted or
> indirectly quoted someone who said :
>
>>
>> In my opinion, I better requirement would be to isolate the SQL so that
>> it was no longer part of the code, but was in a separate file where it
>> could be accessed.  That way no one has to do this kind of busy work
>> again.
>
> It would be something like the way you do internationalisation with
> resource bundles.
>
> It could for example let you specialize code for different SQL
> engines.


Yes, that's exactly what I implemented.  JavaDB (i.e. Derby) gets used 
for unit testing, and something else for integration and production, so 
I had a little properties file with the SQL in it.  Just swap out the 
properties files to switch SQL flavors.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Extract String and StringBuffer mikew01 <mikew01@blueyonder.co.uk> - 2012-05-24 01:29 -0700
  Re: Extract String and StringBuffer Leif Roar Moldskred <leifm@dimnakorr.com> - 2012-05-24 04:02 -0500
    Re: Extract String and StringBuffer mikew01 <mikew01@blueyonder.co.uk> - 2012-05-24 03:21 -0700
      Re: Extract String and StringBuffer markspace <-@.> - 2012-05-24 08:21 -0700
        Re: Extract String and StringBuffer Roedy Green <see_website@mindprod.com.invalid> - 2012-05-28 09:28 -0700
          Re: Extract String and StringBuffer markspace <-@.> - 2012-05-28 12:19 -0700
      Re: Extract String and StringBuffer Robert Klemme <shortcutter@googlemail.com> - 2012-05-24 08:20 -0700
        Re: Extract String and StringBuffer markspace <-@.> - 2012-05-24 08:47 -0700
          Re: Extract String and StringBuffer Lew <lewbloch@gmail.com> - 2012-05-24 09:52 -0700
      Re: Extract String and StringBuffer Martin Gregorie <martin@address-in-sig.invalid> - 2012-05-24 20:29 +0000
  Re: Extract String and StringBuffer Roedy Green <see_website@mindprod.com.invalid> - 2012-05-28 09:29 -0700

csiph-web