001/*
002 * Copyright (c) 2009 The openGion Project.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
013 * either express or implied. See the License for the specific language
014 * governing permissions and limitations under the License.
015 */
016package org.opengion.plugin.table;
017
018/**
019 * TableFilter_INDEX_POSTGRES は、TableUpda インターフェースを継承した、DBTableModel 処理用の
020 * 実装クラスです。とくに、PostgreSQL用のインデックス作成スクリプトを作成します。
021 *
022 * ここでは、テーブル一覧の検索結果より、GF07 のインデックスカラム定義テーブルから
023 * 必要な情報を取得し、テーブル作成スクリプトを作成します。
024 * 出力ファイルは、テーブル名+"I.sql" という命名規則で作成します。
025 * 検索では、(SYSTEM_ID,TBLSYU,TABLE_NAME,TABLE_LABEL,INDEX_NAME,NAME_JA,INDTYPE,TABLESPACE_NAME,INITIAL_EXTENT)
026 * の項目を取得する必要があります。
027 *
028 * @og.rev 4.0.0.0 (2005/08/31) 新規作成
029 * @og.rev 6.5.0.0 (2016/09/30) クラス名変更(TableFilter_INDEX_POSGRE → TableFilter_INDEX_POSTGRES)
030 *
031 * @version  6.5.0  2000/10/17
032 * @author   Kazuhiko Hasegawa
033 * @since    JDK1.8,
034 */
035public class TableFilter_INDEX_POSTGRES extends TableFilter_INDEX {
036        /** このプログラムのVERSION文字列を設定します。   {@value} */
037        private static final String VERSION = "6.5.0.0 (2016/09/30)" ;
038
039        /**
040         * デフォルトコンストラクター
041         *
042         * @og.rev 6.4.2.0 (2016/01/29) PMD refactoring. Each class should declare at least one constructor.
043         * @og.rev 6.5.0.0 (2016/09/30) クラス名変更(TableFilter_INDEX_POSGRE → TableFilter_INDEX_POSTGRES)
044         */
045        public TableFilter_INDEX_POSTGRES() { super(); }                // これも、自動的に呼ばれるが、空のメソッドを作成すると警告されるので、明示的にしておきます。
046
047        /**
048         * 定義の最後の部分の処理を実行します。
049         *
050         * @og.rev 6.0.2.3 (2014/10/10) EXEC_END_TAG を追加。キャッシュします。
051         *
052         * @param       clmNo   カラム番号配列
053         * @param       data    1行分のデータ配列
054         *
055         * @return      定義の最後の部分
056         */
057        @Override
058        protected String makeEndLine( final int[] clmNo,final String[] data ) {
059                return execEndTag ;
060        }
061}