store JDBC SQL in Properties

From: Erik Price <eprice(at)ptc(dot)com>
To: "pgsql-jdbc (at) postgresql (dot) org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: store JDBC SQL in Properties
Date: 2003-07-22 20:57:20
Message-ID: 3F1DA530.1070005@ptc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

I have a Java class that has a kind of large SQL query. Right now it is
a series of concatenated strings, occupying about twenty lines of my
source code file. Performance is not a concern to me at this point, but
I would like to store the SQL query string in a Properties file so that
it does not clutter my code. However, I can't find a reference to
acceptable Properties file syntax -- is it allowed to have multiline
property values? Like this:

# jdbc.sql.properties
com.erikprice.sql.select=SELECT some_value,
some_other_value,
yet_another_value
FROM some_table
WHERE some_condition

Erik

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Jason Bruce 2003-07-22 21:13:20
Previous Message Paul Thomas 2003-07-22 20:29:40 Re: patch: tiny patch to correct stringbuffer size estimate