<HTML dir=ltr><HEAD><TITLE>[Seasar-user:13029] Re: [S2JDBC]Exception$B;~$N%H%i%s%6%/%7%g%s=hM}(B</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.3268" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText72218 dir=ltr>
<DIV dir=ltr><FONT face="$B#M#S(B $B#P%4%7%C%/(B" color=#000000 size=2>$BJR2,$G$9!#(B</FONT></DIV>
<DIV dir=ltr><FONT face="$B#M#S(B $B#P%4%7%C%/(B" size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>&gt;PostgreSQL $B$G$O$=$&$$$&$3$H$O$G$-$J$$$h$&$G$9$M!%(B<BR>&gt;$B0l0U@)Ls0cH?$K$J$C$?;~E@$G%H%i%s%6%/%7%g%s$,(B<BR>&gt;$B%"%\!<%H$5$l$F$7$^$&$h$&$J$N$G!$$^$:$O(B update $B$7$F!$(B<BR>&gt;$B$=$N7k2L$,(B 0 $B7o$@$C$?$i(B insert $B$9$k$h$&$K$7$J$$$H(B<BR>&gt;$B$$$1$J$$$i$7$$!%(B<BR>&gt;int count = jdbcManager.update(employee).execute();<BR>&gt;if (count == 0) {<BR>&gt;&nbsp; jdbcManager.insert(employee).execute();<BR>&gt;}</FONT></DIV><FONT size=2></FONT></DIV>
<P><FONT size=2>$B$J$k$[$I!#$"$j$,$H$&$4$6$$$^$7$?!#(B<BR>$B6/0z$J<BAu$K$J$C$F$7$^$&$H$3$m$G$7$?!#=u$+$j$^$7$?!#(B</FONT><BR></P>
<P>
<HR tabIndex=-1>
</P>
<P><FONT face="MS UI Gothic" size=2><B>From:</B> seasar-user-bounces@ml.seasar.org $BBeM}(B Koichi Kobayashi<BR><B>Sent:</B> 2008/02/24 ($BF|(B) 8:00<BR><B>To:</B> seasar-user@ml.seasar.org<BR><B>Subject:</B> [Seasar-user:13029] Re: [S2JDBC]Exception$B;~$N%H%i%s%6%/%7%g%s=hM}(B<BR></FONT><BR></P>
<DIV>
<P><FONT size=2>$B>.NS(B (koichik) $B$G$9!%(B<BR><BR>Date:&nbsp;&nbsp;&nbsp; Sat, 23 Feb 2008 10:17:50 +0900<BR>From:&nbsp;&nbsp;&nbsp; &lt;ayumu@r.recruit.co.jp&gt;<BR>To:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;seasar-user@ml.seasar.org&gt;<BR>Subject: [Seasar-user:13020] [S2JDBC]Exception$B;~$N%H%i%s%6%/%7%g%s=hM}(B<BR><BR>&gt; $B$"$k%F!<%V%k$K(Binsert$B$7$F!"0l0U@)Ls%(%i!<$@$C$?$i!"(Bupdate$B$9$k$H(B<BR>&gt; $B$$$&$h$&$J=hM}$r9M$($F$$$^$9(B(DB$B$O(BpostgreSQL$B$rMxMQ(B)$B!#(B<BR><BR>PostgreSQL $B$G$O$=$&$$$&$3$H$O$G$-$J$$$h$&$G$9$M!%(B<BR>$B0l0U@)Ls0cH?$K$J$C$?;~E@$G%H%i%s%6%/%7%g%s$,(B<BR>$B%"%\!<%H$5$l$F$7$^$&$h$&$J$N$G!$$^$:$O(B update $B$7$F!$(B<BR>$B$=$N7k2L$,(B 0 $B7o$@$C$?$i(B insert $B$9$k$h$&$K$7$J$$$H(B<BR>$B$$$1$J$$$i$7$$!%(B<BR><BR>int count = jdbcManager.update(employee).execute();<BR>if (count == 0) {<BR>&nbsp; jdbcManager.insert(employee).execute();<BR>}<BR><BR>&gt; $B!Z$&$^$/$$$C$?$h$&$K$_$($k%1!<%9![(B<BR>($BN,(B)<BR>&gt;
  $B!Z<ALd![(B<BR>&gt; $B$3$l$GI=LL>e!"$&$^$/F0:n$7$?$h$&$K8+$($F$O$$$k$N$G$9$,!"$3$N<BAuJ}K!$G(B<BR>&gt; $B@5$7$$$b$N$G$7$g$&$+(B<BR><BR>$B$3$l$@$H99?7$@$1$,FHN)$7$?%H%i%s%6%/%7%g%s$K(B<BR>$B$J$C$F$7$^$&$N$G!$JL$N=hM}$GLdBj$,$"$C$?$H$-$K(B<BR>$BA4BN$H$7$F%m!<%k%P%C%/$G$-$J$/$J$j$^$9!%(B<BR><BR><BR>--<BR>&lt;component name="koichik"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;property name="fullName"&gt;"Koichi Kobayashi"&lt;/property&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;property name="email"&gt;"koichik@improvement.jp"&lt;/property&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;property name="blog"&gt;"<A href="http://d.hatena.ne.jp/koichik">http://d.hatena.ne.jp/koichik</A>"&lt;/property&gt;<BR>&lt;/component&gt;<BR><BR>_______________________________________________<BR>Seasar-user mailing list<BR>Seasar-user@ml.seasar.org<BR><A href="https://ml.seasar.org/mailman/listinfo/seasar-user">https://ml.seasar.org/mailman/listinfo/seasar-user</A><BR></FONT></P></DIV></BODY></HTML>