<font size=2 face="sans-serif">$BCfB<MM(B</font>
<br>
<br><font size=2 face="sans-serif">$B$*@$OC$K$J$C$F$*$j$^$9!#(B</font>
<br><font size=2 face="sans-serif">$B%"%$!&%F%#!&%U%m%s%F%#%"$N@>B<$G$9!#(B</font>
<br>
<br><font size=2 face="sans-serif">$B$42sEz$"$j$,$H$&$4$6$$$^$7$?!#(B</font>
<br>
<br><font size=2 face="sans-serif">SQL$BJ8H/9T%?%$%_%s%0$K$D$$$F!"N;2r$7$^$7$?!#(B</font>
<br>
<br><font size=2 face="sans-serif">$B$^$?!"EvJ}$N%"%W%j%1!<%7%g%s$G$O!"0J2<$N(BDao$B$K$h$C$F!"(B</font>
<br><font size=2 face="sans-serif">$B<B9T$9$k%a%=%C%I$,J,$+$l$k$HG'<1$$$?$7$^$7$?!#(B</font>
<br>
<br><font size=3 face="sans-serif">$B!&(BJavaBeans$B$K3JG<$5$l$?CM$+$i(BSQL$BJ8$r<+F0@8@.$9$k(BDao
</font>
<br><font size=3 face="sans-serif"> $B2<5-(Bd)
$B$KBP1~$7$^$9!#(B</font>
<br><font size=3 face="sans-serif"> DB$B%F!<%V%k$N%+%i%`L>$KBP1~$7$F$$$k%W%m%Q%F%#$r;}$C$F$$$^$9!#(B</font>
<br><font size=3 face="sans-serif"> </font><font size=3 color=blue face="sans-serif"><b>$B"*(BgetColumns$B!"(BgetPrimaryKeys$B$NN>J}$r<B9T$9$k!#(B</b></font><font size=3 face="sans-serif"><br>
$B!&30It(BSQL$B%U%!%$%k$K$h$C$F(BSQL$BJ8$rH/9T$9$k(BDao </font>
<br><font size=3 face="sans-serif"> $B2<5-(Ba)$B$C$^$?$O(Bb)
$B$KBP1~$7$^$9!#(B</font>
<br><font size=3 face="sans-serif"> $BMW7o$K$h$j!"30It%U%!%$%kFb$KF0E*(BSQL$BJ8$,F~$j$^$9!#(B</font>
<br><font size=3 face="sans-serif"> </font><font size=3 color=blue face="sans-serif"><b>$B"*(BgetColumns$B$N$_<B9T$9$k!#(B</b></font>
<br>
<br><font size=2 face="sans-serif">dao.dicon$B$NJQ99$K$D$$$F$b!">pJs$"$j$,$H$&$4$6$$$^$9!#(B</font>
<br><font size=2 face="sans-serif">$B;29M$K$5$;$F$$$?$@$-$^$9!#(B</font>
<br>
<br><font size=2 face="sans-serif">$B$h$m$7$/$*4j$$$7$^$9!#(B</font>
<br><font size=2 face="sans-serif">-------------------------------------------------------<br>
$B3t<02q<R!!%"%$!&%F%#!&%U%m%s%F%#%"(B<br>
$B@>B<!!M&?M(B<br>
----------------------------------------------------<br>
<br>
</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">$BAw?.85(B:
</font><font size=1 face="sans-serif">Toshihiro Nakamura
<toshihiro.nakamura@gmail.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">$B08@h(B:
</font><font size=1 face="sans-serif">seasar-user@ml.seasar.org</font>
<br><font size=1 color=#5f5f5f face="sans-serif">$BF|IU(B:
</font><font size=1 face="sans-serif">2013/07/04 23:32</font>
<br><font size=1 color=#5f5f5f face="sans-serif">$B7oL>(B:
</font><font size=1 face="sans-serif">[Seasar-user:21642]
Re: S2Dao$B$,(BDB$B%a%?%G!<%?<hF@;~$KH/9T$7$F$$$k$H;W$o$l$k(BSQL$BJ8$K$D$$$F(B</font>
<br><font size=1 color=#5f5f5f face="sans-serif">$BAw?.<T(B:
</font><font size=1 face="sans-serif">seasar-user-bounces@ml.seasar.org</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=3 face="sans-serif">$BCfB<(B(taedium)$B$G$9!#(B</font>
<br>
<br><font size=3 face="sans-serif">$B@h$[$I$N%a!<%k$G!"(B</font>
<br><font size=2 face="Arial">java.sql.DatabaseMetaData$B7PM3$N(BDB$B%"%/%;%9$,H/@8$9$k>r7o$K$D$$$F(B</font>
<br><font size=3 face="sans-serif">$B$^$A$,$C$?$3$H$r8@$C$F$7$^$$$^$7$?!#(B</font>
<br><font size=3 face="sans-serif">$BD{@5$5$;$F$/$@$5$$!#(B</font>
<br>
<br><font size=3 face="sans-serif">getColumns$B$O!"(Ba)$B!"(Bb)$B!"(Bc)$B!"(Bd)$B$9$Y$F$N%1!<%9$G8F$S=P$5$l$^$9!#(B</font>
<br><font size=3 face="sans-serif">getPrimaryKeys$B$O!"(Bd)$B$N%1!<%9$@$1$G8F$S=P$5$l$^$9!#(B</font>
<br><font size=3 face="sans-serif"><br>
</font>
<br><font size=3 face="sans-serif">2013$BG/(B7$B7n(B4$BF|(B 21:47 Toshihiro Nakamura
<</font><a href=mailto:toshihiro.nakamura@gmail.com target=_blank><font size=3 color=blue face="sans-serif"><u>toshihiro.nakamura@gmail.com</u></font></a><font size=3 face="sans-serif">>:</font>
<br><font size=3 face="sans-serif">$BCfB<(B(taedium)$B$G$9!#(B</font>
<br>
<br><font size=3 face="sans-serif">> $B!&Ev3:$N(BSQL$BJ8$O!"(BDB$B@\B3;~$N%a%?%G!<%?<hF@$N$?$a$K!"(BS2Dao$B$H(BDB$B$N%I%i%$%P$K$h$C$F(B
<br>
>$B!!H/9T$5$l$F$$$k$H$$$&G'<1$GLdBj$J$$$+(B </font>
<br>
<br><font size=3 face="sans-serif">$B$O$$!#(B</font>
<br><font size=3 face="sans-serif">$B$=$l$>$l!"(Bjava.sql.DatabaseMetaData$B%/%i%9$N0J2<$N%a%=%C%I$N8F$S=P$7$KBP1~$7$F$$$^$9!#(B</font>
<br><font size=3 face="sans-serif">- getPrimaryKeys</font>
<br><font size=3 face="sans-serif">- getColumns</font>
<br>
<br><font size=3 face="sans-serif">> $B!&Ev3:$N(BSQL$BJ8$NH/9T2s?t$r8+@Q$b$k7W;;<0$J$I$O$"$k$+(B
<br>
> $B!&Ev3:$N(BSQL$BJ8$NH/9T%?%$%_%s%0!"%H%j%,!<!"$=$NB>5,B'@-$J$I$O$"$k$+(B
</font>
<br>
<br><font size=3 face="sans-serif">$B5,B'@-$O$"$j$^$9!#(B</font>
<br><font size=3 face="sans-serif">$B%=!<%9%3!<%I$rDI$$$+$1$F$_$^$7$?!#(B</font>
<br><font size=3 face="sans-serif">$B$?$@$7!"Bg$^$+$J>pJs$@$H;W$C$F$/$@$5$$!#(B</font>
<br>
<br><font size=3 face="sans-serif">getColumns$B$O0J2<$NBP>]$4$H$K8F$P$l$^$9!#(B</font>
<br><font size=3 face="sans-serif">a) Dao$B%a%=%C%I$N%Q%i%a!<%?$KEP>l$9$k%F!<%V%k$KBP1~$7$J$$(BJavaBeans$B!J(BSQL$B$r<+F0@8@.$9$k>l9g!K(B</font>
<br><font size=3 face="sans-serif">b) Dao$B%a%=%C%I$NLa$jCM$KEP>l$9$k%F!<%V%k$KBP1~$7$J$$(BJavaBeans</font>
<br><font size=3 face="sans-serif">c) </font><font size=2 color=#4f4f4f face="sans-serif">EntityManager$B$N3F<o%a%=%C%I$NBh(B1$B0z?t$KEP>l$9$k(B</font><font size=3 face="sans-serif">JavaBeans</font>
<br>
<br><font size=3 face="sans-serif">getPrimaryKeys$B$O>e5-$K2C$(0J2<$NBP>]$4$H$K8F$P$l$^$9(B</font>
<br><font size=3 face="sans-serif">d) Dao$B%/%i%9$KBP1~$9$k(BJavaBeans$B!J%j%l!<%7%g%s%7%C%W$,$"$k>l9g$O$=$N(BJavaBeans$B$b!K(B</font>
<br>
<br><font size=3 face="sans-serif">a)$B$H(Bd)$B$O(BDao$B$N=i4|2=;~$K0lEY$@$18F$P$l$^$9!#(B</font>
<br><font size=3 face="sans-serif">b)$B$d(Bc)$B$N(BJavaBeans$B$K$D$$$F$O(BDB$B%"%/%;%9$N7k2L$,%-%c%C%7%e$5$l$k$?$a!"(B</font>
<br><font size=3 face="sans-serif">$BF1$8(BJavaBeans$B$,$9$G$K=hM}$5$l$F$$$k>l9g$K$O(BDB$B%"%/%;%9$O9T$o$l$^$;$s!#(B</font>
<br>
<br><font size=3 face="sans-serif">$B$b$C$H>\:Y$J>r7o$rGD0.$9$k$K$O!"%m%0$r;E9~$`$N$,$$$$$+$H;W$$$^$9!#(B</font>
<br><font size=3 face="sans-serif">S2Dao$B$N(BPropertyTypeFactoryImpl$B%/%i%9$N<!$N%a%=%C%I$,>e=R$7$?(BDatabaseMetaData$B%/%i%9$N(B</font>
<br><font size=3 face="sans-serif">2$B$D$N%a%=%C%I$KBP1~$7$^$9!#(B</font>
<br><font size=3 face="sans-serif">- setupPrimaryKey</font>
<br><font size=3 face="sans-serif">- getColumns</font>
<br><font size=3 face="sans-serif">PropertyTypeFactoryImpl$B$N%S%k%@$r(Bdao.dicon$B$GJQ99$G$-$^$9!#(B</font>
<br>
<br><font size=3 face="sans-serif">$B$J$*!"@_Dj$r%+%9%?%^%$%:$7$F%"%N%F!<%7%g%s$rIUM?$9$l$P(B</font>
<br><font size=3 face="sans-serif">DatabaseMetaData$B$r;H$C$?(BDB$B%"%/%;%9$r$J$/$9$3$H$,$G$-$^$9!#(B</font>
<br><a href=http://s2dao.seasar.org/ja/daoDicon.html#customizationByComponent target=_blank><font size=3 color=blue face="sans-serif"><u>http://s2dao.seasar.org/ja/daoDicon.html#customizationByComponent</u></font></a>
<br>
<br>
<br><font size=3 face="sans-serif">2013$BG/(B7$B7n(B4$BF|(B 16:45 <</font><a href=mailto:nishimura_hayato@itfrontier.co.jp target=_blank><font size=3 color=blue face="sans-serif"><u>nishimura_hayato@itfrontier.co.jp</u></font></a><font size=3 face="sans-serif">>:</font>
<br><font size=1 face="sans-serif">seasar-user</font><font size=3 face="sans-serif">$B$N$_$J$5$^(B
<br>
<br>
$B=i$a$FEj9F$5$;$F$$$?$@$-$^$9!#(B <br>
$B3t<02q<R%"%$!&%F%#!&%U%m%s%F%#%"$N@>B<$H?=$7$^$9!#(B
<br>
<br>
$B8=:_!"0J2<$N(BS2$B@=IJ!"(BAP$B%5!<%P!"(BDB$B$rMxMQ$7$F!"(B <br>
Java$B$H(BLinux$B%7%'%k$G%P%C%A%"%W%j%1!<%7%g%s$N3+H/$r9T$C$F$$$^$9!#(B
<br>
<br>
$B!c(BAP$B%5!<%P!d(B <br>
Weblogic Server 10.3.6.0 <br>
<br>
$B!c(BDB$B!d(B <br>
Oracle Database 11g Express Edition <br>
<br>
$B!c(BS2$B4XO"@=IJ!d(B <br>
s2-dao-1.0.49 <br>
s2-extension-2.4.40 <br>
s2-framework-2.4.40 <br>
s2-tiger-2.4.39 <br>
<br>
$B%"%W%j%1!<%7%g%s$N%F%9%HCf$K!"(BDB$B$KBP$7$FH/9T$5$l$k(BSQL$BJ8$r4F;k$7$F$$$?$H$3$m!"(B
<br>
S2Container$B=i4|2=!A(BDao$B<B9T$N4V$K!"(B <br>
DB$B$KBP$7$F0J2<(B2$B<oN`$N(BSQL$BJ8$,H/9T$5$l$F$$$k$3$H$r3NG'$7$^$7$?!#(B
<br>
$B"-(B <br>
$B!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\(B
<br>
$B!&%F!<%V%k$N@)Ls>pJs$r<hF@$7$F$$$k$H;W$o$l$k(BSQL$BJ8(B
<br>
SELECT NULL AS table_cat, <br>
c.owner AS table_schem, <br>
c.table_name, <br>
c.column_name, <br>
c.position AS key_seq, <br>
c.constraint_name AS pk_name <br>
FROM all_cons_columns c, all_constraints k <br>
WHERE k.constraint_type = 'P' <br>
AND k.table_name = :1 <br>
AND k.owner like :2 escape '/' <br>
AND k.constraint_name = c.constraint_name <br>
AND k.table_name = c.table_name <br>
AND k.owner = c.owner <br>
ORDER BY column_name <br>
<br>
$B!&%F!<%V%k$N%+%i%`>pJs$r<hF@$7$F$$$k$H;W$o$l$k(BSQL$BJ8(B
<br>
SELECT NULL AS table_cat, <br>
t.owner AS table_schem, <br>
t.table_name AS table_name, <br>
t.column_name AS column_name, <br>
DECODE (t.data_type, 'CHAR', 1, 'VARCHAR2',
12, 'NUMBER', 3, <br>
'LONG',
-1, 'DATE', 91, 'RAW', -3, 'LONG RAW', -4, <br>
'BLOB',
2004, 'CLOB', 2005, 'BFILE', -13, 'FLOAT', 6, <br>
'TIMESTAMP(6)',
93, 'TIMESTAMP(6) WITH TIME ZONE', -101, <br>
'TIMESTAMP(6)
WITH LOCAL TIME ZONE', -102, <br>
'INTERVAL
YEAR(2) TO MONTH', -103, <br>
'INTERVAL
DAY(2) TO SECOND(6)', -104, <br>
'BINARY_FLOAT',
100, 'BINARY_DOUBLE', 101, <br>
1111) <br>
AS data_type,
<br>
t.data_type AS type_name, <br>
DECODE (t.data_precision, null, t.data_length,
t.data_precision) <br>
AS column_size,
<br>
0 AS buffer_length, <br>
t.data_scale AS decimal_digits, <br>
10 AS num_prec_radix, <br>
DECODE (t.nullable, 'N', 0, 1) AS nullable,
<br>
NULL AS remarks, <br>
t.data_default AS column_def, <br>
0 AS sql_data_type, <br>
0 AS sql_datetime_sub, <br>
t.data_length AS char_octet_length,
<br>
t.column_id AS ordinal_position, <br>
DECODE (t.nullable, 'N', 'NO', 'YES')
AS is_nullable <br>
FROM all_tab_columns t <br>
WHERE t.owner LIKE :1 ESCAPE '/' <br>
AND t.table_name LIKE :2 ESCAPE '/' <br>
AND t.column_name LIKE :3 ESCAPE '/' <br>
<br>
ORDER BY table_schem, table_name, ordinal_position <br>
$B!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\!\(B
<br>
<br>
$B2<5-(BURL$B$NJ}K!$r$b$H$K!"(BJDBC$B@\B3;~$N%G%P%C%0%m%0$r=PNO$7!"(B
<br>
$B%G%P%C%0%m%0$H%?%$%_%s%0!"%"%W%j%1!<%7%g%s$,=PNO$7$F$$$k%m%0$N(BDao$B<B9T$N%?%$%_%s%0$rHf3S$7$^$7$?!#(B
</font><font size=3 color=blue face="sans-serif"><u><br>
</u></font><a href="http://otndnld.oracle.co.jp/document/products/oracle11g/111/doc_dvd/java.111/E05720-02/diagnose.htm" target=_blank><font size=3 color=blue face="sans-serif"><u>http://otndnld.oracle.co.jp/document/products/oracle11g/111/doc_dvd/java.111/E05720-02/diagnose.htm</u></font></a><font size=3 face="sans-serif">
<br>
<br>
$BBg$-$/J,$1$F0J2<(B2$B<oN`$N(BDao$B$,$"$j$^$9$,!"0J2<$N<oJL$K4X78$J$/!"(B
<br>
SQL$BJ8$,H/9T$5$l$F$$$k(BDao$B!"H/9T$5$l$F$$$J$$(BDao$B$,$"$j$^$9!#(B
<br>
$B!&(BJavaBeans$B$K3JG<$5$l$?CM$+$i(BSQL$BJ8$r<+F0@8@.$9$k(BDao <br>
$B!&30It(BSQL$B%U%!%$%k$K$h$C$F(BSQL$BJ8$rH/9T$9$k(BDao <br>
<br>
$BK\%a!<%k$K$F!"0J2<$NE@$K$D$$$F$4B8CN$NJ}$,$$$i$C$7$c$$$^$7$?$i!"(B
<br>
$B$I$&$+$465<($$$?$@$-$?$/;W$$$^$9!#(B <br>
$B!&Ev3:$N(BSQL$BJ8$O!"(BDB$B@\B3;~$N%a%?%G!<%?<hF@$N$?$a$K!"(BS2Dao$B$H(BDB$B$N%I%i%$%P$K$h$C$F(B
<br>
$B!!H/9T$5$l$F$$$k$H$$$&G'<1$GLdBj$J$$$+(B <br>
$B!&Ev3:$N(BSQL$BJ8$NH/9T2s?t$r8+@Q$b$k7W;;<0$J$I$O$"$k$+(B
<br>
$B!&Ev3:$N(BSQL$BJ8$NH/9T%?%$%_%s%0!"%H%j%,!<!"$=$NB>5,B'@-$J$I$O$"$k$+(B
<br>
<br>
$B$h$m$7$/$*4j$$$7$^$9!#(B <br>
-------------------------------------------------------<br>
$B3t<02q<R!!%"%$!&%F%#!&%U%m%s%F%#%"(B<br>
$B@>B<!!M&?M(B<br>
----------------------------------------------------<br>
<br>
</font>
<br><font size=3 face="sans-serif">_______________________________________________<br>
Seasar-user mailing list</font><font size=3 color=blue face="sans-serif"><u><br>
</u></font><a href="mailto:Seasar-user@ml.seasar.org" target=_blank><font size=3 color=blue face="sans-serif"><u>Seasar-user@ml.seasar.org</u></font></a><font size=3 color=blue face="sans-serif"><u><br>
</u></font><a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target=_blank><font size=3 color=blue face="sans-serif"><u>https://ml.seasar.org/mailman/listinfo/seasar-user</u></font></a><font size=3 face="sans-serif"><br>
</font>
<br><font size=3 color=#8f8f8f face="sans-serif"><br>
</font>
<br>
<br><font size=3 color=#8f8f8f face="sans-serif">-- <br>
Toshihiro Nakamura </font>
<br><font size=3 face="sans-serif"><br>
</font>
<br>
<br><font size=3 face="sans-serif">-- <br>
Toshihiro Nakamura </font><tt><font size=2>_______________________________________________<br>
Seasar-user mailing list<br>
Seasar-user@ml.seasar.org<br>
</font></tt><a href="https://ml.seasar.org/mailman/listinfo/seasar-user"><tt><font size=2>https://ml.seasar.org/mailman/listinfo/seasar-user</font></tt></a><tt><font size=2><br>
</font></tt>
<br>