|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.seasar.doma.extension.gen.task.EntityConfig
public class EntityConfig
エンティティの設定です。
フィールドの概要 | |
---|---|
protected Long |
allocationSize
識別子の割り当てサイズ、指定しない場合は null |
protected File |
baseDir
ベースディレクトリ |
protected File |
destDir
生成されるJavaファイルの出力先ディレクトリ |
protected String |
encoding
Javaファイルのエンコーディング |
protected File |
entityPropertyClassNamesFile
エンティティプロパティ名の正規表現をキー、クラス名を値とするプロパティファイル |
protected boolean |
generate
生成する場合 true |
protected GenerationTypeAttribute |
generationType
識別子の生成方法、指定しない場合は null |
protected Long |
initialValue
識別子の初期値、指定しない場合は null |
protected String |
listenerSuperclassName
エンティティリスナーに共通のスーパークラスの名前、指定しない場合は null |
protected NamingTypeAttribute |
namingType
ネーミング規約、指定しない場合は null |
protected String |
originalStatesPropertyName
org.seasar.doma.OriginalStates を注釈する対象のプロパティ名 |
protected boolean |
overwrite
同名のエンティティクラスのJavaファイルを上書きする場合 true 、しない場合false |
protected boolean |
overwriteListener
同名のエンティティリスナークラスのJavaファイルを上書きする場合 true 、しない場合false |
protected 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 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()
|
クラス 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 String superclassName
null
protected String listenerSuperclassName
null
protected String packageName
protected GenerationTypeAttribute generationType
null
protected NamingTypeAttribute namingType
null
protected Long initialValue
null
protected 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 String originalStatesPropertyName
org.seasar.doma.OriginalStates
を注釈する対象のプロパティ名
protected File entityPropertyClassNamesFile
protected File destDir
protected String encoding
protected 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 String getSuperclassName()
public void setSuperclassName(String superclassName)
public String getListenerSuperclassName()
public void setListenerSuperclassName(String listenerSuperclassName)
public String getPackageName()
public void setPackageName(String packageName)
public GenerationTypeAttribute getGenerationType()
public void setGenerationType(GenerationTypeAttribute generationType)
public NamingTypeAttribute getNamingType()
public void setNamingType(NamingTypeAttribute namingType)
public Long getInitialValue()
public void setInitialValue(Long initialValue)
public Long getAllocationSize()
public void setAllocationSize(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 File getEntityPropertyClassNamesFile()
public void setEntityPropertyClassNamesFile(File entityPropertyClassNamesFile)
public File getDestDir()
public void setDestDir(File destDir)
public String getEncoding()
public void setEncoding(String encoding)
public String getOriginalStatesPropertyName()
public void setOriginalStatesPropertyName(String originalStatesPropertyName)
protected void setBaseDir(File baseDir)
baseDir
- the baseDir to set
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |