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.column;
017
018import org.opengion.hayabusa.db.AbstractDBType;
019
020/**
021 * 一般的な半角文字列を扱う為の、カラム属性を定義します。
022 *
023 * 半角文字列とは、「 c < 0x20 || c > 0x7e 以外」でのみ
024 * 構成された文字列のことです。
025 *
026 * タイプチェックとして、以下の条件を判定します。
027 * ・文字列長は、Byte換算での文字数との比較
028 * ・半角文字列チェック「 c < 0x20 || c > 0x7e 以外」エラー
029 * ・文字パラメータの 正規表現チェック
030 * ・クロスサイトスクリプティングチェック
031 *
032 * @og.group データ属性
033 *
034 * @version  4.0
035 * @author   Kazuhiko Hasegawa
036 * @since    JDK5.0,
037 */
038public class DBType_X extends AbstractDBType {
039        /** このプログラムのVERSION文字列を設定します。   {@value} */
040        private static final String VERSION = "4.0.0.0 (2005/08/31)" ;
041
042        /**
043         * デフォルトコンストラクター
044         *
045         * @og.rev 4.0.0.0 (2005/01/31) type 廃止
046         */
047        public DBType_X() { super(); }          // これも、自動的に呼ばれるが、空のメソッドを作成すると警告されるので、明示的にしておきます。
048
049        /**
050         * コンストラクター
051         * 各サブクラスのタイプ値とデフォルト値を設定して、オブジェクトを構築します。
052         *
053         * @og.rev 4.0.0.0 (2005/01/31) type 廃止
054         *
055         * @param  defValue データのデフォルト値
056         */
057        public DBType_X( final String defValue ) {
058                super( defValue );
059        }
060}