code_junkie

How to handle HUGE SQL strings in the source code

Nov 13th, 2011
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. String query = "select ......."+
  2. 3000 lines.
  3.  
  4. ResourceBundle bundle = ResourceBundle.getBundle("queries");
  5. String query = bundle.getString( "customerQuery" );
  6.  
  7. string sql = "select asd,asdf,ads,asdf,asdf,"
  8. + "from asdfj asfj as fasdkfjl asf"
  9. + "..........................."
  10. + "where user = @user and ........";
  11.  
  12. string sql = util.queries("usageReportByUser");
Add Comment
Please, Sign In to add comment