org.seasar.extension.jdbc.gen.model
クラス AttributeModel

java.lang.Object
  上位を拡張 org.seasar.extension.jdbc.gen.model.AttributeModel

public class AttributeModel
extends java.lang.Object

エンティティの属性モデルです。

作成者:
taedium

フィールドの概要
protected  int allocationSize
          識別子の割り当てサイズ
protected  java.lang.Class<?> attributeClass
          属性のクラス
protected  java.lang.String columnDefinition
          カラム定義
protected  java.lang.String columnName
          カラム名
protected  java.lang.String columnTypeName
          カラムの型名
protected  java.lang.String comment
          コメント
protected  GenerationType generationType
          識別子の生成方法を示す列挙型、生成しない場合null
protected  boolean id
          識別子の場合true
protected  int initialValue
          識別子の初期値
protected  java.lang.Integer length
          長さ
protected  boolean lob
          LOBの場合true
protected  java.lang.String name
          名前
protected  boolean nullable
          NULL可能の場合true
protected  java.lang.Integer precision
          精度
protected  java.lang.Integer scale
          スケール
protected  TemporalType temporalType
          時制の種別
protected  boolean trnsient
          一時的の場合true
protected  boolean unique
          一意の場合true、そうでない場合false
protected  boolean unsupportedColumnType
          サポートされていないカラム型の場合true
protected  boolean version
          バージョンの場合true
 
コンストラクタの概要
AttributeModel()
           
 
メソッドの概要
 int getAllocationSize()
          識別子の割り当てサイズを返します。
 java.lang.Class<?> getAttributeClass()
          属性のクラスを返します。
 java.lang.String getColumnDefinition()
          カラム定義を返します。
 java.lang.String getColumnName()
          カラム名を返します。
 java.lang.String getColumnTypeName()
          カラムの型名を返します。
 java.lang.String getComment()
          コメントを返します。
 GenerationType getGenerationType()
          識別子の生成方法を示す列挙型を返します。
 int getInitialValue()
          識別子の初期値を返します。
 java.lang.Integer getLength()
          長さを返します。
 java.lang.String getName()
          名前を返します。
 java.lang.Integer getPrecision()
          精度を返します。
 java.lang.Integer getScale()
          スケールを返します。
 TemporalType getTemporalType()
          時制の種別を返します。
 boolean isId()
          識別子を返します。
 boolean isLob()
          LOBの場合trueを返します。
 boolean isNullable()
          NULL可能の場合trueを返します。
 boolean isTransient()
          一時的の場合trueを返します。
 boolean isUnique()
          一意の場合true、そうでない場合falseを返します。
 boolean isUnsupportedColumnType()
          サポートされていないカラム型の場合trueを返します。
 boolean isVersion()
          バージョンの場合trueを返します。
 void setAllocationSize(int allocationSize)
          識別子の割り当てサイズを設定します。
 void setAttributeClass(java.lang.Class<?> attributeClass)
          属性のクラスを設定します。
 void setColumnDefinition(java.lang.String columnDefinition)
          カラム定義を設定します。
 void setColumnName(java.lang.String columnName)
          カラム名を設定します。
 void setColumnTypeName(java.lang.String columnTypeName)
          カラムの型名を設定します。
 void setComment(java.lang.String comment)
          コメントを設定します。
 void setGenerationType(GenerationType generationType)
          識別子の生成方法を示す列挙型を設定します。
 void setId(boolean id)
          識別子を設定します。
 void setInitialValue(int initialValue)
          識別子の初期値を設定します。
 void setLength(java.lang.Integer length)
          長さを設定します。
 void setLob(boolean lob)
          LOBの場合trueを設定します。
 void setName(java.lang.String name)
          名前を設定します。
 void setNullable(boolean nullable)
          NULL可能の場合trueを設定します。
 void setPrecision(java.lang.Integer precision)
          精度を設定します。
 void setScale(java.lang.Integer scale)
          スケールを設定します。
 void setTemporalType(TemporalType temporalType)
          時制の種別を設定します。
 void setTransient(boolean trnsient)
          一時的の場合trueを設定します。
 void setUnique(boolean unique)
          一意の場合true、そうでない場合falseを設定します。
 void setUnsupportedColumnType(boolean unsupportedColumnType)
          サポートされていないカラム型の場合trueを設定します。
 void setVersion(boolean version)
          バージョンの場合trueを設定します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

name

protected java.lang.String name
名前


attributeClass

protected java.lang.Class<?> attributeClass
属性のクラス


id

protected boolean id
識別子の場合true


generationType

protected GenerationType generationType
識別子の生成方法を示す列挙型、生成しない場合null


initialValue

protected int initialValue
識別子の初期値


allocationSize

protected int allocationSize
識別子の割り当てサイズ


temporalType

protected TemporalType temporalType
時制の種別


version

protected boolean version
バージョンの場合true


trnsient

protected boolean trnsient
一時的の場合true


lob

protected boolean lob
LOBの場合true


nullable

protected boolean nullable
NULL可能の場合true


unique

protected boolean unique
一意の場合true、そうでない場合false


length

protected java.lang.Integer length
長さ


precision

protected java.lang.Integer precision
精度


scale

protected java.lang.Integer scale
スケール


columnName

protected java.lang.String columnName
カラム名


columnDefinition

protected java.lang.String columnDefinition
カラム定義


columnTypeName

protected java.lang.String columnTypeName
カラムの型名


unsupportedColumnType

protected boolean unsupportedColumnType
サポートされていないカラム型の場合true


comment

protected java.lang.String comment
コメント

コンストラクタの詳細

AttributeModel

public AttributeModel()
メソッドの詳細

getName

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

戻り値:
名前

setName

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

パラメータ:
name - 名前

isId

public boolean isId()
識別子を返します。

戻り値:
識別子

setId

public void setId(boolean id)
識別子を設定します。

パラメータ:
id - 識別子

isLob

public boolean isLob()
LOBの場合trueを返します。

戻り値:
LOBの場合true

setLob

public void setLob(boolean lob)
LOBの場合trueを設定します。

パラメータ:
lob - LOBの場合true

isTransient

public boolean isTransient()
一時的の場合trueを返します。

戻り値:
一時的の場合true

setTransient

public void setTransient(boolean trnsient)
一時的の場合trueを設定します。

パラメータ:
trnsient - 一時的の場合true

isVersion

public boolean isVersion()
バージョンの場合trueを返します。

戻り値:
バージョンの場合true

setVersion

public void setVersion(boolean version)
バージョンの場合trueを設定します。

パラメータ:
version - バージョンの場合true

isNullable

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

戻り値:
NULL可能の場合true

setNullable

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

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

isUnique

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

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

setUnique

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

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

getLength

public java.lang.Integer getLength()
長さを返します。

戻り値:
長さ

setLength

public void setLength(java.lang.Integer length)
長さを設定します。

パラメータ:
length - 長さ

getPrecision

public java.lang.Integer getPrecision()
精度を返します。

戻り値:
精度

setPrecision

public void setPrecision(java.lang.Integer precision)
精度を設定します。

パラメータ:
precision - 精度

getScale

public java.lang.Integer getScale()
スケールを返します。

戻り値:
スケール

setScale

public void setScale(java.lang.Integer scale)
スケールを設定します。

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

getTemporalType

public TemporalType getTemporalType()
時制の種別を返します。

戻り値:
時制の種別

setTemporalType

public void setTemporalType(TemporalType temporalType)
時制の種別を設定します。

パラメータ:
temporalType - 時制の種別

getAttributeClass

public java.lang.Class<?> getAttributeClass()
属性のクラスを返します。

戻り値:
属性のクラス

setAttributeClass

public void setAttributeClass(java.lang.Class<?> attributeClass)
属性のクラスを設定します。

パラメータ:
attributeClass - 属性のクラス

getColumnName

public java.lang.String getColumnName()
カラム名を返します。

戻り値:
カラム名

setColumnName

public void setColumnName(java.lang.String columnName)
カラム名を設定します。

パラメータ:
columnName - カラム名

getColumnDefinition

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

戻り値:
カラム定義

setColumnDefinition

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

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

getColumnTypeName

public java.lang.String getColumnTypeName()
カラムの型名を返します。

戻り値:
カラムの型名

setColumnTypeName

public void setColumnTypeName(java.lang.String columnTypeName)
カラムの型名を設定します。

パラメータ:
columnTypeName - カラムの型名

isUnsupportedColumnType

public boolean isUnsupportedColumnType()
サポートされていないカラム型の場合trueを返します。

戻り値:
サポートされていないカラム型の場合true、そうでない場合false

setUnsupportedColumnType

public void setUnsupportedColumnType(boolean unsupportedColumnType)
サポートされていないカラム型の場合trueを設定します。

パラメータ:
unsupportedColumnType - サポートされていないカラム型の場合true、そうでない場合false

getGenerationType

public GenerationType getGenerationType()
識別子の生成方法を示す列挙型を返します。

戻り値:
識別子の生成方法を示す列挙型、生成しない場合null

setGenerationType

public void setGenerationType(GenerationType generationType)
識別子の生成方法を示す列挙型を設定します。

パラメータ:
generationType - 識別子の生成方法を示す列挙型、生成しない場合null

getInitialValue

public int getInitialValue()
識別子の初期値を返します。

戻り値:
識別子の初期値

setInitialValue

public void setInitialValue(int initialValue)
識別子の初期値を設定します。

パラメータ:
initialValue - 識別子の初期値

getAllocationSize

public int getAllocationSize()
識別子の割り当てサイズを返します。

戻り値:
識別子の割り当てサイズ

setAllocationSize

public void setAllocationSize(int allocationSize)
識別子の割り当てサイズを設定します。

パラメータ:
allocationSize - 識別子の割り当てサイズ

getComment

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

戻り値:
コメント

setComment

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

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


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