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


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

Re: Extract String and StringBuffer

From Leif Roar Moldskred <leifm@dimnakorr.com>
Subject Re: Extract String and StringBuffer
Newsgroups comp.lang.java.programmer
References <34c76a08-4bdb-462b-9178-c8a24d9a5dba@googlegroups.com>
Message-ID <fuudnas749CBZCDSnZ2dnUVZ8h2dnZ2d@giganews.com> (permalink)
Date 2012-05-24 04:02 -0500

Show all headers | View raw


mikew01 <mikew01@blueyonder.co.uk> wrote:

> I need to extract all of the SQL select statements from a codebase
> ideally during build time.

That sounds like an odd requirement. Why do you need to do so?

> The SQL queries are embedded in the source code in either String or
> StringBuffer form, none of them are annotated with a unique
> annotation. 

I think you are going to struggle. The SQL statements in StringBuffers
are not accessible at build time at all, and some of the ones in
Strings might not be either.

If you truly need this, you should probably bite the bullet and do the
work of digging through the code and annotate all the statements by
hand.

-- 
Leif Roar Moldskred

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