<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: MS$B%4%7%C%/(B;color: #000000;font-size: 10pt;">$B$R$,$G$9!#(B
<div><br>
</div>
<div>$B%H%i%s%6%/%7%g%s$HO"F0$7$F$$$l$P!"<+F0$G(Bautocommit$B$O(Boff$B$K$J$k$O$:$J$N$G!"(B</div>
<div>$B$^$:$O!"%H%i%s%6%/%7%g%s$N@_Dj$r8+D>$7$F$_$F$/$@$5$$!#(B<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF361875" style="direction: ltr; "><font face="Tahoma" size="2" color="#000000"><b>$B:9=P?M(B:</b> seasar-user-bounces@ml.seasar.org [seasar-user-bounces@ml.seasar.org] $B$,<!$N?M$NBeM}$GAw?.$7$^$7$?(B: saraki@pacific-systems.co.jp [saraki@pacific-systems.co.jp]<br>
<b>$BAw?.F|;~(B:</b> 2012$BG/(B11$B7n(B6$BF|(B 11:45<br>
<b>$B08@h(B:</b> seasar-user@ml.seasar.org<br>
<b>$B7oL>(B:</b> [Seasar-user:21491] jdbc.dicon$B$K$*$1$k(BPostgreSQL$B$N(BautoCommit$B@_Dj$K$D$$$F(B<br>
</font><br>
</div>
<div></div>
<div><br>
<font size="2" face="sans-serif">$B$O$8$a$^$7$F!#9SLZ$H?=$7$^$9!#(B</font> <br>
<br>
<font size="2" face="sans-serif">PostgreSQL + S2Dao + Teeda$B$N3+H/$r$7$F$$$^$9!#(B</font> <br>
<br>
<font size="2" face="sans-serif">$BF0:n4D6-(B</font> <br>
<font size="2" face="sans-serif">jdk1.6.0_34</font> <br>
<font size="2" face="sans-serif">tomcat-6.0.35</font> <br>
<font size="2" face="sans-serif">eclipse3.4.2</font> <br>
<font size="2" face="sans-serif">Teeda 1.0.12</font> <br>
<font size="2" face="sans-serif">S2Dao 1.0.47</font> <br>
<font size="2" face="sans-serif">PostgreSQL 9.1.5</font> <br>
<br>
<font size="2" face="sans-serif">jdbc.dicon$B$G0J2<$NDL$j(BautoCommit$B$rL58z$K$7$F$$$k$N$G$9$,!"(Bupdate$BJ8$J$I$,<B9T$5$l$F$b<+F0E*$K%3%_%C%H$5$l$F$7$^$$$^$9!#(B</font>
<br>
<br>
<font size="2" face="sans-serif"> <component name="xaDataSource"</font> <br>
<font size="2" face="sans-serif"> class="org.seasar.extension.dbcp.impl.XADataSourceImpl"></font>
<br>
<font size="2" face="sans-serif"> <property name="driverClassName"></font>
<br>
<font size="2" face="sans-serif"> "org.postgresql.Driver"</font>
<br>
<font size="2" face="sans-serif"> </property></font> <br>
<font size="2" face="sans-serif"> <property name="URL"></font> <br>
<font size="2" face="sans-serif"> "jdbc:postgresql://PORTAL_IFRS_IT_DB/test"</font>
<br>
<font size="2" face="sans-serif"> </property></font> <br>
<font size="2" face="sans-serif"> <property name="user">"test"</property></font>
<br>
<font size="2" face="sans-serif"> <property name="password">"test"</property></font>
<br>
<font size="2" face="sans-serif"> <initMethod name="addProperty"></font>
<br>
<font size="2" face="sans-serif"> <arg>"autoCommit"</arg></font>
<br>
<font size="2" face="sans-serif"> <arg>"false"</arg></font>
<br>
<font size="2" face="sans-serif"> </initMethod></font> <br>
<font size="2" face="sans-serif"> </component></font> <br>
<br>
<font size="2" face="sans-serif">jdbc.dicon$B$G(BautoCommit$B$rL58z$K$9$k$K$O$I$&$7$?$i$h$$$N$G$7$g$&$+!#(B</font>
<br>
<br>
<font size="2" face="sans-serif">$B$J$*!"(BS2Dao+jdbc.dicon$B$G$O$J$/!"0J2<$NDL$j(BsetAutoCommit$B%a%=%C%I$rL@<(E*$K5-=R$9$k$H(BautoCommit$B$,L58z$K$J$j$^$7$?!#(B</font>
<br>
<br>
<font size="2" face="sans-serif"> try {</font> <br>
<font size="2" face="sans-serif"> // JDBC$B%I%i%$%P$NEPO?(B</font> <br>
<font size="2" face="sans-serif"> String driver = "org.postgresql.Driver";</font>
<br>
<font size="2" face="sans-serif"> // $B%G!<%?%Y!<%9$N;XDj(B</font> <br>
<font size="2" face="sans-serif"> String url = "jdbc:postgresql://PORTAL_IFRS_IT_DB/test";</font>
<br>
<font size="2" face="sans-serif"> String user = "test"; //$B%G!<%?%Y!<%9:n@.%f!<%6L>(B</font>
<br>
<font size="2" face="sans-serif"> String password = "test"; //$B%G!<%?%Y!<%9:n@.%f!<%6%Q%9%o!<%I(B</font>
<br>
<font size="2" face="sans-serif"> Class.forName (driver);</font> <br>
<font size="2" face="sans-serif"> // $B%G!<%?%Y!<%9$H$N@\B3(B</font> <br>
<font size="2" face="sans-serif"> Connection con = DriverManager.getConnection(url, user, password);</font>
<br>
<font size="2" face="sans-serif"> con.setAutoCommit (false);</font> <br>
<font size="2" face="sans-serif"> Statement stmt = con.createStatement ();</font>
<br>
<font size="2" face="sans-serif"> String sql = "UPDATE m_kanri_kengen SET update_dt = now() WHERE kanri_kengen_cd = 'G110'";</font>
<br>
<font size="2" face="sans-serif"> stmt.executeUpdate(sql);</font> <br>
<font size="2" face="sans-serif"> stmt.close();</font> <br>
<font size="2" face="sans-serif"> con.close();</font> <br>
<font size="2" face="sans-serif"> } catch (SQLException e) {</font> <br>
<font size="2" face="sans-serif"> System.err.println("SQL failed.");</font>
<br>
<font size="2" face="sans-serif"> e.printStackTrace ();</font> <br>
<font size="2" face="sans-serif"> } catch (ClassNotFoundException ex) {</font>
<br>
<font size="2" face="sans-serif"> ex.printStackTrace ();</font> <br>
<font size="2" face="sans-serif"> }</font> <br>
<br>
<font size="2" face="sans-serif">$B0J>e!"59$7$/$*4j$$CW$7$^$9!#(B</font></div>
</div>
</div>
</div>
</body>
</html>