[Seasar-user:3349] ライフサイクル Session の ArrayList 使用方法にて

Tohme [E-MAIL ADDRESS DELETED]
2006年 3月 9日 (木) 17:48:05 JST


$B$O$8$a$^$7$F!"(Btohme $B$H?=$7$^$9!#(B
$B8=:_(BS2JSF$B$r;H$C$F(Bweb$B%"%W%j$r:[E-MAIL ADDRESS DELETED]$7$F$$$k$N$G$9!#(B

$B%i%$%U%5%$%/%k$,(B Request $B$N(B List $B$@$1$r;HMQ$7$F$$$?$H$-$O(B
$BLdBj$"$j$^$;$s$G$7$?$,!"%i%$%U%5%$%/%k$,(B Session $B$N(B ArrayList $B$r(B
$B;HMQ$7$?$H$?$s$KF0$-$,$*$+$7$/$J$C$F:$$C$F$$$^$9!#(B
$B$I$J$?$+2<5-8=>]$N2r7hJ}K!$r$o$+$kJ}$,$$$i$C$7$c$C$?$i$465<x4j$$$?$/!#(B

$B8=>]$O!"(B
$B$"$k2hLL$G!"0lMw$N0l3g99?7$,$"$k$N$G(B Example $B$N(B ForEach2 $B$r??;w$F!"(B
$B%i%$%U%5%$%/%k(B Session $B$N(B ArrayList $B$r;HMQ$7$^$7$?!#(B
$B$9$k$H!"$=$l0JA0$^$G$KLdBj$J$/F0$$$F$$$?$=$NB>2hLL!J%i%$%U%5%$%/%k$,(B
Request $B$N(B List $B$K$h$C$F(B DB $B$H$d$j$H$j$7$F$$$k!K$GLdBj$,$G$F$-$^$7$?!#(B
$B>u67$O2<5-$NDL$j!#(B
$B-!(Binitilize $B$G$N0lMwI=<($O!"LdBj$J$/(BOK
$B-"?7$7$$%G!<%?$NDI2C!J(BInsert$B!K$b!"LdBj$J$/(BOK
$B-#(BUpdate/Delete$B$N4{B8%G!<%?$N99?7=hM}$,$G$-$J$$!#(B

$B-#$NF0$-$O!"(B
$B0lMw$NCf$N#1$D$rA*Br$7!"(BDelete$B!J(Bor Update$B!K$r<B9T$7$h$&$H$9$k$H!"(B
$B$O$MJV$5$l$F852hLL$N(B initilize() $B$,Av$C$F$7$^$$$^$9!#(B


$B4X78$"$k$N$+$OITL@$G$9$,!"JdB-$H$7$F!"(B
$B2hLL(BG1 $B$G!"%i%$%U%5%$%/%k(B Session $B$N(B ArrayList$B$r;HMQ8e$K!"(B
$B%a%K%e!<2hLL$KLa$j!"%i%$%U%5%$%/%k(B Session $B$N(B ArrayList $B$r%/%j%"!J(B.clear()$B!K$7$F$$$^$9!#(B
$B%/%j%"D>8e$K!"%V%l%$%/%]%$%s%H$rCV$$$FJQ?t$r$_$k$H%i%$%U%5%$%/%k(B Session $B$N(B
 ArrayList $B$N(B size=0 $B$G$9$,!"(BelementData $B$H$$$&9`L\$,:[E-MAIL ADDRESS DELETED]$7$?MWAG$N?t$/$i$$$"$j!"(B
$BA4$F(B null $B$K$J$C$F$$$k>uBV!#$*$=$i$/3NJ]$7$?NN0h$+$H!#(B

$B$7$+$7!"<!$K%i%$%U%5%$%/%k(B Session $B$N(B ArrayList $B$r;HMQ$7$F$J$$2hLL(BG2 $B$K$F!"(B
$B%i%$%U%5%$%/%k(B Request $B$N(B List$B$N7k2L$r0lMwI=<($O$9$k!#(B
$B!J2hLL(BG1 $B$H2hLL(BG2 $B$G(B List $B$K3JG<$7$F$$$k%/%i%9$OJL!K(B
$B$3$3$G!"(BDelete$B!J(Bor Update$B!K=hM}$r9T$&$H0U?^$KH?$7$?F0$-$r$7$^$9!#(B
$B2hLL(BG1 $B$GCj=P$7$?%G!<%?!J%i%$%U%5%$%/%k(B Session $B$N(B ArrayList$B!K$H!"(B
$B2hLL(BG2 $B$GCj=P$7$?%G!<%?!J%i%$%U%5%$%/%k(B Request $B$N(B List$B!K$H$G!"(B
$BF1$8NN0h%5%$%:$r3NJ]$7$F$$$k$_$?$$$G$9!#(B
$B$J$<$=$&;W$&$+$H$$$&M}M3$O!"2hLL(BG2 $B$G%V%l%$%/%]%$%s%HCV$$$F3NG'$7$F$_$k$H(B
$B%i%$%U%5%$%/%k(B Request $B$N(B List $B$O!"(Bsize=0 $B$G!"(B
elementData $B$H$$$&9`L\$,(B null $B$H$OI=<($5$l$F$$$^$9$,!"(B
$B2hLL(BG1 $BCj=P%G!<%??t$@$13NJ]$5$l$?>uBV$H$J$C$F$$$^$9!#(B

$B$3$l$b4X78$7$F$$$k$N$+ITL@$G$9$,!"(B
Example $B$N(B ForEach2 $B$G$O!"(BSession $B$N(B ArrayList $B$O(BSetter $B$@$1$G!"(B
$B0lMwI=<($G$-$^$9$,!";d$N$b$N$O!"(BGetter $B$b$J$$$H0lMw$,I=<($5$l$^$;$s!#(B

$B0J>e$h$m$7$/$*4j$$$$$?$7$^$9!#(B





Seasar-user メーリングリストの案内