Apache-derby-introduction
提供:Dev Guides
Apache Derby-はじめに
Apache Derbyは* R elational D atabase M anagement S * ystemであり、Javaプログラミング言語に完全に基づいています(作成/実装)。 これは、Apache Software Foundationによって開発されたオープンソースデータベースです。
Oracleは、JavaDBという名前のApache Derbyに相当するものをリリースしました。
Apache Derbyの機能
以下は、Derbyデータベースの注目すべき機能です-
- プラットフォームに依存しない-Derbyは、データベース内のデータベースが、データベースと同じ名前のディレクトリ内のディスク内のファイルに保存されるオンディスクデータベース形式を使用します。
- データを変更しない-このため、データを変更せずにダービーデータベースを他のマシンに移動できます。
- トランザクションサポート-Derbyは、データの整合性を保証するトランザクションを完全にサポートします。
- データベースを含める-ビルド前/既存のデータベースを現在のダービーアプリケーションに含めることができます。
- スペースが少ない-Derbyデータベースはフットプリントが小さい、つまり占有スペースが少なく、 簡単に使用および展開できます。
- * Javaアプリケーションで埋め込み*-Derbyは、Javaアプリケーションに組み込むことができる組み込みデータベースエンジンを提供し、アプリケーションと同じJVMで実行されます。 ドライバーをロードするだけでデータベースが起動し、アプリケーションで停止します。
Apache Derbyの制限
Apache Derbyの制限は次のとおりです-
- Derbyは、BLOBやLONGVARCHARなどのデータ型のインデックスをサポートしていません。
- Derbyに十分なディスク容量がない場合、すぐにシャットダウンします。
データストレージ
データを保存する間、Apache Derbyは conglomerate として知られる概念に従います。 この場合、テーブルのデータは別のファイルに保存されます。 同様に、テーブルの各インデックスも個別のファイルに保存されます。 したがって、データベース内のすべてのテーブルまたはインデックスに個別のファイルがあります。
Apache Derbyライブラリ/コンポーネント
Apache Derbyディストリビューションは、さまざまなコンポーネントを提供します。 ダウンロードしたApacheディストリビューションのlibフォルダーでは、さまざまなコンポーネントを表すjarファイルを確認できます。
Jar file | Component | Description |
---|---|---|
derby.jar | Database Engine and JDBC driver |
The Database engine of Apache Derby is an embedded relational database engine which supports JDBC and SQL API’s. これは組み込みドライバーとしても機能し、これを使用してJavaアプリケーションを使用してDerbyと通信できます。 |
derbynet.jar derbyrun.jar | Network server | The Network Sever of Apache Derby provides the client server functionality, where the clients can connect to the Derby server through a network. |
derbyclient.jar | Network client JDBC driver | |
derbytools.jar | Command line tools | This jar file holds tools such as sysinfo, ij, and dblook. |
derbyoptionaltools.jar | Optional command line utilities (tools) | This jar file provides optional tools: databaseMetaData optional tool, foreignViews optional tool, luceneSupport optional tool, rawDBReader optional tool, simpleJson optional tool, etc |
derbyLocale_XX.jar | Jar files to localize messages | In addition to the above mentioned jar files, you can see several derbyLocale_XX.jar (es, fr, hu, it, ja, etc.). Using these, you can localize the messages of Apache Derby. |