You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by tm...@apache.org on 2008/01/05 09:25:38 UTC

svn commit: r609101 [25/26] - in /db/derby/docs/trunk: ./ src/ja_JP/ src/ja_JP/ref/

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqljrenamecolumnstatement.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqljrenamecolumnstatement.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqljrenamecolumnstatement.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqljrenamecolumnstatement.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+<reference id="rrefsqljcolumnstatements" xml:lang="en-us">
+    <title>RENAME COLUMN 文</title>
+<shortdesc>RENAME COLUMN 文で表にある列の名前を変更できます。</shortdesc>
+<prolog><metadata>
+<keywords><indexterm>RENAME COLUMN statement</indexterm>
+<indexterm><indexterm>SQL statements</indexterm>RENAME COLUMN</indexterm>
+<indexterm><indexterm>columns</indexterm>renaming</indexterm>
+</keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>RENAME COLUMN文により全てのスキーマにある既存表の既存列の名前を変更できます。(<i>SYS</i>のスキーマを除きます。)</p>
+<p>列の名前を変えることができるのは、データベースの所有者あるいは表の所有者のみです。</p>
+<p>表への他の定義変更は可能です。詳細は、<xref href="rrefsqlj81859.dita#rrefsqlj81859"></xref>を参照してください。</p>
+</section>
+<refsyn><title>構文</title>
+    <codeblock><b>RENAME COLUMN <i><xref href="rreftablename.dita">表名</xref></i>.<i><xref href="rrefsimplecolumnname.dita">単純列名</xref></i> TO <i><xref href="rrefsimplecolumnname.dita">単純列名</xref></i></b></codeblock>
+</refsyn>
+<example id="renamecolumnexamples">
+<title>例</title>
+<p><i>employee</i>という表にある<i>manager</i>という列の名前を
+<i>supervisor</i>に変更するには次のようにします。
+<codeblock><b>RENAME COLUMN EMPLOYEE.MANAGER TO SUPERVISOR</b></codeblock>
+</p>
+<p>ALTER TABLEとRENAME COLUMNを使って、列のデータ型を変更できます。
+<i>t</i>という表にある<i>c1</i>という列のデータ型を<i>NEWTYPE</i>に変更するためには、次のようにします。
+<codeblock><b>
+    ALTER TABLE t ADD COLUMN c1_newtype NEWTYPE
+    UPDATE t SET c1_newtype = c1
+    ALTER TABLE t DROP COLUMN c1
+    RENAME COLUMN t.c1_newtype TO c1
+</b></codeblock></p>
+</example>
+<section><title>利用上の留意点</title>
+<note id="restriction">列を参照するビューやトリガ、チェック制約、外部キー制約がある場合、列名の変更は失敗します。
+</note>
+<note id="restriction">名称を変更する列を参照する、開いたカーソルがある場合、RENAME COLUMN文は実行できません。</note>
+<note>列への索引があっても、列の名前は変更できます。索引は更新されて、変更後の列名で参照するようになります。</note>
+</section>
+</refbody>
+</reference>

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rrefsqljrenamecolumnstatement.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqljrenametablestatement.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqljrenametablestatement.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqljrenametablestatement.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqljrenametablestatement.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+<reference id="rrefsqljrenamestatements" xml:lang="en-us">
+<title>RENAME TABLE 文</title>
+<prolog><metadata>
+<keywords><indexterm>RENAME TABLE statement</indexterm><indexterm><indexterm>SQL
+statements</indexterm>RENAME TABLE</indexterm><indexterm><indexterm>tables</indexterm>renaming</indexterm>
+</keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>RENAME TABLEによりあらゆるスキーマにある既存の表の名前を変更できます。(ただし<i>SYS</i>のスキーマは除きます。)</p>
+<p>表の名前を変更できるのは<xref href="rrefattrib26867.dita#rrefattrib26867">データベースの所有者</xref>と表の所有者です。</p></section>
+<refsyn><title>構文</title> <codeblock><b>RENAME TABLE <i>表名</i> TO <i><xref
+href="rrefnewtablename.dita#rrefnewtablename">新表名</xref></i></b></codeblock> 
+<p>表を参照するビューや外部キーがあった場合、名前を変えようとするとエラーが発生します。
+さらに、表にトリガやチェック制約があった場合も、名前を変えようとするとエラーが発生します。</p> </refsyn>
+<example> <codeblock><b>RENAME TABLE SAMP.EMP_ACT TO EMPLOYEE_ACT</b></codeblock> 
+<p>詳細については、<xref href="rrefsqlj81859.dita#rrefsqlj81859"></xref>も参照してください。</p> </example>
+<section><title>文の依存</title> 
+<p>表に索引が定義されていても、表の名前は変更可能です。</p> 
+<p>名前を変更しようとする表に、開いたカーソルがあった場合、RENAME TABLE文は失敗します。</p> </section>
+</refbody>
+</reference>

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rrefsqljrenametablestatement.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqljrevoke.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqljrevoke.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqljrevoke.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqljrevoke.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "reference.dtd">
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with 
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.-->
+<reference id="rrefsqljrevoke" xml:lang="ja">
+<title>REVOKE 文 </title>
+<shortdesc>REVOKE文を使って、指定したユーザあるいは全ユーザから、データベースの情報に対して操作を行う権限を剥奪することができます。</shortdesc>
+<prolog><metadata>
+<keywords><indexterm>REVOKE statement<indexterm>syntax</indexterm></indexterm>
+<indexterm>SQL statements<indexterm>REVOKE</indexterm></indexterm><indexterm>REVOKE
+statement<indexterm>limitations</indexterm></indexterm><indexterm>privileges<indexterm>tables
+and columns, revoking</indexterm></indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>剥奪できる権限には次の種類があります。<ul>
+<li>表から情報を削除する。</li>
+<li>表に情報を挿入する。</li>
+<li>表や表にある列の部分集合に対して、外部キー参照を作成する。</li>
+<li>表やビュー、表の列の部分集合から、情報を選択する。</li>
+<li>表にトリガを作成する</li>
+<li>表や表にある列の部分集合にある情報を更新する。</li>
+<li>関数や手続きなどのプログラムルーチンを実行する。</li>
+</ul></p><p>REVOKE文を発行する前に、<codeph>derby.database.sqlAuthorization</codeph>属性が<codeph>true</codeph>であることを確認してください。<codeph>derby.database.sqlAuthorization</codeph>属性により、SQL認証が有効になります。</p>
+<p>情報の所有者か<xref href="rrefattrib26867.dita#rrefattrib26867">データベースの所有者</xref>であれば、その情報への権限を剥奪する事ができます。</p>
+<p>REVOKE文の使い方は、表への権限を剥奪するのか、プログラムルーチンへの権限を剥奪するのかにより異なります。</p></section>
+<section><title>表の場合の使い方</title>
+<codeblock><b>REVOKE <i><xref href="rrefsqljrevoke.dita#rrefsqljrevoke/revokeptype">権限タイプ</xref
+></i> ON [ TABLE ] { <i><xref href="rreftablename.dita#rreftablename"></xref></i> | <i><xref
+href="rrefviewname.dita#rrefviewname"></xref></i> } FROM <i><xref href="rrefsqljrevoke.dita#rrefsqljrevoke/revokegrantees">権限を与えられていた人</xref></i></b
+></codeblock><p>列の一覧を指定せずに権限を剥奪した場合、表の全ての列への権限が剥奪されます。</p></section>
+<section><title>プログラムルーチンの場合の使い方</title><codeblock><b>REVOKE EXECUTE ON { FUNCTION | PROCEDURE } <i><xref
+href="rrefsqljrevoke.dita#rrefsqljrevoke/revokeroutinename">プログラムルーチンの指示子</xref></i> FROM <i><xref
+href="rrefsqljrevoke.dita#rrefsqljrevoke/revokegrantees">権限を与えられていた人</xref> </i> RESTRICT</b></codeblock><p>プログラムルーチンにREVOKE文を使う場合、RESTRICT節が必要です。RESTRICT節は、実行権限がビューや表、制約からは剥奪されない一方で、ビューや表、制約の所有者からは剥奪されることを表します。</p></section>
+<section id="revokeptype"><title>権限タイプ</title><codeblock><b>ALL PRIVILEGES |
+  各種権限 </b></codeblock></section>
+<section id="revokeprivlist"><title>各種権限</title><codeblock><b>  
+表権限 {, 表権限 }* </b></codeblock></section>
+<section id="revoketablepriv"><title>表権限</title><codeblock><b>  DELETE |
+  INSERT |
+  REFERENCES [<i>列一覧</i>] |
+  SELECT [<i>列一覧</i>] |
+  TRIGGER |
+  UPDATE [<i>列一覧</i>] </b></codeblock></section>
+<section id="revokecollist"><title>列一覧</title><codeblock><b>  ( 列識別子 {, 列識別子}* ) </b></codeblock></section><section><p>権限タイプのALL PRIVILEGESは、表への全ての権限をユーザから剥奪する時に使います。各種権限を指定して、表への一つ以上の権限を剥奪することもできます。</p>
+<p>DELETEの権限タイプは、表の行を削除する権限を剥奪するために使います。</p>
+<p>INSERTの権限タイプは、表に行を挿入する権限を剥奪するために使います。</p>
+<p>REFERENCESの権限タイプは、表への外部キー参照を作成する権限を剥奪するために使います。列一覧が指定された場合、その列群への外部キー参照を作成する権限だけが剥奪されます。</p>
+<p>SELECTの権限タイプは、表またはビューの情報を選択する権限を剥奪するときに使います。列一覧が指定された場合、その列群への権限だけが剥奪されます。列一覧が指定されなかった場合、表の全列に対して操作が有効です。</p>
+<p>TRIGGERの権限タイプは、表にトリガを作成する権限を剥奪するとめに使います。</p>
+<p>UPDATEの権限タイプは、表にUPDATE文を実行する権限を剥奪するために使います。列一覧が指定された場合、その列群への権限だけが剥奪されます。</p></section>
+<section id="revokegrantees"><title>権限を与えられていた人</title><codeblock><b>{	<i>認証識別子</i> | PUBLIC } [,{ <i>authorization ID</i> | PUBLIC } ] *</b
+></codeblock>
+<p>指定したユーザあるいは全ユーザから、権限の剥奪を行うことができます。全ユーザを指定するときは、PUBLICというキーワードを使います。PUBLICで剥奪される権限と、ユーザを指定して剥奪される権限は独立した物です。例を挙げましょう。表<codeph>t</codeph>へのSELECT権限が、PUBLICと<codeph>harry</codeph>という認証識別子の両方に与えられているとします。
+ここで、<codeph>harry</codeph>という認証識別子からSELECT権限が剥奪されたとしても、<codeph>harry</codeph>という認証識別子はPUBLIC権限を通して、表<codeph>t</codeph>を操作可能です。</p>
+<note type="restriction">情報の所有者の権限を剥奪することはできません。</note></section>
+<section id="revokeroutinename"><title>プログラムルーチンの指示子</title><codeblock><b>  {
+		<i>qualified-name</i> [ signature ]
+  }</b></codeblock></section>
+<section><title>剥奪された権限に連なる依存関係</title>
+<p>剥奪された権限に依存しているビューやトリガ、制約等は自動的に削除されます。このとき<ph conref="../conrefs.dita#prod/productshortname"></ph> は、剥奪された権限を他の権限で代替しようとしません。詳しくは、<ph conref="../conrefs.dita#pub/citdevelop">Derby Developer's Guide</ph>の"SQL standard authorization"を参照してください。</p></section>
+
+
+<section><title>制限事項</title><p>REVOKE文には次の制限事項があります。</p>
+<dl><dlentry>
+<dt>表毎の権限に関連した権限</dt>
+<dd>表毎の権限に対応して、SYSTABLEPERMSシステム表に表IDと権限の付与先が記録されます。たとえば、<codeph>user2</codeph>に、表<codeph>user1.t1</codeph>のSELECTとDELETEの権限が付与された場合、SYSTABLEPERMS表には対応した行がひとつ追加されます。この行にのGRANTEE欄は<codeph>user2</codeph>という値をとって、TABLEID欄は<codeph>user1.t1</codeph>という値をとります。さらにSELECTPRIVとDELETEPRIVのそれぞれの欄の値はYをとります。それ以外の権限に対応した欄の
 値はNです。<p>権限を付与されたユーザが表へのいずれかの権限を必要とする情報をデータベースに作成すると、<ph
