public class DatabaseColumn extends Object
修飾子とタイプ | フィールドと説明 |
---|---|
static int |
INDEX_UNDEFINED
インデックスが未設定であることを示します。
|
static int |
TYPE_BINARY
バイナリ型であることを示します。
|
static int |
TYPE_BOOLEAN
真偽値型であることを示します。
|
static int |
TYPE_DATE
日付型であることを示します。
|
static int |
TYPE_NUMBER
数値型であることを示します。
|
static int |
TYPE_STRING
文字列型であることを示します。
|
static int |
TYPE_TIMESTAMP
Timestamp型であることを示します。
|
static Set<Integer> |
typesBinary
バイナリ型にマッピングする、Typesクラスの定義値
|
static Set<Integer> |
typesBoolean
真偽型にマッピングする、Typesクラスの定義値
|
static Set<Integer> |
typesDates
日付型にマッピングする、Typesクラスの定義値
|
static Set<Integer> |
typesNumbers
数値型にマッピングする、Typesクラスの定義値
|
static Set<Integer> |
typesTimestamps
Timestamp型にマッピングする、Typesクラスの定義値
|
コンストラクタと説明 |
---|
DatabaseColumn()
名前なし、文字列型
|
DatabaseColumn(String columnName,
int physicalColumnType,
int index,
boolean primaryKey)
新しいカラムオブジェクトを生成します。
|
DatabaseColumn(String columnName,
int physicalColumnType,
int index,
boolean primaryKey,
int precision,
int scale)
新しいカラムオブジェクトを生成します。
|
修飾子とタイプ | メソッドと説明 |
---|---|
String |
getColumnLabel()
カラムラベルを取得します。
|
String |
getColumnName()
カラム名を取得します。
|
int |
getColumnType()
DatabaseColumnクラスで定義されるカラムの簡易型を取得します。
|
static int |
getColumnType(int physicalColumnType)
java.sql.Typesの値からDatabaseColumnクラスで使用する簡易型を取得します。
|
int |
getIndex()
カラムのインデックス番号を取得します。
|
int |
getPhysicalColumnType()
java.sql.Typesで定義される型を取得します。
|
static int |
getPhysicalColumnType(String columnTypeName)
非推奨です。
|
int |
getPrecision()
指定された列のサイズを取得します。
|
int |
getScale()
指定された列の小数点以下の桁数を取得します。
|
boolean |
isForeignKey()
外部キーであるかどうかを取得します。
|
boolean |
isNullable()
このカラムがNull値を許可するかどうかを示します
|
boolean |
isPrimaryKey()
主キーかどうかを取得します。
|
void |
setColumnLabel(String columnLabel)
カラムラベルをセットします。
|
void |
setColumnName(String columnName)
カラム名を設定します。
|
void |
setColumnType(int columnType)
DatabaseColumnクラスで定義されるカラムの簡易型を設定します。
|
void |
setForeignKey(boolean foreignKey)
外部キーであるかどうかを設定します。
|
void |
setIndex(int index)
カラムのインデックス番号を設定します。
|
void |
setNullable(boolean nullable)
このカラムがNull値を許可するかどうかをセットします。
|
protected void |
setPhysicalColumnType(int physicalColumnType)
java.sql.Typesで定義される型を設定します。
|
void |
setPrecision(int precision)
指定された列に指定された列のサイズを設定します。
|
protected void |
setPrimaryKey(boolean primaryKey)
主キーであるかどうかを設定します。
|
void |
setScale(int scale)
指定された列の小数点以下の桁数を設定します。
|
public static final int INDEX_UNDEFINED
public static final int TYPE_STRING
public static final int TYPE_NUMBER
public static final int TYPE_DATE
public static final int TYPE_TIMESTAMP
public static final int TYPE_BINARY
public static final int TYPE_BOOLEAN
public DatabaseColumn()
public DatabaseColumn(String columnName, int physicalColumnType, int index, boolean primaryKey)
columnName
- カラム名physicalColumnType
- java.sql.Typesで示されるカラムの型index
- カラムのインデックス番号primaryKey
- 主キーかどうかpublic DatabaseColumn(String columnName, int physicalColumnType, int index, boolean primaryKey, int precision, int scale)
columnName
- カラム名physicalColumnType
- java.sql.Typesで示されるカラムの型index
- カラムのインデックス番号primaryKey
- 主キーかどうかprecision
- 列のサイズscale
- 列の小数点以下の桁数public static int getColumnType(int physicalColumnType)
physicalColumnType
- java.sql.Typesで示される型@Deprecated public static int getPhysicalColumnType(String columnTypeName)
columnTypeName
- 型名public String getColumnLabel()
public String getColumnName()
public int getColumnType()
public int getIndex()
public int getPhysicalColumnType()
public int getPrecision()
public int getScale()
public boolean isForeignKey()
public boolean isNullable()
public boolean isPrimaryKey()
public void setColumnLabel(String columnLabel)
columnLabel
- カラムラベルpublic void setColumnName(String columnName)
columnName
- カラム名public void setColumnType(int columnType)
columnType
- 簡易型public void setForeignKey(boolean foreignKey)
public void setIndex(int index)
index
- インデックス番号public void setNullable(boolean nullable)
nullable
- public void setPrecision(int precision)
precision
- 列のサイズpublic void setScale(int scale)
scale
- スケール(桁数)protected void setPhysicalColumnType(int physicalColumnType)
physicalColumnType
- protected void setPrimaryKey(boolean primaryKey)
primaryKey
- 主キーかどうかCopyright © 2012 NTT DATA INTRAMART CORPORATION