org.seasar.extension.jdbc.gen.desc
クラス ColumnDesc

java.lang.Object
  上位を拡張 org.seasar.extension.jdbc.gen.desc.ColumnDesc

public class ColumnDesc
extends java.lang.Object

カラム記述です。

作成者:
taedium

入れ子のクラスの概要
protected static class ColumnDesc.Key
          キーです。
 
フィールドの概要
protected  java.lang.String comment
          コメント
protected  java.lang.String definition
          定義
protected  boolean identity
          IDENTITYカラムの場合true
protected  ColumnDesc.Key key
          キー
protected  java.lang.String name
          名前
protected  boolean nullable
          null可能ならばtrue
protected  SqlType sqlType
          SQL型
protected  boolean unique
          一意ならばtrue
 
コンストラクタの概要
ColumnDesc()
           
 
メソッドの概要
 boolean equals(java.lang.Object obj)
           
 java.lang.String getComment()
          コメントを返します。
 java.lang.String getDefinition()
          カラム定義を返します。
 java.lang.String getName()
          名前を返します。
 SqlType getSqlType()
          SQL型を返します。
 int hashCode()
           
 boolean isIdentity()
          IDENTITYカラムの場合trueを返します。
 boolean isNullable()
          null可能の場合trueを返します。
 boolean isUnique()
          一意の場合true、そうでない場合falseを返します。
 void setComment(java.lang.String comment)
          コメントを設定します。
 void setDefinition(java.lang.String definition)
          カラム定義を設定します。
 void setIdentity(boolean identity)
          IDENTITYカラムの場合trueを設定します。
 void setName(java.lang.String name)
          名前を設定します。
 void setNullable(boolean nullable)
          null可能の場合trueを設定します。
 void setSqlType(SqlType sqlType)
          SQL型を設定します。
 void setUnique(boolean unique)
          一意の場合true、そうでない場合falseを設定します。
 
クラス java.lang.Object から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

key

protected final ColumnDesc.Key key
キー


name

protected java.lang.String name
名前


definition

protected java.lang.String definition
定義


identity

protected boolean identity
IDENTITYカラムの場合true


nullable

protected boolean nullable
null可能ならばtrue


unique

protected boolean unique
一意ならばtrue


sqlType

protected SqlType sqlType
SQL型


comment

protected java.lang.String comment
コメント

コンストラクタの詳細

ColumnDesc

public ColumnDesc()
メソッドの詳細

getName

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

戻り値:
名前

setName

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

パラメータ:
name - 名前

isNullable

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

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

setNullable

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

パラメータ:
nullable - null可能の場合true、そうでない場合false

getDefinition

public java.lang.String getDefinition()
カラム定義を返します。

戻り値:
カラム定義

setDefinition

public void setDefinition(java.lang.String definition)
カラム定義を設定します。

パラメータ:
definition - カラム定義

isUnique

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

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

setUnique

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

パラメータ:
unique - 一意の場合true、そうでない場合false

isIdentity

public boolean isIdentity()
IDENTITYカラムの場合trueを返します。

戻り値:
IDENTITYカラムの場合true

setIdentity

public void setIdentity(boolean identity)
IDENTITYカラムの場合trueを設定します。

パラメータ:
identity - IDENTITYカラムの場合true

getSqlType

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

戻り値:
SQL型

setSqlType

public void setSqlType(SqlType sqlType)
SQL型を設定します。

パラメータ:
sqlType - SQL型

getComment

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

戻り値:
コメント

setComment

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

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

hashCode

public int hashCode()
オーバーライド:
クラス java.lang.Object 内の hashCode

equals

public boolean equals(java.lang.Object obj)
オーバーライド:
クラス java.lang.Object 内の equals


Copyright © 2004-2014 The Seasar Foundation. All Rights Reserved.