• R/O
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision90 (tree)
Time2015-08-23 14:59:02
Authort_nakayama1971

Log Message

(empty log message)

Change Summary

Incremental Difference

--- trunk/framework/pjCom/src/project/common/EmailArticle.java (revision 89)
+++ trunk/framework/pjCom/src/project/common/EmailArticle.java (revision 90)
@@ -33,8 +33,6 @@
3333
3434 import org.apache.logging.log4j.LogManager;
3535
36-import project.common.master.AppConfig;
37-
3836 import com.sun.mail.smtp.SMTPAddressFailedException;
3937 import com.sun.mail.smtp.SMTPAddressSucceededException;
4038
@@ -46,6 +44,7 @@
4644 import core.exception.ThrowableUtil;
4745 import core.util.ArrayUtil;
4846 import core.util.MojiUtil;
47+import project.common.master.AppConfig;
4948
5049 /**
5150 * メール送信クラス
@@ -446,8 +445,9 @@
446445 */
447446 private void setMailCtrl(final String id, final Connection conn) {
448447 String query = QueryUtil.getSqlFromFile("SelectMailCtl", this.getClass());
449- try (PreparedStatement psmt =
450- QueryUtil.statementReadonly(conn, query, Collections.singletonMap("CtlId", id))) {
448+ try (PreparedStatement psmt = QueryUtil.createStatement(
449+ query, Collections.singletonMap("CtlId", id),
450+ Jdbc.wrap(conn)::readonlyStatement)) {
451451 try (ResultSet rs = psmt.executeQuery()) {
452452 if (rs.next()) {
453453 this.subject = rs.getString("MAIL_SUBJECT_NAME");
@@ -472,8 +472,9 @@
472472 private void setMailText(final String id, final Connection conn) {
473473
474474 String query = QueryUtil.getSqlFromFile("SelectMailText", this.getClass());
475- try (PreparedStatement psmt =
476- QueryUtil.statementReadonly(conn, query, Collections.singletonMap("CtlId", id))) {
475+ try (PreparedStatement psmt = QueryUtil.createStatement(
476+ query, Collections.singletonMap("CtlId", id),
477+ Jdbc.wrap(conn)::readonlyStatement)) {
477478 List<String> list = new ArrayList<>();
478479 try (ResultSet rs = psmt.executeQuery()) {
479480 while (rs.next()) {
--- trunk/framework/pjCom/src/project/common/master/AppConfigImpl.java (revision 89)
+++ trunk/framework/pjCom/src/project/common/master/AppConfigImpl.java (revision 90)
@@ -15,7 +15,6 @@
1515 import common.db.jdbc.Jdbc;
1616 import common.master.IntervalTimer.IntervalCache;
1717 import common.sql.QueryUtil;
18-
1918 import core.exception.PhysicalException;
2019 import core.exception.ThrowableUtil;
2120 import core.util.ArrayUtil;
@@ -198,8 +197,9 @@
198197
199198 try (Jdbc conn = JdbcSource.getConnection()) {
200199 String query = QueryUtil.getSqlFromFile(this.getClass().getName());
201- try (PreparedStatement psmt = QueryUtil.statementReadonly(
202- conn, query, Collections.singletonMap("FunctionId", id))) {
200+ try (PreparedStatement psmt = QueryUtil.createStatement(
201+ query, Collections.singletonMap("FunctionId", id),
202+ Jdbc.wrap(conn)::readonlyStatement)) {
203203 String kid = null;
204204 String kst = null;
205205 List<String> value = new ArrayList<>();
--- trunk/framework/pjCom/src/project/common/master/MsgImpl.java (revision 89)
+++ trunk/framework/pjCom/src/project/common/master/MsgImpl.java (revision 90)
@@ -19,7 +19,6 @@
1919 import common.db.jdbc.Jdbc;
2020 import common.master.IntervalTimer.IntervalCache;
2121 import common.sql.QueryUtil;
22-
2322 import core.config.Env;
2423 import core.config.Factory;
2524 import core.exception.PhysicalException;
@@ -309,8 +308,9 @@
309308 */
310309 private Map<String, String> getMessage(final Connection conn, final String code) {
311310 String query = QueryUtil.getSqlFromFile("SelectMessage", this.getClass());
312- try (PreparedStatement psmt = QueryUtil.statementReadonly(
313- conn, query, Collections.singletonMap("MsgId", code))) {
311+ try (PreparedStatement psmt = QueryUtil.createStatement(
312+ query, Collections.singletonMap("MsgId", code),
313+ Jdbc.wrap(conn)::readonlyStatement)) {
314314 return getMessage(psmt);
315315 } catch (final SQLException ex) {
316316 ThrowableUtil.error(ex);
--- trunk/framework/pjCom/src/project/common/db/DBMetaDataImpl.java (revision 89)
+++ trunk/framework/pjCom/src/project/common/db/DBMetaDataImpl.java (revision 90)
@@ -16,8 +16,8 @@
1616 import java.util.concurrent.atomic.AtomicReference;
1717
1818 import common.db.JdbcSource;
19+import common.db.jdbc.Jdbc;
1920 import common.sql.QueryUtil;
20-
2121 import core.exception.PhysicalException;
2222 import core.exception.ThrowableUtil;
2323
@@ -193,8 +193,9 @@
193193 private String getComment(final Connection conn,
194194 final String table) throws SQLException {
195195 String query = QueryUtil.getSqlFromFile("SelectTable", this.getClass());
196- try (PreparedStatement psmt = QueryUtil.statementReadonly(
197- conn, query, Collections.singletonMap("Relname", table))) {
196+ try (PreparedStatement psmt = QueryUtil.createStatement(
197+ query, Collections.singletonMap("Relname", table),
198+ Jdbc.wrap(conn)::readonlyStatement)) {
198199 try (ResultSet rs = psmt.executeQuery()) {
199200 if (rs.next()) {
200201 return rs.getString("COMMENT");
@@ -219,8 +220,8 @@
219220 map.put("Attname", col);
220221
221222 String query = QueryUtil.getSqlFromFile("SelectComment", this.getClass());
222- try (PreparedStatement psmt =
223- QueryUtil.statementReadonly(conn, query, map)) {
223+ try (PreparedStatement psmt = QueryUtil.createStatement(
224+ query, map, Jdbc.wrap(conn)::readonlyStatement)) {
224225 try (ResultSet rs = psmt.executeQuery()) {
225226 if (rs.next()) {
226227 return rs.getString("COMMENT");