<br><font size=2 face="sans-serif">$BIMED$G$9!#(B</font>
<br>
<br><font size=2 face="sans-serif">$B$R$,$5$s!"$;$H$5$s!"$*JV;v$"$j$,$H$&$4$6$$$^$9!#(B</font>
<br>
<br><font size=2 face="sans-serif">$B2<5-$N$h$&$K<BAu$7$F8!>Z$7$F$_$?$N$G$9$,!"(BSQL$B$N(BWhere$B6g$O(BQUERY$B%"%N%F!<%7%g%s$G(B</font>
<br><font size=2 face="sans-serif">$B;XDj$7$F$$$k(BSOKO_CD$B$7$+;XDj$5$l$^$;$s$G$7$?!#(B
</font>
<br>
<br><font size=2 face="sans-serif">-------------------------------------------------------------------------</font>
<br><font size=2 face="sans-serif">Dao$B%$%s%?%U%'!<%9(B</font>
<br>
<br><font size=2 face="sans-serif">public static final String selectByPrimaryKeyForUpdate_QUERY
= "SOKO_CD = /*stock.soko_cd*/ FOR UPDATE";</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif">public static final String selectByPrimaryKeyForUpdate_ARGS
= "stock";</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif">public Stock selectByPrimaryKeyForUpdate(Stock
stock);</font>
<br>
<br><font size=2 face="sans-serif">-------------------------------------------------------------------------</font>
<br>
<br><font size=2 face="sans-serif">-------------------------------------------------------------------------</font>
<br><font size=2 face="sans-serif">$B8F$S=P$7B&(B</font>
<br>
<br><font size=2 face="sans-serif">Stock stock = new Stock();</font>
<br><font size=2 face="sans-serif">stock.setSoko_cd(sokoCd);</font>
<br><font size=2 face="sans-serif">stock.setShohin_cd(shohinCd);</font>
<br><font size=2 face="sans-serif">stock = stockDao.selectByPrimaryKeyForUpdate(stock);</font>
<br><font size=2 face="sans-serif">-------------------------------------------------------------------------</font>
<br>
<br><font size=2 face="sans-serif">$B2?$+!"B>$K$$$$J}K!$,$4$6$$$^$7$?$i!"8f65<xD:$1$l$P9,$$$G$9!#(B</font>
<br>
<br><font size=2 face="sans-serif">$B0J>e!"59$7$/$*4j$$CW$7$^$9!#(B</font>
<br>
<br><font size=2 face="sans-serif">$BIMED(B</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Yasuo Higa <higa@isid.co.jp></b>
</font>
<br><font size=1 face="sans-serif">$BAw?.<T(B: seasar-user-bounces@ml.seasar.org</font>
<p><font size=1 face="sans-serif">2006/12/28 18:06</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">seasar-user@ml.seasar.org
$B$X(B<br>
$BJV?.$7$F$/$@$5$$(B</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">$B08@h(B</font></div>
<td valign=top><font size=1 face="sans-serif">seasar-user@ml.seasar.org</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">$B7oL>(B</font></div>
<td valign=top><font size=1 face="sans-serif">[Seasar-user:5635] Re: [S2Dao]select
$BJ8$G(BForUpdate$B$r;HMQ$9$k>l9g$K4X$7$F(B</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>$B$R$,$G$9!#(B<br>
<br>
> $B$;$H$"$:$5$G$9!#(B<br>
> <br>
> On Thu, 28 Dec 2006 15:23:25 +0900<br>
> hamada_kenichi@itfrontier.co.jp wrote:<br>
> <br>
> > >public static final String select_QUERY = "ID = /*no*/
FOR UPDATE";<br>
> > <br>
> > >public List select(int no);<br>
> > <br>
> > $B>e5-$N>l9g!"0z?t$K;XDj$7$?$$$b$N$,JQ$o$k$H!"?7$?$K%a%=%C%I$,I,MW$H$J$j$^$9(B<br>
> > $B!#(B<br>
> > ($BNc!'(Bselect(int no, Strint name))<br>
> <br>
> $B@596K!$H$7$F$O(BSQL$B%U%!%$%k$r5-=R$9$k$3$H$K$J$k$G$7$g$&!#(B<br>
> <br>
$B$?$V$s!"(B<br>
public static final String select_QUERY = "ID = /*entity.no*/ FOR
UPDATE";<br>
public static final String select_ARGS = "entity";<br>
public List select(Entity entity)$B!((B<br>
$B$G$$$1$k$N$G$O$J$$$+$H;W$$$^$9!#(B<br>
<br>
Yasuo Higa<br>
The Seasar Project<br>
_______________________________________________<br>
Seasar-user mailing list<br>
Seasar-user@ml.seasar.org<br>
https://ml.seasar.org/mailman/listinfo/seasar-user<br>
</tt></font>
<br>