org.seasar.doma.extension.gen
クラス ColumnMeta

java.lang.Object
  上位を拡張 org.seasar.doma.extension.gen.ColumnMeta

public class ColumnMeta
extends Object

データベースのカラムメタデータです。

作成者:
taedium

フィールドの概要
protected  boolean autoIncrement
          値が自動的に増分される場合true
protected  String comment
          コメント
protected  String defaultValue
          デフォルト値
protected  int length
          長さ
protected  String name
          名前
protected  boolean nullable
          NULL可能の場合true
protected  boolean primaryKey
          主キーの場合true
protected  int scale
          スケール
protected  int sqlType
          SQL型
protected  TableMeta tableMeta
          テーブルメタデータ
protected  String typeName
          型名
protected  boolean unique
          一意の場合true
 
コンストラクタの概要
ColumnMeta()
           
 
メソッドの概要
 String getComment()
          コメントを返します。
 String getDefaultValue()
          デフォルト値を返します。
 int getLength()
          長さを返します。
 String getName()
          名前を返します。
 int getScale()
          スケールを返します。
 int getSqlType()
          SQL型を返します。
 TableMeta getTableMeta()
          テーブルメタデータ を返します。
 String getTypeName()
          型名を返します。
 boolean isAutoIncrement()
          値が自動的に増分される場合trueを返します。
 boolean isNullable()
          NULL可能の場合trueを返します。
 boolean isPrimaryKey()
          主キーの場合trueを返します。
 boolean isUnique()
          一意の場合true、そうでない場合falseを返します。
 void setAutoIncrement(boolean autoIncrement)
          値が自動的に増分される場合trueを設定します。
 void setComment(String comment)
          コメントを設定します。
 void setDefaultValue(String defaultValue)
          デフォルト値を設定します
 void setLength(int length)
          長さを設定します。
 void setName(String name)
          名前を設定します。
 void setNullable(boolean nullable)
          NULL可能の場合trueを設定します。
 void setPrimaryKey(boolean primaryKey)
          主キーの場合 trueを設定します。
 void setScale(int scale)
          スケールを設定します。
 void setSqlType(int sqlType)
          SQL型をセットします。
 void setTableMeta(TableMeta tableMeta)
          テーブルメタデータ を設定します。
 void setTypeName(String typeName)
          SQL型の名前を設定します。
 void setUnique(boolean unique)
          一意の場合true、そうでない場合falseを設定します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

name

protected String name
名前


sqlType

protected int sqlType
SQL型


typeName

protected String typeName
型名


length

protected int length
長さ


scale

protected int scale
スケール


defaultValue

protected String defaultValue
デフォルト値


nullable

protected boolean nullable
NULL可能の場合true


primaryKey

protected boolean primaryKey
主キーの場合true


autoIncrement

protected boolean autoIncrement
値が自動的に増分される場合true


unique

protected boolean unique
一意の場合true


comment

protected String comment
コメント


tableMeta

protected TableMeta tableMeta
テーブルメタデータ

コンストラクタの詳細

ColumnMeta

public ColumnMeta()
メソッドの詳細

getName

public String getName()
名前を返します。

戻り値:
名前

setName

public void setName(String name)
名前を設定します。

パラメータ:
name - 名前

getSqlType

public int getSqlType()
SQL型を返します。

戻り値:
SQL型

setSqlType

public void setSqlType(int sqlType)
SQL型をセットします。

パラメータ:
sqlType - SQL型

getTypeName

public String getTypeName()
型名を返します。

戻り値:
型名

setTypeName

public void setTypeName(String typeName)
SQL型の名前を設定します。

パラメータ:
typeName - SQL型の名前

getLength

public int getLength()
長さを返します。

戻り値:
長さ

setLength

public void setLength(int length)
長さを設定します。

パラメータ:
length - 長さ

getScale

public int getScale()
スケールを返します。

戻り値:
スケール

setScale

public void setScale(int scale)
スケールを設定します。

パラメータ:
scale - スケール

isNullable

public boolean isNullable()
NULL可能の場合trueを返します。

戻り値:
NULL可能の場合true、そうでない場合false

getDefaultValue

public String getDefaultValue()
デフォルト値を返します。

戻り値:
デフォルト値

setDefaultValue

public void setDefaultValue(String defaultValue)
デフォルト値を設定します

パラメータ:
defaultValue - デフォルト値

setNullable

public void setNullable(boolean nullable)
NULL可能の場合trueを設定します。

パラメータ:
nullable - NULL可能の場合true

isPrimaryKey

public boolean isPrimaryKey()
主キーの場合trueを返します。

戻り値:
主キーの場合true、そうでない場合false

setPrimaryKey

public void setPrimaryKey(boolean primaryKey)
主キーの場合 trueを設定します。

パラメータ:
primaryKey - 主キーの場合 true

isAutoIncrement

public boolean isAutoIncrement()
値が自動的に増分される場合trueを返します。

戻り値:
値が自動的に増分される場合true、そうでない場合false

setAutoIncrement

public void setAutoIncrement(boolean autoIncrement)
値が自動的に増分される場合trueを設定します。

パラメータ:
autoIncrement - 値が自動的に増分される場合true、そうでない場合false

isUnique

public boolean isUnique()
一意の場合true、そうでない場合falseを返します。

戻り値:
一意の場合true、そうでない場合false

setUnique

public void setUnique(boolean unique)
一意の場合true、そうでない場合falseを設定します。

パラメータ:
unique - 一意の場合true

getComment

public String getComment()
コメントを返します。

戻り値:
コメント

setComment

public void setComment(String comment)
コメントを設定します。

パラメータ:
comment - コメント

getTableMeta

public TableMeta getTableMeta()
テーブルメタデータ を返します。

戻り値:
テーブルメタデータ

setTableMeta

public void setTableMeta(TableMeta tableMeta)
テーブルメタデータ を設定します。

パラメータ:
tableMeta - テーブルメタデータ


Copyright © 2009-2013 The Seasar Foundation. All Rights Reserved.