+conref="../conrefs.dita#prod/productshortname"></ph> のエンジンは、その情報がSYSTABLEPERMSにある特定の行へ依存していることを理解します。
+例えば、<codeph>user2</codeph>が<codeph>SELECT * FROM
+user1.t1</codeph>という文で<codeph>v1</codeph>というビューを作成すると、ビューの<codeph>v1</codeph>と、GRANTEE欄が<codeph>user2</codeph>でTABLEID欄が<codeph>user1.t1</codeph>であるSYSTABLEPERMSの行との間に、管理対象となる依存関係があるとプログラムは理解します。ここで、プログラムはビューが特定の行に依存していることを理解しますが、その行にある権限に対応した欄のうち、どの欄に依存しているのかは理解していません。</p>
+<p>そのせいで、表毎の権限を剥奪するREVOKE文が発行されると、その権限と同じ表IDとユーザの組み合わせを持つ権限に依存したデータベース上の情報は全て削除されてしまいます。例で説明すると、<codeph>user1</codeph>が<codeph>user2</codeph>から表<codeph>t1</codeph>のDELETE権限を剥奪すると、SYSTABLEPERMS表のGRANTEE欄に<codeph>user2</codeph>をとりTABLEID欄に<codeph>user1.t1</codeph>をとる行がREVOKE文により更新されます。このとき依存関係の管理機能に�
 �‚ˆã‚Šã€ãã®è¡Œã«è¨˜éŒ²ã•ã‚ŒãŸDELETE権限には依存していないにもかかわらず、権限の剥奪による無効化のメッセージが<codeph>user2.v1</codeph>にも送信されるので、このビューは削除されてしまいます。</p></dd>
