<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$r(B
$BL@<(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>