/

Sybase Howto

Sybase Howto

This text is a description of integration of Sybase ASE as the target database in a TDK generated application.

このテキストはTDKを利用したアプリケーションのデータベースとして、 Sybase ASEを組み込む場合の説明です。

JDBC Driver Information

JDBCドライバ情報

Sybase has a pure java jdbc driver, jConnect, that is free to use, but not open source. You may download this driver from Sybase.

Sybaseには、jConnectというPure JavaのJDBCドライバがあります。 これは利用は自由ですが、オープンソースではありません。 このドライバはSybaseからダウンロードできます。

Integration Steps

組み込むまでのステップ

  1. Generate your application with the TDK as normal.
  2. Edit the project properties as instructed by the TDK.
  3. Before you run 'build.sh init' you will need to create the database. Automatic database creation for Sybase does not currently work, so the database must be created first.
  4. Place the jConnect jar file in your WEB-INF/lib directory.
  5. Run 'build.sh init' to generate and initialize the project.
  1. TDKで通常どおりアプリケーションを作成してください。
  2. TDKで指示されているとおりにプロジェクトのプロパティを編集してください。
  3. 'build.sh init'を実行する前に、データベースを作成する必要があります。 Sybaseの場合、データベースの自動作成は現在のところ機能しないので、 データベースを最初に作成しなければなりません。
  4. jConnectのJARファイルを WEB-INF/lib ディレクトリに置いてください
  5. プロジェクトの初期化と生成を行う 'build.sh init' を実行してください。

Notes

注釈

  • The .sql files that the TDK build process generates files with the sql command terminated by a ; for use in the sql directive provided by the Ant build system. These scripts will not work properly if run by hand via the 'isql' command.
  • The .sql files to create the tables, do not correctly remove any constraints on the tables currently and may fail. Drop the tables by hand, then re-run 'build-project.sh insert-sql' to re-create and populate the tables.

  • TDKのビルド処理で生成された.sqlファイルの、 Ant ビルドシステムによって提供されるSQLコマンドは ; で終了しています。 もし'isql'コマンドによって手動で実行する場合、これらのスクリプトは正常に作動しません。
  • テーブルを作成する.sqlファイルは、現在のところ、 テーブルの制約の削除がうまくいかず、失敗するかもしれません。 手動でテーブルをドロップし、 次に、再度テーブルを作成するための'build-project.sh insert-sql'を実行してください。