From: <yh...@us...> - 2010-08-28 09:54:17
|
Revision: 5 http://netbeansjavasql.svn.sourceforge.net/netbeansjavasql/?rev=5&view=rev Author: yhoppe Date: 2010-08-28 09:54:11 +0000 (Sat, 28 Aug 2010) Log Message: ----------- Some bugfixes and updates. General clean up Modified Paths: -------------- trunk/src/de/acyrance/nb/sqlgenerator/Generators/Code/MySQLCodeGenerator.java Modified: trunk/src/de/acyrance/nb/sqlgenerator/Generators/Code/MySQLCodeGenerator.java =================================================================== --- trunk/src/de/acyrance/nb/sqlgenerator/Generators/Code/MySQLCodeGenerator.java 2010-08-28 09:31:50 UTC (rev 4) +++ trunk/src/de/acyrance/nb/sqlgenerator/Generators/Code/MySQLCodeGenerator.java 2010-08-28 09:54:11 UTC (rev 5) @@ -76,13 +76,13 @@ sql.append(NbPreferences.forModule(SQLGeneratorOptionsPanel.class).get("codeModifier", "public")); sql.append(" static void "); sql.append("deleteFrom"); - sql.append(tablename); + sql.append(tablename.substring(0, 1).toUpperCase()).append(tablename.substring(1)); sql.append("(Connection con, int keyId) throws SQLException {\n"); } else { sql.append(NbPreferences.forModule(SQLGeneratorOptionsPanel.class).get("codeModifier", "public")); sql.append(" void "); sql.append("deleteFrom"); - sql.append(tablename); + sql.append(tablename.substring(0, 1).toUpperCase()).append(tablename.substring(1)); sql.append("(Connection con, int keyId) throws SQLException {\n"); } @@ -144,7 +144,7 @@ sql.append(NbPreferences.forModule(SQLGeneratorOptionsPanel.class).get("codeModifier", "public")); sql.append(" static boolean "); sql.append("update"); - sql.append(tablename); + sql.append(tablename.substring(0, 1).toUpperCase()).append(tablename.substring(1)); sql.append("(Connection con, int keyId, "); for(int i = 0; i < vars.length; i++) { @@ -163,7 +163,7 @@ if(i % 5 == 0) { - sql.append("\n"); + sql.append("\n\t\t"); } } @@ -173,7 +173,7 @@ sql.append(NbPreferences.forModule(SQLGeneratorOptionsPanel.class).get("codeModifier", "public")); sql.append(" boolean "); sql.append("update"); - sql.append(tablename); + sql.append(tablename.substring(0, 1).toUpperCase()).append(tablename.substring(1)); sql.append("(Connection con, int keyId, "); for(int i = 0; i < vars.length; i++) { @@ -192,7 +192,7 @@ if(i % 5 == 0) { - sql.append("\n"); + sql.append("\n\t\t"); } } } @@ -409,7 +409,7 @@ if(i % 5 == 0) { - sql.append("\n"); + sql.append("\n\t\t"); } } @@ -464,7 +464,7 @@ sql.append(", "); if(i % 6 == 0) { - sql.append("\"\n + \""); + sql.append("\"\n\t\t + \""); } cnt++; @@ -615,13 +615,13 @@ sql.append(NbPreferences.forModule(SQLGeneratorOptionsPanel.class).get("codeModifier", "public")); sql.append(" static boolean "); sql.append("createTable"); - sql.append(tablename); + sql.append(tablename.substring(0, 1).toUpperCase()).append(tablename.substring(1)); sql.append("(Connection con) throws SQLException {\n"); } else { sql.append(NbPreferences.forModule(SQLGeneratorOptionsPanel.class).get("codeModifier", "public")); sql.append(" boolean "); sql.append("createTable"); - sql.append(tablename); + sql.append(tablename.substring(0, 1).toUpperCase()).append(tablename.substring(1)); sql.append("(Connection con) throws SQLException {\n"); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |