mirror of https://github.com/apache/openjpa.git
Fix formatting for procedureList classes
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@751790 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1ece64d1df
commit
ca9d49a5f4
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue