• R/O
  • SSH

JdbcAcsess2: Commit

全てを再実装したJdbcAcsessです。


Commit MetaInfo

Revision4f7b013874c23fc0c737054a31f813ed34c54825 (tree)
Time2012-02-16 00:52:37
Authorshimakazuro
Commitershimakazuro

Log Message

exportkeyを見やすく

Change Summary

Incremental Difference

diff -r 9784314ce47a -r 4f7b013874c2 .settings/org.eclipse.jdt.ui.prefs
--- a/.settings/org.eclipse.jdt.ui.prefs Tue Feb 14 21:26:34 2012 +0900
+++ b/.settings/org.eclipse.jdt.ui.prefs Thu Feb 16 00:52:37 2012 +0900
@@ -1,9 +1,9 @@
1-#Sat Feb 04 18:21:31 JST 2012
1+#Mon Feb 13 22:17:26 JST 2012
22 cleanup_settings_version=2
33 eclipse.preferences.version=1
44 editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
5-org.eclipse.jdt.ui.javadoc=false
6-org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="getter \u30E1\u30BD\u30C3\u30C9\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="setter \u30E1\u30BD\u30C3\u30C9\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} \u30BB\u30C3\u30C8\u3059\u308B ${bare_field_name}\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u30FC\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F\u306E Java \u30D5\u30A1\u30A4\u30EB\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*\n * Copyright 2011 Kazuhiro Shimada\n * \n * Licensed under the Apache License, Version 2.0 (the "License"); \n * you may not use this file except in compliance with the License. \n * You may obtain a copy of the License at\n * \n *\t http\://www.apache.org/licenses/LICENSE-2.0 \n * \n * Unless required by applicable law or agreed to in writing, software \n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. \n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F\u306E\u578B\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="\u30AA\u30FC\u30D0\u30FC\u30E9\u30A4\u30C9\u3057\u306A\u3044\u30E1\u30BD\u30C3\u30C9\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="\u30AA\u30FC\u30D0\u30FC\u30E9\u30A4\u30C9\u3059\u308B\u30E1\u30BD\u30C3\u30C9\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (\u975E Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="\u59D4\u8B72\u30E1\u30BD\u30C3\u30C9\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="\u65B0\u898F\u4F5C\u6210\u30D5\u30A1\u30A4\u30EB" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="\u65B0\u898F\u30AF\u30E9\u30B9\u578B\u672C\u6587\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="\u65B0\u898F\u30A4\u30F3\u30BF\u30FC\u30D5\u30A7\u30FC\u30B9\u578B\u672C\u6587\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="\u65B0\u898F\u5217\u6319\u578B\u672C\u6587\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="\u65B0\u898F\u6CE8\u91C8\u578B\u672C\u6587\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="\u65B0\u898F catch \u30D6\u30ED\u30C3\u30AF\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">ShowDialog.errorMessage(${exception_var});\n</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F\u30E1\u30BD\u30C3\u30C9\u30FB\u30B9\u30BF\u30D6\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} \u81EA\u52D5\u751F\u6210\u3055\u308C\u305F\u30E1\u30BD\u30C3\u30C9\u30FB\u30B9\u30BF\u30D6\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u30FC\u30FB\u30B9\u30BF\u30D6\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} \u81EA\u52D5\u751F\u6210\u3055\u308C\u305F\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u30FC\u30FB\u30B9\u30BF\u30D6</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F getter \u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F setter \u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="getter \u95A2\u6570\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="setter \u95A2\u6570\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} \u30BB\u30C3\u30C8\u3059\u308B ${bare_field_name}\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u30FC\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F\u306E JavaScript \u30D5\u30A1\u30A4\u30EB\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F\u306E\u578B\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="\u5909\u6570\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="\u30AA\u30FC\u30D0\u30FC\u30E9\u30A4\u30C9\u3057\u306A\u3044\u95A2\u6570\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="\u30AA\u30FC\u30D0\u30FC\u30E9\u30A4\u30C9\u3059\u308B\u95A2\u6570\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-JSDoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="\u59D4\u8B72\u95A2\u6570\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="\u65B0\u898F\u4F5C\u6210\u30D5\u30A1\u30A4\u30EB" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="\u65B0\u898F\u30AF\u30E9\u30B9\u578B\u672C\u6587\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="\u65B0\u898F catch \u30D6\u30ED\u30C3\u30AF\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">ShowDialog.errorMessage(${exception_var});\n</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F\u95A2\u6570\u30B9\u30BF\u30D6\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} \u81EA\u52D5\u751F\u6210\u3055\u308C\u305F\u95A2\u6570\u30B9\u30BF\u30D6\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u30FC\u30FB\u30B9\u30BF\u30D6\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} \u81EA\u52D5\u751F\u6210\u3055\u308C\u305F\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u30FC\u30FB\u30B9\u30BF\u30D6</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F getter \u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F setter \u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
5+org.eclipse.jdt.ui.javadoc=true
6+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="getter \u30E1\u30BD\u30C3\u30C9\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="setter \u30E1\u30BD\u30C3\u30C9\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} \u30BB\u30C3\u30C8\u3059\u308B ${bare_field_name}\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u30FC\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F\u306E Java \u30D5\u30A1\u30A4\u30EB\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*\n * Copyright 2012 Kazuhiro Shimada\n * \n * Licensed under the Apache License, Version 2.0 (the "License"); \n * you may not use this file except in compliance with the License. \n * You may obtain a copy of the License at\n * \n *\t http\://www.apache.org/licenses/LICENSE-2.0 \n * \n * Unless required by applicable law or agreed to in writing, software \n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. \n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F\u306E\u578B\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="\u30D5\u30A3\u30FC\u30EB\u30C9\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="\u30AA\u30FC\u30D0\u30FC\u30E9\u30A4\u30C9\u3057\u306A\u3044\u30E1\u30BD\u30C3\u30C9\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="\u30AA\u30FC\u30D0\u30FC\u30E9\u30A4\u30C9\u3059\u308B\u30E1\u30BD\u30C3\u30C9\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (\u975E Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="\u59D4\u8B72\u30E1\u30BD\u30C3\u30C9\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="\u65B0\u898F\u4F5C\u6210\u30D5\u30A1\u30A4\u30EB" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="\u65B0\u898F\u30AF\u30E9\u30B9\u578B\u672C\u6587\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="\u65B0\u898F\u30A4\u30F3\u30BF\u30FC\u30D5\u30A7\u30FC\u30B9\u578B\u672C\u6587\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="\u65B0\u898F\u5217\u6319\u578B\u672C\u6587\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="\u65B0\u898F\u6CE8\u91C8\u578B\u672C\u6587\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="\u65B0\u898F catch \u30D6\u30ED\u30C3\u30AF\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">ShowDialog.errorMessage(${exception_var});\n</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F\u30E1\u30BD\u30C3\u30C9\u30FB\u30B9\u30BF\u30D6\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} \u81EA\u52D5\u751F\u6210\u3055\u308C\u305F\u30E1\u30BD\u30C3\u30C9\u30FB\u30B9\u30BF\u30D6\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u30FC\u30FB\u30B9\u30BF\u30D6\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} \u81EA\u52D5\u751F\u6210\u3055\u308C\u305F\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u30FC\u30FB\u30B9\u30BF\u30D6</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F getter \u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F setter \u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="getter \u95A2\u6570\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="setter \u95A2\u6570\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} \u30BB\u30C3\u30C8\u3059\u308B ${bare_field_name}\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u30FC\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F\u306E JavaScript \u30D5\u30A1\u30A4\u30EB\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F\u306E\u578B\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="\u5909\u6570\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="\u30AA\u30FC\u30D0\u30FC\u30E9\u30A4\u30C9\u3057\u306A\u3044\u95A2\u6570\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="\u30AA\u30FC\u30D0\u30FC\u30E9\u30A4\u30C9\u3059\u308B\u95A2\u6570\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-JSDoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="\u59D4\u8B72\u95A2\u6570\u306E\u30B3\u30E1\u30F3\u30C8" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="\u65B0\u898F\u4F5C\u6210\u30D5\u30A1\u30A4\u30EB" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="\u65B0\u898F\u30AF\u30E9\u30B9\u578B\u672C\u6587\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="false" context\="catchblock_context" deleted\="false" description\="\u65B0\u898F catch \u30D6\u30ED\u30C3\u30AF\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">ShowDialog.errorMessage(${exception_var});\n</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F\u95A2\u6570\u30B9\u30BF\u30D6\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} \u81EA\u52D5\u751F\u6210\u3055\u308C\u305F\u95A2\u6570\u30B9\u30BF\u30D6\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u30FC\u30FB\u30B9\u30BF\u30D6\u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} \u81EA\u52D5\u751F\u6210\u3055\u308C\u305F\u30B3\u30F3\u30B9\u30C8\u30E9\u30AF\u30BF\u30FC\u30FB\u30B9\u30BF\u30D6</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F getter \u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="\u4F5C\u6210\u6E08\u307F setter \u4E2D\u306E\u30B3\u30FC\u30C9" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
77 sp_cleanup.add_default_serial_version_id=true
88 sp_cleanup.add_generated_serial_version_id=false
99 sp_cleanup.add_missing_annotations=true
diff -r 9784314ce47a -r 4f7b013874c2 src/jdbcacsess2/main/MainController.java
--- a/src/jdbcacsess2/main/MainController.java Tue Feb 14 21:26:34 2012 +0900
+++ b/src/jdbcacsess2/main/MainController.java Thu Feb 16 00:52:37 2012 +0900
@@ -63,11 +63,11 @@
6363 import jdbcacsess2.sqlService.DataBaseConnection;
6464 import jdbcacsess2.sqlService.DataBaseConnectionListener;
6565 import jdbcacsess2.sqlService.DataBaseTransactionListener;
66-import jdbcacsess2.sqlService.ReferenceColumnResult;
6766 import jdbcacsess2.sqlService.SqlAsyncExecute;
6867 import jdbcacsess2.sqlService.SqlExecutedListener;
6968 import jdbcacsess2.sqlService.StringConncat;
7069 import jdbcacsess2.sqlService.dbobject.DBObject;
70+import jdbcacsess2.sqlService.dbobject.DBObjectTableColumns.DBObjectTableColumn;
7171 import jdbcacsess2.sqlService.dbobject.DBObjectTables.DBObjectTable;
7272 import jdbcacsess2.sqlService.dbobject.DBObjectsRoot;
7373 import jdbcacsess2.sqlService.dbobject.DBobjectMutableTreeTableNode;
@@ -77,6 +77,7 @@
7777 import jdbcacsess2.sqlService.exception.DbConnectIllgalStateException;
7878 import jdbcacsess2.sqlService.history.HistryTableModel;
7979 import jdbcacsess2.sqlService.history.Record;
80+import jdbcacsess2.sqlService.parse.SqlExecuteSentencies.SqlExecuteSentence;
8081
8182 import org.jdesktop.swingx.JXTreeTable;
8283 import org.jdesktop.swingx.treetable.DefaultTreeTableModel;
@@ -180,11 +181,16 @@
180181 return;
181182 }
182183
183- sqlAsyncExecute.addSqlExcutedListener(jPanelSql);
184-
185- sqlAsyncExecute.addSqlExcutedListener((SqlExecutedListener) jPanelSql.getJTable().getModel());
184+ for (SqlExecuteSentence ses : sqlAsyncExecute.getSqlExecuteSentencies()) {
185+ for (String s : ses.getSqlInputParameter().getInputItemNames()) {
186+ // TODO パラメータを設定する
187+ Jdbcacsess2.logger.fine(ses.getSqlCommand() + " " + s);
188+ }
189+ }
186190
187191 try {
192+ sqlAsyncExecute.addSqlExcutedListener(jPanelSql);
193+ sqlAsyncExecute.addSqlExcutedListener((SqlExecutedListener) jPanelSql.getJTable().getModel());
188194 sqlAsyncExecute.addSqlExcutedListener(new Record(config,
189195 jPanelSql.getDataBaseConnection().getConnectName(),
190196 jPanelSql.getDataBaseConnection().getUrl(),
@@ -682,14 +688,20 @@
682688 DBobjectMutableTreeTableNode node = (DBobjectMutableTreeTableNode) e.getPath().getLastPathComponent();
683689 DBObject dbObject = node.getDBObject();
684690
691+ // TABLEカラムの場合は親ノード(=TABLE)に書き換える
692+ if (dbObject instanceof DBObjectTableColumn) {
693+ DBobjectMutableTreeTableNode parent = (DBobjectMutableTreeTableNode) node.getParent();
694+ dbObject = parent.getDBObject();
695+ }
696+
685697 // 出力したいProperty情報を持っている時のみ表示する
686698 if (dbObject.isPropertyEnable()) {
687- JTable jTableProperty = view.getCurrentJPanelSession().getJTableProperty();
699+ JmyTable jTableProperty = view.getCurrentJPanelSession().getJTableProperty();
688700 jTableProperty.setModel(new PropertyDBObjectsTableModel(dbObject.getProperties()));
689701 }
690702
691703 // TABLE 系の時のみexportkey情報を表示する
692- JTable jTable = view.getCurrentJPanelSession().getJTableExportedKey();
704+ JmyTable jTable = view.getCurrentJPanelSession().getJTableExportedKey();
693705 if (dbObject instanceof DBObjectTable) {
694706 jTable.setModel(new PropertyExportedKeyTableModel(((DBObjectTable) dbObject).getExportedKey()));
695707 } else {
diff -r 9784314ce47a -r 4f7b013874c2 src/jdbcacsess2/sqlService/SqlAsyncExecute.java
--- a/src/jdbcacsess2/sqlService/SqlAsyncExecute.java Tue Feb 14 21:26:34 2012 +0900
+++ b/src/jdbcacsess2/sqlService/SqlAsyncExecute.java Thu Feb 16 00:52:37 2012 +0900
@@ -1,15 +1,15 @@
11 /*
22 * Copyright 2011 Kazuhiro Shimada
33 *
4- * Licensed under the Apache License, Version 2.0 (the "License");
5- * you may not use this file except in compliance with the License.
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
66 * You may obtain a copy of the License at
77 *
8- * http://www.apache.org/licenses/LICENSE-2.0
8+ * http://www.apache.org/licenses/LICENSE-2.0
99 *
10- * Unless required by applicable law or agreed to in writing, software
10+ * Unless required by applicable law or agreed to in writing, software
1111 * distributed under the License is distributed on an "AS IS" BASIS,
12- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
@@ -34,6 +34,7 @@
3434 import jdbcacsess2.sqlService.exception.DbConnectIllgalStateException;
3535 import jdbcacsess2.sqlService.parse.SqlExecuteSentencies;
3636 import jdbcacsess2.sqlService.parse.SqlExecuteSentencies.SqlExecuteSentence;
37+import jdbcacsess2.sqlService.parse.SqlInputParameter;
3738
3839 /**
3940 * SQL文を実行し、リスナーを通して処理結果を通知します。
@@ -50,7 +51,7 @@
5051 /**
5152 * SQL文の解析結果
5253 */
53- private ArrayList<SqlExecuteSentence> sqlExecuteSentencies;
54+ private final ArrayList<SqlExecuteSentence> sqlExecuteSentenceList;
5455 /**
5556 * 処理結果通知リスナーのリスト
5657 */
@@ -71,7 +72,7 @@
7172
7273 sqlExecutedListeners = Collections.synchronizedList(new ArrayList<SqlExecutedListener>());
7374
74- sqlExecuteSentencies = new SqlExecuteSentencies(sqlSentence, sentenceSeparator).getSqlExecuteSentenceList();
75+ sqlExecuteSentenceList = new SqlExecuteSentencies(sqlSentence, sentenceSeparator).getSqlExecuteSentenceList();
7576 }
7677
7778 /**
@@ -81,7 +82,7 @@
8182 */
8283 public boolean isDuplxSelect() {
8384 int cnt = 0;
84- for (SqlExecuteSentence sqlExecuteSentence : sqlExecuteSentencies) {
85+ for (SqlExecuteSentence sqlExecuteSentence : sqlExecuteSentenceList) {
8586 if (sqlExecuteSentence.getSqlCommand().equals("SELECT")) {
8687 cnt++;
8788 if (cnt == 2) {
@@ -98,7 +99,7 @@
9899 * @return SQL文の解析結果
99100 */
100101 public ArrayList<SqlExecuteSentence> getSqlExecuteSentencies() {
101- return sqlExecuteSentencies;
102+ return sqlExecuteSentenceList;
102103 }
103104
104105 /**
@@ -163,8 +164,8 @@
163164 * @throws DbConnectIllgalStateException
164165 */
165166 public SqlExecuteTask executeAsync(DataBaseConnection dataBaseConnection) throws DbConnectIllgalStateException {
166- dataBaseConnection.lockConnection(sqlExecuteSentencies.size() == 0 ? ""
167- : sqlExecuteSentencies.get(0).getSqlCommand());
167+ dataBaseConnection.lockConnection(sqlExecuteSentenceList.size() == 0 ? ""
168+ : sqlExecuteSentenceList.get(0).getSqlCommand());
168169
169170 SqlTask sqlTask = new SqlTask(dataBaseConnection);
170171 thread = new Thread(sqlTask);
@@ -183,7 +184,7 @@
183184 /**
184185 * データベース接続
185186 */
186- private DataBaseConnection dataBaseConnection;
187+ private final DataBaseConnection dataBaseConnection;
187188 /**
188189 * 実行中のPrepareStatement
189190 */
@@ -213,7 +214,7 @@
213214 */
214215 volatile private long timeMillisThreadEnd;
215216
216- private DataBaseConnectionListener changeConnection = new DataBaseConnectionListener() {
217+ private final DataBaseConnectionListener changeConnection = new DataBaseConnectionListener() {
217218
218219 @Override
219220 public void dataBaseConnectionOpened(DataBaseConnection dataBaseConnection) {
@@ -248,7 +249,7 @@
248249 // コネクションクローズ時に、スレッドの後始末を自動的に行う為、リスナー登録
249250 dataBaseConnection.addConnectionListener(changeConnection);
250251
251- for (SqlExecuteSentence sentence : sqlExecuteSentencies) {
252+ for (SqlExecuteSentence sentence : sqlExecuteSentenceList) {
252253 synchronized (this) {
253254 if (calcelFlg) {
254255 Jdbcacsess2.logger.info(" (task)canceled.");
@@ -293,7 +294,9 @@
293294 }
294295
295296 // パラメータ取り込み処理がfalseを返すまで繰り返す
296- while (sqlExecuteSentence.getSqlInputParameter().getSqlExecuteParmeter().hasNext()) {
297+ SqlInputParameter sqlInputParameter = sqlExecuteSentence.getSqlInputParameter();
298+
299+ while (sqlInputParameter.getSqlExecuteParmeter().hasNext()) {
297300 synchronized (this) {
298301 if (calcelFlg) {
299302 Jdbcacsess2.logger.info(" (task)canceled.");
@@ -302,16 +305,13 @@
302305 }
303306
304307 // パラメータ設定を呼び出す
305- Parameter parameter = sqlExecuteSentence.getSqlInputParameter().getSqlExecuteParmeter().getParameter();
308+ Parameter parameter = sqlInputParameter.getSqlExecuteParmeter().getParameter();
306309
307310 // preparedStatementのパラメータ設定
308- setParameters(sqlExecuteSentence.getSqlInputParameter().getInputItemNames(), parameter);
311+ setParameters(sqlInputParameter.getInputItemNames(), parameter);
309312
310- // SQL実行
311- boolean resultSetFlg = preparedStatement.execute();
312-
313- // 結果を受け取る方法を振り分ける
314- if (resultSetFlg) {
313+ // SQL実行し、結果により受け取る方法を振り分ける
314+ if (preparedStatement.execute()) {
315315 readResultSet();
316316 } else {
317317 rowCnt += preparedStatement.getUpdateCount();
@@ -340,13 +340,13 @@
340340 l.executNormalFinish(rowCnt);
341341 }
342342 Jdbcacsess2.logger.info(" (task)noramal end. cnt=[" + rowCnt + "] "
343- + (timeMillisThreadEnd - timeMillisThreadStart) + "ms");
343+ + (timeMillisThreadEnd - timeMillisThreadStart) + "ms");
344344 } else {
345345 for (SqlExecutedListener l : sqlExecutedListeners) {
346346 l.executeException(sqlTaskThrow);
347347 }
348348 Jdbcacsess2.logger.info(" (task)abnormal end. cnt=[" + rowCnt + "] "
349- + (timeMillisThreadEnd - timeMillisThreadStart) + "ms");
349+ + (timeMillisThreadEnd - timeMillisThreadStart) + "ms");
350350 }
351351
352352 }
@@ -362,22 +362,15 @@
362362 * KEY=パラメータリストのインデックス/VALUE=SQL型 のマップ。
363363 */
364364 private void setParameters(ArrayList<String> sqlInputItems, Parameter p)
365- throws SQLException {
365+ throws SQLException {
366366
367367 Jdbcacsess2.logger.fine(" (setParameters)VALUES=" + p.values + "SQLTYPES=" + p.sqlTypes + "");
368368
369369 if (sqlInputItems.size() != p.values.size()) {
370370 throw new IllegalArgumentException("入力パラ数が分析結果と不一致:" + "Input=" + p.values.size() + " analized="
371- + sqlInputItems);
371+ + sqlInputItems);
372372 }
373373
374- /*
375- * Parameter で設定されるのでチェックは不要 for (Entry<Integer, ConstSqlTypes> i :
376- * p.sqlTypes.entrySet()) { if (p.values.size() <= i.getKey()) {
377- * throw new IllegalArgumentException("SQLタイプのKEYが入力パラ未存在:" +
378- * "sqlTypes entry=[" + i + "]"); } }
379- */
380-
381374 for (int i = 0; i < p.values.size(); i++) {
382375 Object o = p.values.get(i);
383376 ConstSqlTypes constSqlTypes = p.sqlTypes.get(i);
@@ -524,7 +517,7 @@
524517
525518 @Override
526519 public int getCnt() {
527- return sqlExecuteSentencies.size();
520+ return sqlExecuteSentenceList.size();
528521
529522 }
530523 }// class SqlTask end
diff -r 9784314ce47a -r 4f7b013874c2 src/jdbcacsess2/sqlService/dbobject/PropertyExportedKeyTableModel.java
--- a/src/jdbcacsess2/sqlService/dbobject/PropertyExportedKeyTableModel.java Tue Feb 14 21:26:34 2012 +0900
+++ b/src/jdbcacsess2/sqlService/dbobject/PropertyExportedKeyTableModel.java Thu Feb 16 00:52:37 2012 +0900
@@ -1,15 +1,15 @@
11 /*
22 * Copyright 2011 Kazuhiro Shimada
33 *
4- * Licensed under the Apache License, Version 2.0 (the "License");
5- * you may not use this file except in compliance with the License.
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
66 * You may obtain a copy of the License at
77 *
8- * http://www.apache.org/licenses/LICENSE-2.0
8+ * http://www.apache.org/licenses/LICENSE-2.0
99 *
10- * Unless required by applicable law or agreed to in writing, software
10+ * Unless required by applicable law or agreed to in writing, software
1111 * distributed under the License is distributed on an "AS IS" BASIS,
12- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
@@ -28,66 +28,44 @@
2828 */
2929 public class PropertyExportedKeyTableModel extends AbstractTableModel {
3030 private static final long serialVersionUID = 6816351858372050538L;
31- private List<ReferenceColumnResult> exportKey;
31+ private final List<ReferenceColumnResult> exportKey;
3232
3333 public PropertyExportedKeyTableModel(List<ReferenceColumnResult> exportKey) {
3434 this.exportKey = exportKey;
3535 }
3636
37+ private final String[] header = { "PKcat", "PKschem", "PKtable", "PKname", "PKcolumn", "FKcat", "FKschem",
38+ "FKtable", "FKname", "FKcolumn", "KeySeq", "UpdateRule", "DeleteRule",
39+ "Deferrability" };
40+
3741 @Override
3842 public int getColumnCount() {
39- return 14;
43+ return exportKey.size() + 1;
4044 }
4145
4246 @Override
4347 public int getRowCount() {
44- return exportKey.size();
48+ return 14;
4549 }
4650
4751 @Override
4852 public String getColumnName(int column) {
49- switch (column) {
50- case 0:
51- return "PKcat";
52- case 1:
53- return "PKschem";
54- case 2:
55- return "PKtable";
56- case 3:
57- return "PKname";
58- case 4:
59- return "PKcolumn";
60-
61- case 5:
62- return "FKcat";
63- case 6:
64- return "FKschem";
65- case 7:
66- return "FKtable";
67- case 8:
68- return "FKname";
69- case 9:
70- return "FKcolumn";
71-
72- case 10:
73- return "KeySeq";
74-
75- case 11:
76- return "UpdateRule";
77- case 12:
78- return "DeleteRule";
79-
80- case 13:
81- return "Deferrability";
53+ if (column == 0) {
54+ return "";
8255 }
83- return "";
56+ return Integer.toHexString(column);
8457 }
8558
8659 @Override
8760 public Object getValueAt(int rowIndex, int columnIndex) {
88- ReferenceColumnResult r = exportKey.get(rowIndex);
89-
90- switch (columnIndex) {
61+
62+ if (columnIndex == 0) {
63+ return header[rowIndex];
64+ }
65+
66+ ReferenceColumnResult r = exportKey.get(columnIndex - 1);
67+
68+ switch (rowIndex) {
9169 case 0:
9270 return r.getPktableCat();
9371 case 1:
Show on old repository browser