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