|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.seasar.doma.extension.gen.task.EntityConfig
public class EntityConfig
エンティティの設定です。
フィールドの概要 | |
---|---|
protected java.lang.Long |
allocationSize
識別子の割り当てサイズ、指定しない場合は null |
protected java.io.File |
baseDir
ベースディレクトリ |
protected java.io.File |
destDir
生成されるJavaファイルの出力先ディレクトリ |
protected java.lang.String |
encoding
Javaファイルのエンコーディング |
protected java.io.File |
entityPropertyClassNamesFile
エンティティプロパティ名の正規表現をキー、クラス名を値とするプロパティファイル |
protected boolean |
generate
生成する場合 true |
protected GenerationTypeAttribute |
generationType
識別子の生成方法、指定しない場合は null |
protected java.lang.Long |
initialValue
識別子の初期値、指定しない場合は null |
protected java.lang.String |
listenerSuperclassName
エンティティリスナーに共通のスーパークラスの名前、指定しない場合は null |
protected NamingTypeAttribute |
namingType
ネーミング規約、指定しない場合は null |
protected java.lang.String |
originalStatesPropertyName
org.seasar.doma.OriginalStates を注釈する対象のプロパティ名 |
protected boolean |
overwrite
同名のエンティティクラスのJavaファイルを上書きする場合 true 、しない場合false |
protected boolean |
overwriteListener
同名のエンティティリスナークラスのJavaファイルを上書きする場合 true 、しない場合false |
protected java.lang.String |
packageName
エンティティクラスのパッケージ名 |
protected boolean |
showCatalogName
org.seasar.doma.Table#catalog() でカタログ名を表示する場合 true |
protected boolean |
showColumnName
org.seasar.doma.Column#name() でカラム名を表示する場合 true |
protected boolean |
showDbComment
エンティティクラスのJavadocコメントでデータベースのコメントを表示する場合 true |
protected boolean |
showSchemaName
org.seasar.doma.Table#schema() でスキーマ名を表示する場合 true |
protected boolean |
showTableName
org.seasar.doma.Table#name() でテーブル名を表示する場合 true |
protected java.lang.String |
superclassName
エンティティクラスに共通のスーパークラスの名前、指定しない場合は null |
protected boolean |
useAccessor
エンティティクラスでアクセッサーを使用する場合 true |
protected boolean |
useListener
エンティティリスナーを使用する場合 true |
protected boolean |
useUtilDate
日付型に Date ではなく Date を利用する場合 |
クラス org.apache.tools.ant.types.DataType から継承されたフィールド |
---|
checked, ref |
クラス org.apache.tools.ant.ProjectComponent から継承されたフィールド |
---|
description, location, project |
コンストラクタの概要 | |
---|---|
EntityConfig()
|
メソッドの概要 | |
---|---|
java.lang.Long |
getAllocationSize()
|
java.io.File |
getDestDir()
|
java.lang.String |
getEncoding()
|
java.io.File |
getEntityPropertyClassNamesFile()
|
GenerationTypeAttribute |
getGenerationType()
|
java.lang.Long |
getInitialValue()
|
java.lang.String |
getListenerSuperclassName()
|
NamingTypeAttribute |
getNamingType()
|
java.lang.String |
getOriginalStatesPropertyName()
|
java.lang.String |
getPackageName()
|
java.lang.String |
getSuperclassName()
|
boolean |
isGenerate()
|
boolean |
isOverwrite()
|
boolean |
isOverwriteListener()
|
boolean |
isShowCatalogName()
|
boolean |
isShowColumnName()
|
boolean |
isShowDbComment()
|
boolean |
isShowSchemaName()
|
boolean |
isShowTableName()
|
boolean |
isUseAccessor()
|
boolean |
isUseListener()
|
boolean |
isUseUtilDate()
|
void |
setAllocationSize(java.lang.Long allocationSize)
|
protected void |
setBaseDir(java.io.File baseDir)
|
void |
setDestDir(java.io.File destDir)
|
void |
setEncoding(java.lang.String encoding)
|
void |
setEntityPropertyClassNamesFile(java.io.File entityPropertyClassNamesFile)
|
void |
setGenerate(boolean generate)
|
void |
setGenerationType(GenerationTypeAttribute generationType)
|
void |
setInitialValue(java.lang.Long initialValue)
|
void |
setListenerSuperclassName(java.lang.String listenerSuperclassName)
|
void |
setNamingType(NamingTypeAttribute namingType)
|
void |
setOriginalStatesPropertyName(java.lang.String originalStatesPropertyName)
|
void |
setOverwrite(boolean overwrite)
|
void |
setOverwriteListener(boolean overwriteListener)
|
void |
setPackageName(java.lang.String packageName)
|
void |
setShowCatalogName(boolean showCatalogName)
|
void |
setShowColumnName(boolean showColumnName)
|
void |
setShowDbComment(boolean showDbComment)
|
void |
setShowSchemaName(boolean showSchemaName)
|
void |
setShowTableName(boolean showTableName)
|
void |
setSuperclassName(java.lang.String superclassName)
|
void |
setUseAccessor(boolean useAccessor)
|
void |
setUseListener(boolean useListener)
|
void |
setUseUtilDate(boolean useUtilDate)
|
クラス org.apache.tools.ant.types.DataType から継承されたメソッド |
---|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, setChecked, setRefid, tooManyAttributes, toString |
クラス org.apache.tools.ant.ProjectComponent から継承されたメソッド |
---|
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject |
クラス java.lang.Object から継承されたメソッド |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
---|
protected boolean generate
true
protected boolean overwrite
true
、しない場合false
protected boolean overwriteListener
true
、しない場合false
protected java.lang.String superclassName
null
protected java.lang.String listenerSuperclassName
null
protected java.lang.String packageName
protected GenerationTypeAttribute generationType
null
protected NamingTypeAttribute namingType
null
protected java.lang.Long initialValue
null
protected java.lang.Long allocationSize
null
protected boolean showCatalogName
org.seasar.doma.Table#catalog()
でカタログ名を表示する場合 true
protected boolean showSchemaName
org.seasar.doma.Table#schema()
でスキーマ名を表示する場合 true
protected boolean showTableName
org.seasar.doma.Table#name()
でテーブル名を表示する場合 true
protected boolean showColumnName
org.seasar.doma.Column#name()
でカラム名を表示する場合 true
protected boolean showDbComment
true
protected boolean useAccessor
true
protected boolean useListener
true
protected boolean useUtilDate
Date
ではなく Date
を利用する場合
protected java.lang.String originalStatesPropertyName
org.seasar.doma.OriginalStates
を注釈する対象のプロパティ名
protected java.io.File entityPropertyClassNamesFile
protected java.io.File destDir
protected java.lang.String encoding
protected java.io.File baseDir
コンストラクタの詳細 |
---|
public EntityConfig()
メソッドの詳細 |
---|
public boolean isGenerate()
public void setGenerate(boolean generate)
public boolean isOverwrite()
public void setOverwrite(boolean overwrite)
public boolean isOverwriteListener()
public void setOverwriteListener(boolean overwriteListener)
public java.lang.String getSuperclassName()
public void setSuperclassName(java.lang.String superclassName)
public java.lang.String getListenerSuperclassName()
public void setListenerSuperclassName(java.lang.String listenerSuperclassName)
public java.lang.String getPackageName()
public void setPackageName(java.lang.String packageName)
public GenerationTypeAttribute getGenerationType()
public void setGenerationType(GenerationTypeAttribute generationType)
public NamingTypeAttribute getNamingType()
public void setNamingType(NamingTypeAttribute namingType)
public java.lang.Long getInitialValue()
public void setInitialValue(java.lang.Long initialValue)
public java.lang.Long getAllocationSize()
public void setAllocationSize(java.lang.Long allocationSize)
public boolean isShowCatalogName()
public void setShowCatalogName(boolean showCatalogName)
public boolean isShowSchemaName()
public void setShowSchemaName(boolean showSchemaName)
public boolean isShowTableName()
public void setShowTableName(boolean showTableName)
public boolean isShowColumnName()
public void setShowColumnName(boolean showColumnName)
public boolean isShowDbComment()
public void setShowDbComment(boolean showDbComment)
public boolean isUseAccessor()
public void setUseAccessor(boolean useAccessor)
public boolean isUseListener()
public void setUseListener(boolean useListener)
public boolean isUseUtilDate()
public void setUseUtilDate(boolean useUtilDate)
public java.io.File getEntityPropertyClassNamesFile()
public void setEntityPropertyClassNamesFile(java.io.File entityPropertyClassNamesFile)
public java.io.File getDestDir()
public void setDestDir(java.io.File destDir)
public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
public java.lang.String getOriginalStatesPropertyName()
public void setOriginalStatesPropertyName(java.lang.String originalStatesPropertyName)
protected void setBaseDir(java.io.File baseDir)
baseDir
- the baseDir to set
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |