From ca9d49a5f46ac54fab6d7d1368b8348bac626241 Mon Sep 17 00:00:00 2001 From: Michael Dick Date: Mon, 9 Mar 2009 18:55:33 +0000 Subject: [PATCH] Fix formatting for procedureList classes git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@751790 13f79535-47bb-0310-9956-ffa450edef68 --- .../jdbc/query/procedure/DerbyProcedureList.java | 9 ++++++--- .../persistence/jdbc/query/procedure/ProcedureList.java | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/query/procedure/DerbyProcedureList.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/query/procedure/DerbyProcedureList.java index 2035a5b8a..8725991e8 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/query/procedure/DerbyProcedureList.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/query/procedure/DerbyProcedureList.java @@ -34,7 +34,8 @@ public class DerbyProcedureList extends ProcedureList { retList.add ("create procedure ADD_X_TO_CHARLIE () " + "PARAMETER STYLE JAVA LANGUAGE JAVA MODIFIES SQL DATA " + - "EXTERNAL NAME 'org.apache.openjpa.persistence.jdbc.query.procedure.DerbyProcedureList.addXToCharlie'"); + "EXTERNAL NAME 'org.apache.openjpa.persistence.jdbc." + + "query.procedure.DerbyProcedureList.addXToCharlie'"); return retList; } @@ -52,8 +53,10 @@ public class DerbyProcedureList extends ProcedureList { } public static void addXToCharlie () throws Exception { - Connection conn = DriverManager.getConnection("jdbc:default:connection"); - PreparedStatement ps1 = conn.prepareStatement("update APPLICANT set name = 'Charliex' where name = 'Charlie'"); + Connection conn = DriverManager.getConnection("jdbc:default:" + + "connection"); + PreparedStatement ps1 = conn.prepareStatement("update APPLICANT set" + + " name = 'Charliex' where name = 'Charlie'"); ps1.executeUpdate(); conn.close(); diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/query/procedure/ProcedureList.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/query/procedure/ProcedureList.java index ac62bc03a..9bb2fc1aa 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/query/procedure/ProcedureList.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/query/procedure/ProcedureList.java @@ -34,7 +34,8 @@ public abstract class ProcedureList { // This method should also be overriden, but it needs to be static so // that it can be called as a stored procedure public static void addXToCharlie () throws Exception { - Exception e = new Exception ("Method not implemented by inheriting class"); + Exception e = new Exception ("Method not implemented by inheriting " + + "class"); throw e; } }