+</dlentry><dlentry>
+<dt>列毎の権限に関連した制限</dt>
+<dd>SYSCOLPERMSシステム表の行毎に、権限の付与先と表IDの組み合わせに許可された権限をひとつだけ記録することができます。たとえば、<codeph>user2</codeph>に表<codeph>user1.t1</codeph>にあるc12とc13という列のSELECT権限が与えられた場合、SYSCOLPERMSには行がひとつ追加されます。この行はGRANTEE欄の値に<codeph>user2</codeph>をとり、TABLEID欄の値に<codeph>user1.t1</codeph>をとり、TYPE欄の値に<codeph>S</codeph>をとり、COLUMNS欄の値には<codeph>c12, c13</codeph>をとります。
+<p>表の列の集合に権限を付与されたユーザが、その権限に依存した情報をデータベースに作成した場合、<ph conref="../conrefs.dita#prod/productshortname"></ph>は、その情報とSYSCOLPERMS表の対応した行の間の依存関係を理解して管理下に起きます。例えば<codeph>user2</codeph>が<codeph>SELECT c11 FROM user1.t1</codeph>という文により、<codeph>v1</codeph>という行を作成すると、プログラムはGRANTEE欄が<codeph>user2</codeph>でTABLEID欄が<codeph>user1.t1</codeph>、TYPE欄がSであるSYSCOLPERMS表の行に、<cod
 eph>v1</codeph>が依存することを理解して、その依存関係を管理下に置きます。このとき、プログラムはビューがSELECT権限に依存することは理解しますが、ビューがどのカラムに依存しているかは追跡しません。</p>
+<p>REVOKE文がカラムごとの権限に対して発行されると、その権限の権限付与先、テーブルID、権限の種類に依存したデータベース上の情報が削除されます。例で説明すると、<codeph>user1</codeph>が<codeph>user2</codeph>から、表<codeph>user1.t1</codeph>の列<codeph>c12</codeph>へのSELECT権限を剥奪すると、GRANTEE欄が<codeph>user2</codeph>でTABLEIDが<codeph>user1.t1</codeph>、TYPE欄がSのSYSCOLPERMSにある行が、REVOKE文により更新されます。このとき依存関係の管理機能により、<c
 odeph>c12</codeph> という列には依存していないにもかかわらず、権限の剥奪による無効化のメッセージが<codeph>user2.v1</codeph>というビューにも送信されるので、このビューは削除されてしまいます。</p></dd>
+</dlentry></dl></section>
+
+
+<example> <title>権限剥奪の例</title><p>表<codeph>t</codeph>へのSELECT権限を、<codeph>maria</codeph>と<codeph>harry</codeph>という認証識別子から剥奪する場合、次のように文を書きます。<codeblock><b>REVOKE SELECT ON TABLE t FROM maria,harry</b> </codeblock></p>
+
+<p>表<codeph>t</codeph>へのUPDATE、TRIGGER権限を<codeph>anita</codeph>と<codeph>zhi</codeph>という認証識別子から剥奪する場合、次のように文を書きます。<codeblock><b>REVOKE UPDATE, TRIGGER ON TABLE t FROM anita,zhi</b> </codeblock></p>
+
+<p>表<codeph>s.v</codeph>へのSELECT権限を全ユーザから剥奪する場合、次のように文を書きます。<codeblock><b>REVOKE SELECT ON TABLE s.v FROM PUBLIC</b></codeblock></p>
+
+<p>表<codeph>s.v</codeph>の<codeph>c1</codeph>と<codeph>c2</codeph>という列へのUPDATE権限を全てのユーザから剥奪する場合、次のように文を書きます。<codeblock><b>REVOKE UPDATE (c1,c2) ON TABLE s.v FROM PUBLIC</b></codeblock></p
+>
+
+<p><codeph>p</codeph>という手続きへのEXECUTE権限を、<codeph>george</codeph>という認証識別子から剥奪する場合、次のように文を書きます。</p><codeblock><b>REVOKE EXECUTE ON PROCEDURE p FROM george RESTRICT</b> </codeblock
+></example>
+</refbody>
+</reference>

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rrefsqljrevoke.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqljtfinvoke.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqljtfinvoke.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqljtfinvoke.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqljtfinvoke.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<reference id="rrefsqljtfinvoke" xml:lang="ja">
+<title>表関数の呼び出し</title>
+<refbody>
+<example>
+<codeblock>
+<b>TABLE <i>関数名</i>( [ [ 関数の引数 ] [, 関数の引数 ]* ] )
+</b></codeblock></example>
+
+<section>
+<p>
+但し書き 表関数を呼び出すときは、相関名を割り当てる必要があります。例を挙げます。
+</p>
+</section>
+
+<example>
+<codeblock>
+<b>
+SELECT s.*
+FROM TABLE( externalEmployees( 42 ) ) s
+</b></codeblock></example>
+
+</refbody>
+</reference>

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rrefsqljtfinvoke.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsqljtypexml.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsqljtypexml.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsqljtypexml.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsqljtypexml.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+ 
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+<reference id="rrefsqljtypexml" xml:lang="ja">
+<title>XML data type</title>
+<shortdesc>The XML data type is used for Extensible Markup Language (XML)
+documents.</shortdesc>
+<prolog><metadata>
+<keywords><indexterm>XML data type</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>XMLデータ型は以下のように使います。<ul>
+<li>SQL/XMLに定義された、整形されたXML(DOCUMENT(ANY))の値を記録する。</li>
+<li>一時的に整形されたXML(DOCUMENT(ANY))の値ではない、XML(SEQUENCE)の値を扱う。</li>
+</ul></p><note>XMLデータの値を、取得・更新・問合せ等、何らかの方法で操作するアプリケーションでは、JAXP構文解析器とXalanのクラスをクラスパスに持たなければなりません。もし、構文解析器・Xalanの何れかが見つからなければ、<ph conref="../conrefs.dita#prod/productshortname"></ph>はエラーを発行します。
+<p><ph conref="../conrefs.dita#prod/productshortname"></ph>ではJDBCにて、SQL/XMLを扱う機能が実装されていないので、XMLの値を直接バインドしたり、JDBCの結果セットから直接XMLの値を取得することは不可能です。
+その代わりに、XMLPARSEやXMLSERIALIZE等の適切なXMLの演算子を明示的にSQLに書いて、XMLの情報をJavaの文字列や文字のストリームとして、バインドしたり取得する必要があります。</p></note></section>
+<refsyn><title>構文</title><codeblock><b>XML</b></codeblock> </refsyn>
+<section><title>対応するコンパイル時のJavaの型</title><p>無し</p>
+<p>XMLの値に対応するJavaの型のjava.sql.SQLXMLは存在します。しかし、java.sql.SQLXML型は<ph conref="../conrefs.dita#prod/productshortname"></ph>にてサポートされていません。</p> </section>
+<section><title>JDBC メタデータ型 (java.sql.Types)</title><p>無し</p>
+<p>XMLの値に対応するメタデータ型のSQLXMLは存在します。しかし、SQLXMLは<ph conref="../conrefs.dita#prod/productshortname"></ph>にてサポートされていません。</p>
+<p><ph conref="../conrefs.dita#prod/productshortname"></ph>のデータベースからXMLの値を取得するときには、問合せのSQLにてXMLSERIALIZE演算子を使ってください。
+例を挙げます。<codeblock>SELECT XMLSERIALIZE (xcol as CLOB) FROM myXmlTable </codeblock
+>こうすることで、直列化した型に対応するgetXXXメソッドを使って、XMLの値を、取得することができます。この例ではCLOB型となります。</p>
+<p><ph conref="../conrefs.dita#prod/productshortname"></ph>のデータベースにJDBCを使ってXMLの値を記録するときは、SQL文にてXMLPARSE演算子を使ってください。
+例を挙げます。<codeblock>INSERT INTO myXmlTable(xcol) VALUES XMLPARSE(
+    DOCUMENT CAST (? AS CLOB) PRESERVE WHITESPACE)
+</codeblock>そして、文字列の型と互換性のあるsetXXXメソッドを使ってください。
+この例ではPreparedStatement.setStringまたはPreparedStatement.setCharacterStreamメソッドを使って、演算子に値を与えます。</p> </section>
+</refbody>
+</reference>

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rrefsqljtypexml.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefstringlimits.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefstringlimits.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefstringlimits.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefstringlimits.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<reference id="rrefstringlimits" xml:lang="ja">
+<title>並びの制限</title>
+<refbody>
+<table frame="all"><title>文字列の制限</title>
+<desc>以下の表に、<ph conref="../conrefs.dita#prod/productshortname"></ph>における並びの値の制限を記します。</desc>
+<tgroup cols="2" colsep="1" rowsep="1"><colspec colname="colspec0" colwidth="228*"/>
+<colspec colname="colspec1" colwidth="228*"/>
+<thead>
+<row>
+<entry align="left" valign="top">値</entry>
+<entry align="left" colname="colspec1" valign="top">上限</entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="colspec0">CHARの長さ</entry>
+<entry colname="colspec1">254文字</entry>
+</row>
+<row>
+<entry colname="colspec0">VARCHARの長さ</entry>
+<entry colname="colspec1">32,672文字</entry>
+</row>
+<row>
+<entry colname="colspec0">LONG VARCHARの長さ</entry>
+<entry colname="colspec1">32,700文字</entry>
+</row>
+<row>
+<entry colname="colspec0">CLOBの長さ</entry>
+<entry colname="colspec1">2,147,483,647文字</entry>
+</row>
+<row>
+<entry colname="colspec0">BLOBの長さ</entry>
+<entry colname="colspec1">2,147,483,647文字</entry>
+</row>
+<row>
+<entry colname="colspec0">文字定数の長さ</entry>
+<entry colname="colspec1">32,672</entry>
+</row>
+<row>
+<entry colname="colspec0">結合された文字列の長さ</entry>
+<entry colname="colspec1">2,147,483,647</entry>
+</row>
+<row>
+<entry colname="colspec0">バイナリ並びの長さ</entry>
+<entry colname="colspec1">2,147,483,647</entry>
+</row>
+<row>
+<entry colname="colspec0">16進整数の定数</entry>
+<entry colname="colspec1">16,336</entry>
+</row>
+<row>
+<entry colname="colspec0">DOUBLEの定数の長さ</entry>
+<entry colname="colspec1">30 characters</entry>
+</row>
+</tbody>
+</tgroup>
+</table>
+</refbody>
+</reference>
+

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rrefstringlimits.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsynonymname.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsynonymname.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsynonymname.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsynonymname.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+<reference id="rrefsynonymname" xml:lang="ja">
+<title>別名</title>
+<refbody>
+<section><p>表やビューは<i>別名</i>であらわす事ができます。
+<i>別名</i>は<i>スキーマ名</i>で限定することができます。</p></section>
+<section><title>構文</title> <codeblock><b>[ <i><xref href="rrefschemaname.dita#rrefschemaname">スキーマ名</xref>.</i> ] <i><xref
+href="crefsqlj34834.dita#crefsqlj34834">SQL92識別子</xref></i></b></codeblock></section>
+</refbody>
+</reference>

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rrefsynonymname.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsyscschecktablefunc.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsyscschecktablefunc.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsyscschecktablefunc.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsyscschecktablefunc.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<reference id="rrefsyscschecktablefunc" xml:lang="ja">
+<title>SYSCS_UTIL.SYSCS_CHECK_TABLEシステム関数</title>
+<refbody>
+<section>
+<p><codeph>SYSCS_UTIL.SYSCS_CHECK_TABLE</codeph>関数は引数に指定した表を検証して、その全ての索引と整合が取れていることを確かめます。もし表と索引が整合していれば、メソッドはSMALLINTの1を返します。
+もし表と索引が不整合であれば、関数は例外を挙げます。</p></section>
+<section><title>構文</title> <codeblock>SMALLINT SYSCS_UTIL.SYSCS_CHECK_TABLE(IN SCHEMANAME VARCHAR(128),
+IN TABLENAME VARCHAR(128)) </codeblock> <p>SCHEMANAMEもしくはTABLENAMEがnullである場合、エラーが発生します。</p></section>
+<section><title>例</title> <codeblock>VALUES SYSCS_UTIL.SYSCS_CHECK_TABLE('SALES', 'ORDERS');</codeblock></section>
+</refbody>
+</reference>
+

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rrefsyscschecktablefunc.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsyscsdiagtables.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsyscsdiagtables.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsyscsdiagtables.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsyscsdiagtables.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,160 @@
+<?xml version="1.0" encoding="utf-8"?>
+ 
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+<reference id="rrefsyscsdialgtables" xml:lang="ja">
+<title>SYSCS_DIAG 診断表および関数</title>
+<shortdesc><ph conref="../conrefs.dita#prod/productshortname"></ph>にはシステム表式が用意されており、データベースの状態やデータベースへの接続の診断情報を取得できます。</shortdesc>
+<prolog><metadata>
+<keywords><indexterm>diagnostic table functions<indexterm>SYSCS_DIAG.ERROR_LOG_READER</indexterm></indexterm>
+<indexterm>SYSCS_DIAG.ERROR_LOG_READER diagnostic table function</indexterm>
+<indexterm>diagnostic tables<indexterm>SYSCS_DIAG.ERROR_MESSAGES</indexterm></indexterm>
+<indexterm>SYSCS_DIAG.ERROR_MESSAGES diagnostic table</indexterm><indexterm>diagnostic
+table functions<indexterm>SYSCS_DIAG.LOCK_TABLE</indexterm></indexterm><indexterm>SYSCS_DIAG.LOCK_TABLE
+diagnostic table</indexterm><indexterm>diagnostic table functions<indexterm>SYSCS_DIAG.SPACE_TABLE</indexterm></indexterm>
+<indexterm>SYSCS_DIAG.SPACE_TABLE diagnostic table function</indexterm><indexterm>diagnostic
+tables<indexterm>SYSCS_DIAG.STATEMENT_CACHE</indexterm></indexterm><indexterm>SYSCS_DIAG.STATEMENT_CACHE
+diagnostic table</indexterm><indexterm>diagnostic table functions<indexterm>SYSCS_DIAG.STATEMENT_DURATION</indexterm></indexterm>
+<indexterm>SYSCS_DIAG.STATEMENT_DURATION diagnostic table functions</indexterm>
+<indexterm>diagnostic tables<indexterm>SYSCS_DIAG.TRANSACTION_TABLE</indexterm></indexterm>
+<indexterm>SYSCS_DIAG.TRANSACTION_TABLE diagnostic table</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> <p><ph conref="../conrefs.dita#prod/productshortname"></ph>には二種類の診断表式があります。<dl>
+<dlentry>
+<dt>診断表</dt>
+<dd><ph conref="../conrefs.dita#prod/productshortname"></ph>の一般的な表と同様なものです。
+表名を置くことができる場所ならどこにでも診断表の名前をおけます。</dd>
+</dlentry><dlentry>
+<dt>診断表関数</dt>
+<dd><ph conref="../conrefs.dita#prod/productshortname"></ph>の一般的な関数と同様なものです。診断表関数には関数に応じて、0あるいはそれ以上の引数を取ることができます。SQLに定義された表関数の構文に基づき、これらの関数を使う必要があります。</dd>
+</dlentry></dl> </p>
+<p>以下の表には<ph conref="../conrefs.dita#prod/productshortname"></ph>の診断表式の名称と種類を記します。</p><table>
+<title><ph conref="../conrefs.dita#prod/productshortname"></ph>のシステム診断表式</title>
+<tgroup cols="2"><colspec colname="col1" colwidth="50*"/><colspec colname="col2"
+colwidth="49*"/>
+<thead>
+<row valign="bottom">
+<entry colname="col1">診断表式</entry>
+<entry colname="col2">式の種類</entry>
+</row>
+</thead>
+<tbody>
+<row>
+<entry colname="col1">SYSCS_DIAG.ERROR_LOG_READER</entry>
+<entry colname="col2">表関数</entry>
+</row>
+<row>
+<entry colname="col1">SYSCS_DIAG.ERROR_MESSAGES</entry>
+<entry colname="col2">表</entry>
+</row>
+<row>
+<entry colname="col1">SYSCS_DIAG.LOCK_TABLE</entry>
+<entry colname="col2">表</entry>
+</row>
+<row>
+<entry colname="col1">SYSCS_DIAG.SPACE_TABLE</entry>
+<entry colname="col2">表関数</entry>
+</row>
+<row>
+<entry colname="col1">SYSCS_DIAG.STATEMENT_CACHE</entry>
+<entry colname="col2">表</entry>
+</row>
+<row>
+<entry colname="col1">SYSCS_DIAG.STATEMENT_DURATION</entry>
+<entry colname="col2">表関数</entry>
+</row>
+<row>
+<entry colname="col1">SYSCS_DIAG.TRANSACTION_TABLE </entry>
+<entry colname="col2">表</entry>
+</row>
+</tbody>
+</tgroup>
+</table><p><note type="restriction">DDLや圧縮の手続きにて診断表を参照した場合、<ph conref="../conrefs.dita#prod/productshortname"></ph>は例外を返します。</note></p></section>
+<section><title>SYSCS_DIAG.ERROR_LOG_READER 診断表関数</title>
+<p>SYSCS_DIAG.ERROR_LOG_READER診断表関数からは、<filepath>derby.log</filepath>ファイルや指定した任意のログファイルにある全てのSQL文が得られます。</p>
+<p>この診断表関数を使うことで、活動中のトランザクションおよび任意の時点のトランザクションを知ることができます。たとえばデッドロックやロックの時間切れが発生した場合、エラーログからタイムスタンプ(timestampConstant)を見つけることができます。</p>
+<p>SYSCS_DIAG.ERROR_LOG_READER診断表関数を使うには、SQL表関数の構文に基づく必要があります。</p>
+<p>例を挙げます。:<codeblock>SELECT * 
+    FROM TABLE (SYSCS_DIAG.ERROR_LOG_READER()) 
+    AS T1</codeblock>
+ここでT1はユーザが指定した表の名前で、これは任意の識別子です。</p>
+<p>SYSCS_DIAG.ERROR_LOG_READER診断表関数には、随意で指定する引数としてログファイルの名前を与えることができます。ログファイルの名前を指定する場合、ファイル名はJavaで文字列とみなせる式でなければなりません。</p>
+<p>For example:<codeblock>SELECT * 
+    FROM TABLE (SYSCS_DIAG.ERROR_LOG_READER('myderbyerrors.log')) 
+    AS T1</codeblock></p>
+<p><note type="tip"> 既定では<ph conref="../conrefs.dita#prod/productshortname"></ph>のログファイルには起動、終了、エラーメッセージしかありません。
+より詳細な情報を<ph conref="../conrefs.dita#prod/productshortname"></ph>のログファイルに出力する方法は、<cite><ph conref="../conrefs.dita#pub/cittuning"></ph>ガイド</cite>の<parmname>derby.stream.error.logSeverityLevel</parmname>属性と、<parmname>derby.language.logStatementText</parmname>属性を読んでください。</note></p></section>
+<section><title>SYSCS_DIAG.ERROR_MESSAGES 診断表</title>
+<p>SYSCS_DIAG.ERROR_MESSAGES診断表には、全てのSQLState、地域に対応したエラーメッセージ、
+<ph conref="../conrefs.dita#prod/productshortname"></ph>データベースでの例外深刻度が記述されます。
+文にて直接にSYSCS_DIAG.ERROR_MESSAGES診断表を参照することができます。</p>
+<p>例を挙げます。<codeblock>SELECT * FROM SYSCS_DIAG.ERROR_MESSAGES</codeblock></p></section>
+<section><title>SYSCS_DIAG.LOCK_TABLE 診断表</title>
+<p>SYSCS_DIAG.LOCK_TABLE診断表には、現在時点の<ph
+conref="../conrefs.dita#prod/productshortname"></ph>データベースの全ロックが記述されます。
+SYSCS_DIAG.LOCK_TABLE診断表は文にて直接参照することができます。</p>
+<p>例を挙げます。<codeblock>SELECT * FROM SYSCS_DIAG.LOCK_TABLE</codeblock></p>
+<p>SYSCS_DIAG.LOCK_TABLE診断表が文にて参照される場合、表のロックのスナップショットが撮られます。
+このスナップショットは診断表を参照しても、アプリケーションの通常処理時間や処理の流れに影響が出ないように用意されるものです。
+このスナップショットが撮られる時、ロックが状態遷移中である可能性があります。</p></section>
+<section><title>SYSCS_DIAG.SPACE_TABLE 診断表関数</title>
+<p>SYSCS_DIAG.SPACE_TABLE診断表関数では、指定した表とその索引が利用している領域を表示できます。
+この診断表関数により表や索引を圧縮することで、どれだけ領域を節約できるか知ることができます。</p>
+<p>SYSCS_DIAG.SPACE_TABLE診断表関数を使うには、SQL表関数の構文に従う必要があります。
+この診断表関数は二つの引数をとります。<parmname>スキーマ名</parmname>と<parmname>表名</parmname>です。
+<parmname>表名</parmname>は必須です。<parmname>スキーマ名</parmname>を指定しなかった場合、現在のスキーマが適用されます。</p>
+<p>たとえば以下の問い合わせでは、データベースにある全ユーザ表と索引の利用する領域を返します。<codeblock>SELECT T2.*
+    FROM 
+        SYS.SYSTABLES systabs,
+        TABLE (SYSCS_DIAG.SPACE_TABLE(systabs.tablename)) AS T2
+    WHERE systabs.tabletype = 'T'</codeblock>
+ここでT2はユーザ指定の表名で、任意の識別子を指定できます。</p>
+<p><parmname>スキーマ名</parmname>と<parmname>表名</parmname>は、何れもJavaの文字列型とみなされる式でなければなりません。
+<parmname>スキーマ名</parmname>と<parmname>表名</parmname>がデリミトされない識別子であった場合、名前は大文字で指定しなければなりません。</p>
+<p>例を挙げます。<codeblock>SELECT * 
+    FROM TABLE (SYSCS_DIAG.SPACE_TABLE('MYSCHEMA', 'MYTABLE')) 
+    AS T2</codeblock></p></section>
+<section><title>SYSCS_DIAG.STATEMENT_CACHE 診断表</title>
+<p>SYSCS_DIAG.STATEMENT_CACHE診断表にはSQL文キャッシュの内容が記述されます。
+SYSCS_DIAG.STATEMENT_CACHE診断表は文から直接参照できます。</p>
+<p>例を挙げます。<codeblock>SELECT * FROM SYSCS_DIAG.STATEMENT_CACHE</codeblock></p></section>
+<section><title>SYSCS_DIAG.STATEMENT_DURATION 診断表関数</title>
+<p>SYSCS_DIAG.STATEMENT_DURATION診断表関数を使って、<filepath>derby.log</filepath>ファイルや指定したログファイルにあるSQL文の<term>実行時間</term>を知ることができます。</p>
+<p>この診断関数を使うことで、アプリケーションのJDBCコードのどこにボトルネックがあるかの、手がかりを得ることができます。</p>
+<p>SYSCS_DIAG.STATEMENT_DURATION診断表関数を使うには、SQLの表関数構文に基づく必要があります。</p>
+<p>例を挙げます。<codeblock>SELECT * 
+    FROM TABLE (SYSCS_DIAG.STATEMENT_DURATION()) 
+    AS T1</codeblock>
+ここでT1はユーザが指定した表名で、任意の識別子を指定できます。</p>
+<note type="restriction">この表では、個々のトランザクションIDにおける最後の文毎に、行が対応していません。トランザクションによる情報の変更があった場合、トランザクションIDはコミットやロールバンクの前後で値が変わります。</note>
+<p>SYSCS_DIAG.STATEMENT_DURATION診断表関数には随意の引数としてログファイルを指定できます。
+ログファイル名を指定した場合、ファイル名はJavaの文字列とみなせる式でなければなりません。</p>
+<p>例を挙げます。<codeblock>SELECT * 
+    FROM TABLE (SYSCS_DIAG.STATEMENT_DURATION('somederby.log')) 
+    AS T1</codeblock></p>
+<p><note type="tip"> 既定では<ph conref="../conrefs.dita#prod/productshortname"></ph>のログファイルには起動、終了、エラーメッセージだけが出力されます。
+より詳細な情報を<ph conref="../conrefs.dita#prod/productshortname"></ph>のログファイルに出力する方法は、<cite><ph conref="../conrefs.dita#pub/cittuning"></ph>ガイド</cite>の<parmname>derby.stream.error.logSeverityLevel</parmname>属性と、<parmname>derby.language.logStatementText</parmname>属性を読んでください。
+それ以外の情報もあれば、SYSCS_DIAG.STATEMENT_DURATION診断表関数で問い合わせ可能です。</note></p></section>
+<section><title>SYSCS_DIAG.TRANSACTION_TABLE  診断表</title>
+<p>SYSCS_DIAG.TRANSACTION_TABLE診断表には現在データベースに存在する全トランザクションが記述されます。SYSCS_DIAG.TRANSACTION_TABLE診断表は文から直接参照できます。</p>
+<p>例を挙げます。<codeblock>SELECT * FROM SYSCS_DIAG.TRANSACTION_TABLE</codeblock></p>
+<p>文にてSYSCS_DIAG.TRANSACTION_TABLE診断表が参照されると、トランザクション表のスナップショットが撮られます。スナップショットは診断表を参照しても、アプリケーションの通常処理時間や処理の流れに影響が出ないよう用意されます。トランザクションはスナップショットの作成時に状態遷移中である場合もあります。</p></section>
+</refbody>
+</reference>

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rrefsyscsdiagtables.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rrefsyscsruntimestatsfunc.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rrefsyscsruntimestatsfunc.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rrefsyscsruntimestatsfunc.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rrefsyscsruntimestatsfunc.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<reference id="rrefsyscsruntimestatsfunc" xml:lang="ja">
+<title>SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS システム関数</title>
+<refbody>
+<section>
+<p><codeph>SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS</codeph>関数は、java.sql.ResultSetに対する問合せの実行計画および処理時間の統計を表す、VARCHAR(32762)の値を返します。
+問合せの実行計画は実行ノードからなる木構造の情報です。
+このノードには幾つかの種類があります。
+統計はそれぞれのノードが実行されるたびに合計されてゆきます。統計される値には、特定の処理にかかった時間の合計、ノードの子から渡された行数、そのノードから親に返された行数等あります。(実際に何が集計されるのかは、それぞれのノードの種類により決まります。)
+<codeph>SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS</codeph>が最も有意義に機能するのは、SELECT、INSERT、UPDATE等のDML文に対してです。
+</p></section>
+<section><title>構文</title> <codeblock>VARCHAR(32762) SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS() </codeblock></section>
+<section><title>例</title> <codeblock>VALUES SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS()</codeblock></section>
+</refbody>
+</reference>
+

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rrefsyscsruntimestatsfunc.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rreftableexpression.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rreftableexpression.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rreftableexpression.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rreftableexpression.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "../dtd/reference.dtd">
+<reference xml:lang="ja" id="rreftableexpression">
+<title>TableExpression</title>
+<prolog><metadata>
+<keywords><indexterm>表式</indexterm>
+</keywords>
+</metadata>
+</prolog><refbody>
+<section>
+<p><i>表式</i>により表、ビューあるいは関数を、<xref href="rrefsqlj21583.dita#rrefsqlj21583">FROM 節</xref>にて指定します。これより<i><xref href="rrefselectexpression.dita#rrefselectexpression">選択式</xref></i>にて結果が選択されます。</p>
+<p>列を限定するために、相関名を<i>表式</i>に適用することができます。
+相関名が与えられない場合、表名が列名を限定します。
+もし表に相関名が与えられた場合、表名により列を限定することはできず、列名を相関名で限定しなければなりません。</p>
+<p>FROM節にある項目は、同じ名前の相関名を持つことができません。また相関名はFROM節にある表の限定されない名前と同じ名前であってはなりません。</p>
+<p>さらにAS節を使って表の列に名前を与えることができます。これは以下の状況で便利です。<ul>
+<li><xref href="rrefsqlj11277.dita#rrefsqlj11277">VALUES式</xref>が<i><xref href="rreftablesubquery.dita#rreftablesubquery">表副問合せ</xref></i>で使われている場合、<xref href="rrefsqlj11277.dita#rrefsqlj11277">VALUES式</xref>の列に名前を与える方法は、他には無いです。</li>
+<li>列名が他の表の列名と同じ場合、別の名前を与えることで限定の必要がなくなります。</li>
+</ul></p>
+<p><i>Fromの項目</i>にある<i><xref href="rreftablesubquery.dita#rreftablesubquery">表副問合せ</xref></i>の問合せには、複数列を置くことができ、複数行を返すことができます。<i><xref href="rreftablesubquery.dita#rreftablesubquery"></xref></i>を参照してください。</p>
+<p>ユーザが最適化のため何を指定できるかについては、<cite><ph conref="../conrefs.dita#pub/cittuning"></ph></cite>を参照してください。</p></section>
+<refsyn><title>構文</title>
+<codeblock><b>{
+表やビューあるいは関数式 | 結合式
+}
+</b></codeblock>
+</refsyn>
+<example><title>例</title><codeblock><b>
+<ph>-- 結合式から選択できます。</ph>
+SELECT E.EMPNO, E.LASTNAME, M.EMPNO, M.LASTNAME
+ FROM EMPLOYEE E LEFT OUTER JOIN
+   	DEPARTMENT INNER JOIN EMPLOYEE M 
+  ON MGRNO = M.EMPNO
+  ON E.WORKDEPT = DEPTNO
+</b></codeblock>
+</example></refbody></reference>

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rreftableexpression.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rreftablename.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rreftablename.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rreftablename.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rreftablename.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<reference id="rreftablename" xml:lang="ja">
+<title>表名</title>
+<refbody>
+<section><p><i>表名</i>は表をあらわします。<i>表名</i>は<i>スキーマ名</i>で限定することができます。</p></section>
+<section><title>構文</title> <codeblock><b>[ <i><xref href="rrefschemaname.dita#rrefschemaname">スキーマ名</xref>.</i> ] <i><xref
+href="crefsqlj34834.dita#crefsqlj34834">SQL92識別子</xref></i></b></codeblock></section>
+<section><title>例</title> <codeblock><b><ph>-- SAMP.PROJECT はスキーマ名のある表名です。</ph>
+SELECT COUNT(*) FROM SAMP.PROJECT</b></codeblock></section>
+</refbody>
+</reference>
+

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rreftablename.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rreftablesubquery.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rreftablesubquery.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rreftablesubquery.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rreftablesubquery.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "../dtd/reference.dtd">
+<reference xml:lang="ja" id="rreftablesubquery">
+<title>表副問合せ</title>
+<prolog><metadata>
+<keywords><indexterm>TableSubquery</indexterm>
+</keywords>
+</metadata>
+</prolog><refbody>
+<section>
+<p><i>表副問合せ</i>は複数の行を返す副問合せです。</p> 
+<p><i><xref href="rrefscalarsubquery.dita#rrefscalarsubquery">スカラー副問合せ</xref></i>とは異なり、<i>表副問合せ</i>は以下の文脈にてのみ可能です。
+<ul>
+<li><xref href="rrefsqlj21583.dita#rrefsqlj21583">FROM 節</xref>の<i><xref href="rreftableexpression.dita#rreftableexpression">表式</xref></i></li>
+<li>EXISTSやIN、量の比較</li>
+</ul></p> 
+<p><xref href="rrefsqlj21583.dita#rrefsqlj21583">FROM 節</xref>の<i><xref href="rreftableexpression.dita#rreftableexpression">表式</xref></i>にて使われた場合、複数の列を返すことができます。</p>
+<p>EXISTSでは、*を使う場合のみ複数の列を返すことができます。</p>
+<p>INや限定条件では、単列のみ返すことができます。</p></section>
+<refsyn><title>構文</title>
+<codeblock><b>(<i><xref href="rrefsqlj21571.dita#rrefsqlj21571">問合せ</xref></i>)</b></codeblock>
+</refsyn>
+<example><title>例</title><codeblock><b><ph>-- FROM節の表式として、副問合せを使う。</ph>
+SELECT VirtualFlightTable.flight_ID
+FROM
+    (SELECT flight_ID, orig_airport, dest_airport
+    FROM Flights
+    WHERE (orig_airport = 'SFO' OR dest_airport = 'SCL') )
+AS VirtualFlightTable
+<ph>-- FROM節の表式として、副問合せ(values式)を使う。</ph>
+SELECT mycol1
+FROM
+    (VALUES (1, 2), (3, 4))
+AS mytable (mycol1, mycol2)
+<ph>-- EXISTSにて副問合せを使う</ph>
+SELECT *
+FROM Flights
+WHERE EXISTS
+    (SELECT * FROM Flights WHERE dest_airport = 'SFO'
+    AND orig_airport = 'GRU')
+<ph>-- INにて副問合せを使う</ph>
+SELECT flight_id, segment_number
+FROM Flights
+WHERE flight_id IN
+    (SELECT flight_ID
+    FROM Flights WHERE orig_airport = 'SFO'
+    OR dest_airport = 'SCL')
+<ph>-- 定量比較にて副問合せを使う</ph>
+SELECT NAME, COMM 
+FROM STAFF 
+WHERE COMM &gt; 
+(SELECT AVG(BONUS + 800)
+     FROM EMPLOYEE
+     WHERE COMM &lt; 5000)</b></codeblock>
+</example></refbody></reference>

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rreftablesubquery.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native

Added: db/derby/docs/trunk/src/ja_JP/ref/rreftimefunc.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/ja_JP/ref/rreftimefunc.dita?rev=609101&view=auto
==============================================================================
--- db/derby/docs/trunk/src/ja_JP/ref/rreftimefunc.dita (added)
+++ db/derby/docs/trunk/src/ja_JP/ref/rreftimefunc.dita Sat Jan  5 00:25:17 2008
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+ 
+<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
+ "../dtd/reference.dtd">
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at      
+
+http://www.apache.org/licenses/LICENSE-2.0  
+
+Unless required by applicable law or agreed to in writing, software  
+distributed under the License is distributed on an "AS IS" BASIS,  
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  
+See the License for the specific language governing permissions and  
+limitations under the License.
+-->
+<reference id="rreftimefunc" xml:lang="ja">
+<title>TIME 関数</title>
+<shortdesc>TIME関数は値の時刻の部分を返します。</shortdesc>
+<prolog><metadata>
+<keywords><indexterm>TIME function</indexterm></keywords>
+</metadata></prolog>
+<refbody>
+<section> <p>引数は時刻、タイムスタンプ、CLOB・LONG VARCHAR・XML以外の時刻やタイムスタンプを表す有効な文字列である必要があります。
+この関数の結果は時刻です。引数にnullをとることがある場合、返り値もnullをとることがあります。
+引数がnullなら、返り値はnullです。
+</p> 
+<p>
+引数のデータ型に応じて、以下の規則があります。
+<ul>
+<li>引数が時刻なら、返り値はその時刻です。</li>
+<li>引数がタイムスタンプなら、返り値はタイムスタンプの時刻の部分です。</li>
+<li>もし引数が文字列なら、返り値は文字列が表す時刻です。</li>
+</ul></p></section>
+<refsyn><title>構文</title> <codeblock><b>TIME ( <i>式</i> )</b></codeblock> </refsyn>
+<example> <codeblock><b>values time(current_timestamp)</b></codeblock> 
+<p>もし現在時刻が午後5:03なら、返り値は<codeph>17:03:00</codeph>です。</p> </example>
+</refbody>
+</reference>

Propchange: db/derby/docs/trunk/src/ja_JP/ref/rreftimefunc.dita
------------------------------------------------------------------------------
    svn:svn:eol-style = native