org.seasar.doma.extension.gen.task
クラス EntityConfig

java.lang.Object
  上位を拡張 org.apache.tools.ant.ProjectComponent
      上位を拡張 org.apache.tools.ant.types.DataType
          上位を拡張 org.seasar.doma.extension.gen.task.EntityConfig
すべての実装されたインタフェース:
Cloneable

public class EntityConfig
extends org.apache.tools.ant.types.DataType

エンティティの設定です。

作成者:
taedium

フィールドの概要
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()
           
 
メソッドの概要
 Long getAllocationSize()
           
 File getDestDir()
           
 String getEncoding()
           
 File getEntityPropertyClassNamesFile()
           
 GenerationTypeAttribute getGenerationType()
           
 Long getInitialValue()
           
 String getListenerSuperclassName()
           
 NamingTypeAttribute getNamingType()
           
 String getOriginalStatesPropertyName()
           
 String getPackageName()
           
 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(Long allocationSize)
           
protected  void setBaseDir(File baseDir)
           
 void setDestDir(File destDir)
           
 void setEncoding(String encoding)
           
 void setEntityPropertyClassNamesFile(File entityPropertyClassNamesFile)
           
 void setGenerate(boolean generate)
           
 void setGenerationType(GenerationTypeAttribute generationType)
           
 void setInitialValue(Long initialValue)
           
 void setListenerSuperclassName(String listenerSuperclassName)
           
 void setNamingType(NamingTypeAttribute namingType)
           
 void setOriginalStatesPropertyName(String originalStatesPropertyName)
           
 void setOverwrite(boolean overwrite)
           
 void setOverwriteListener(boolean overwriteListener)
           
 void setPackageName(String packageName)
           
 void setShowCatalogName(boolean showCatalogName)
           
 void setShowColumnName(boolean showColumnName)
           
 void setShowDbComment(boolean showDbComment)
           
 void setShowSchemaName(boolean showSchemaName)
           
 void setShowTableName(boolean showTableName)
           
 void setSuperclassName(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
 

フィールドの詳細

generate

protected boolean generate
生成する場合true


overwrite

protected boolean overwrite
同名のエンティティクラスのJavaファイルを上書きする場合true、しない場合false


overwriteListener

protected boolean overwriteListener
同名のエンティティリスナークラスのJavaファイルを上書きする場合true、しない場合false


superclassName

protected String superclassName
エンティティクラスに共通のスーパークラスの名前、指定しない場合は null


listenerSuperclassName

protected String listenerSuperclassName
エンティティリスナーに共通のスーパークラスの名前、指定しない場合は null


packageName

protected String packageName
エンティティクラスのパッケージ名


generationType

protected GenerationTypeAttribute generationType
識別子の生成方法、指定しない場合は null


namingType

protected NamingTypeAttribute namingType
ネーミング規約、指定しない場合は null


initialValue

protected Long initialValue
識別子の初期値、指定しない場合は null


allocationSize

protected Long allocationSize
識別子の割り当てサイズ、指定しない場合は null


showCatalogName

protected boolean showCatalogName
org.seasar.doma.Table#catalog() でカタログ名を表示する場合 true


showSchemaName

protected boolean showSchemaName
org.seasar.doma.Table#schema() でスキーマ名を表示する場合 true


showTableName

protected boolean showTableName
org.seasar.doma.Table#name() でテーブル名を表示する場合 true


showColumnName

protected boolean showColumnName
org.seasar.doma.Column#name() でカラム名を表示する場合 true


showDbComment

protected boolean showDbComment
エンティティクラスのJavadocコメントでデータベースのコメントを表示する場合 true


useAccessor

protected boolean useAccessor
エンティティクラスでアクセッサーを使用する場合 true


useListener

protected boolean useListener
エンティティリスナーを使用する場合 true


useUtilDate

protected boolean useUtilDate
日付型に Date ではなく Date を利用する場合

導入されたバージョン:
1.9.0

originalStatesPropertyName

protected String originalStatesPropertyName
org.seasar.doma.OriginalStates を注釈する対象のプロパティ名


entityPropertyClassNamesFile

protected File entityPropertyClassNamesFile
エンティティプロパティ名の正規表現をキー、クラス名を値とするプロパティファイル


destDir

protected File destDir
生成されるJavaファイルの出力先ディレクトリ


encoding

protected String encoding
Javaファイルのエンコーディング


baseDir

protected File baseDir
ベースディレクトリ

コンストラクタの詳細

EntityConfig

public EntityConfig()
メソッドの詳細

isGenerate

public boolean isGenerate()

setGenerate

public void setGenerate(boolean generate)

isOverwrite

public boolean isOverwrite()

setOverwrite

public void setOverwrite(boolean overwrite)

isOverwriteListener

public boolean isOverwriteListener()

setOverwriteListener

public void setOverwriteListener(boolean overwriteListener)

getSuperclassName

public String getSuperclassName()

setSuperclassName

public void setSuperclassName(String superclassName)

getListenerSuperclassName

public String getListenerSuperclassName()

setListenerSuperclassName

public void setListenerSuperclassName(String listenerSuperclassName)

getPackageName

public String getPackageName()

setPackageName

public void setPackageName(String packageName)

getGenerationType

public GenerationTypeAttribute getGenerationType()

setGenerationType

public void setGenerationType(GenerationTypeAttribute generationType)

getNamingType

public NamingTypeAttribute getNamingType()

setNamingType

public void setNamingType(NamingTypeAttribute namingType)

getInitialValue

public Long getInitialValue()

setInitialValue

public void setInitialValue(Long initialValue)

getAllocationSize

public Long getAllocationSize()

setAllocationSize

public void setAllocationSize(Long allocationSize)

isShowCatalogName

public boolean isShowCatalogName()

setShowCatalogName

public void setShowCatalogName(boolean showCatalogName)

isShowSchemaName

public boolean isShowSchemaName()

setShowSchemaName

public void setShowSchemaName(boolean showSchemaName)

isShowTableName

public boolean isShowTableName()

setShowTableName

public void setShowTableName(boolean showTableName)

isShowColumnName

public boolean isShowColumnName()

setShowColumnName

public void setShowColumnName(boolean showColumnName)

isShowDbComment

public boolean isShowDbComment()

setShowDbComment

public void setShowDbComment(boolean showDbComment)

isUseAccessor

public boolean isUseAccessor()

setUseAccessor

public void setUseAccessor(boolean useAccessor)

isUseListener

public boolean isUseListener()

setUseListener

public void setUseListener(boolean useListener)

isUseUtilDate

public boolean isUseUtilDate()

setUseUtilDate

public void setUseUtilDate(boolean useUtilDate)

getEntityPropertyClassNamesFile

public File getEntityPropertyClassNamesFile()

setEntityPropertyClassNamesFile

public void setEntityPropertyClassNamesFile(File entityPropertyClassNamesFile)

getDestDir

public File getDestDir()

setDestDir

public void setDestDir(File destDir)

getEncoding

public String getEncoding()

setEncoding

public void setEncoding(String encoding)

getOriginalStatesPropertyName

public String getOriginalStatesPropertyName()

setOriginalStatesPropertyName

public void setOriginalStatesPropertyName(String originalStatesPropertyName)

setBaseDir

protected void setBaseDir(File baseDir)
パラメータ:
baseDir - the baseDir to set


Copyright © 2009-2013 The Seasar Foundation. All Rights Reserved.