|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.doma.extension.gen.ColumnMeta
public class ColumnMeta
データベースのカラムメタデータです。
フィールドの概要 | |
---|---|
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 |
フィールドの詳細 |
---|
protected String name
protected int sqlType
protected String typeName
protected int length
protected int scale
protected String defaultValue
protected boolean nullable
true
protected boolean primaryKey
true
protected boolean autoIncrement
true
protected boolean unique
true
protected String comment
protected TableMeta tableMeta
コンストラクタの詳細 |
---|
public ColumnMeta()
メソッドの詳細 |
---|
public String getName()
public void setName(String name)
name
- 名前public int getSqlType()
public void setSqlType(int sqlType)
sqlType
- SQL型public String getTypeName()
public void setTypeName(String typeName)
typeName
- SQL型の名前public int getLength()
public void setLength(int length)
length
- 長さpublic int getScale()
public void setScale(int scale)
scale
- スケールpublic boolean isNullable()
true
を返します。
true
、そうでない場合false
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
defaultValue
- デフォルト値public void setNullable(boolean nullable)
true
を設定します。
nullable
- NULL可能の場合true
public boolean isPrimaryKey()
true
を返します。
true
、そうでない場合false
public void setPrimaryKey(boolean primaryKey)
true
を設定します。
primaryKey
- 主キーの場合 true
public boolean isAutoIncrement()
true
を返します。
true
、そうでない場合false
public void setAutoIncrement(boolean autoIncrement)
true
を設定します。
autoIncrement
- 値が自動的に増分される場合true
、そうでない場合false
public boolean isUnique()
true
、そうでない場合false
を返します。
true
、そうでない場合false
public void setUnique(boolean unique)
true
、そうでない場合false
を設定します。
unique
- 一意の場合true
public String getComment()
public void setComment(String comment)
comment
- コメントpublic TableMeta getTableMeta()
public void setTableMeta(TableMeta tableMeta)
tableMeta
- テーブルメタデータ
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |