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

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

public class AttributeDesc
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  int length
          長さ
protected  boolean lob
          LOBの場合true
protected  java.lang.String name
          名前
protected  boolean nullable
          NULL可能の場合true
protected  int precision
          精度
protected  TemporalType primaryTemporalType
          優先する時制の種別
protected  int scale
          スケール
protected  boolean trnsient
          一時的の場合true
protected  boolean unique
          一意の場合true
protected  boolean unsupportedColumnType
          サポートされていないカラム型の場合true
protected  boolean version
          バージョンの場合true
 
コンストラクタの概要
AttributeDesc()
          インスタンスを構築します。
 
メソッドの概要
 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()
          識別子の初期値を返します。
 int getLength()
          長さを返します。
 java.lang.String getName()
          名前を返します。
 int getPrecision()
          精度を返します。
 TemporalType getPrimaryTemporalType()
          優先する時制の種別を返します。
 int getScale()
          スケールを返します。
 TemporalType getTemporalType()
          時制の種別を返します。
 boolean isId()
          識別子の場合trueを返します。
 boolean isLob()
          LOBの場合trueを返します。
 boolean isNullable()
          NULL可能の場合trueを返します。
 boolean isTemporal()
          時制を表す場合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)
          識別子の場合trueを設定します。
 void setInitialValue(int initialValue)
          識別子の初期値を設定します。
 void setLength(int length)
          長さを設定します。
 void setLob(boolean lob)
          LOBの場合trueを設定します。
 void setName(java.lang.String name)
          名前を設定します。
 void setNullable(boolean nullable)
          NULL可能の場合trueを設定します。
 void setPrecision(int precision)
          精度を設定します。
 void setPrimaryTemporalType(TemporalType primaryTemporalType)
          優先する時制の種別を設定します。
 void setScale(int scale)
          スケールを設定します。
 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
識別子の割り当てサイズ


version

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


trnsient

protected boolean trnsient
一時的の場合true


lob

protected boolean lob
LOBの場合true


columnName

protected java.lang.String columnName
カラムの名前


length

protected int length
長さ


precision

protected int precision
精度


scale

protected int scale
スケール


nullable

protected boolean nullable
NULL可能の場合true


unique

protected boolean unique
一意の場合true


columnDefinition

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


columnTypeName

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


unsupportedColumnType

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


comment

protected java.lang.String comment
コメント


primaryTemporalType

protected TemporalType primaryTemporalType
優先する時制の種別

コンストラクタの詳細

AttributeDesc

public AttributeDesc()
インスタンスを構築します。

メソッドの詳細

getName

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

戻り値:
名前

setName

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

パラメータ:
name - 名前

getAttributeClass

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

戻り値:
属性のクラス

setAttributeClass

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

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

isId

public boolean isId()
識別子の場合trueを返します。

戻り値:
識別子の場合true、そうでなければfalse

setId

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

パラメータ:
id - 識別子の場合true

isTemporal

public boolean isTemporal()
時制を表す場合trueを返します。

戻り値:
時制を表す場合true

getTemporalType

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

戻り値:
時制の種別、対応する種別がない場合null

isVersion

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

戻り値:
バージョンの場合true、そうでなければfalse

setVersion

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

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

isTransient

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

戻り値:
一時的の場合true、そうでなければfalse

setTransient

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

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

isLob

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

戻り値:
LOBの場合true、そうでなければfalse

setLob

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

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

getColumnName

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

戻り値:
カラムの名前

setColumnName

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

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

getLength

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

戻り値:
長さ

setLength

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

パラメータ:
length - 長さ

getPrecision

public int getPrecision()
精度を返します。

戻り値:
精度

setPrecision

public void setPrecision(int precision)
精度を設定します。

パラメータ:
precision - 精度

getScale

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

戻り値:
スケール

setScale

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

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

isNullable

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

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

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

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 - コメント

getPrimaryTemporalType

public TemporalType getPrimaryTemporalType()
優先する時制の種別を返します。

戻り値:
優先する時制の種別、存在しない場合はnull

setPrimaryTemporalType

public void setPrimaryTemporalType(TemporalType primaryTemporalType)
優先する時制の種別を設定します。

パラメータ:
primaryTemporalType - 優先する時制の種別


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