|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.doma.extension.gen.EntityDescFactory
public class EntityDescFactory
エンティティ記述のファクトリです。
入れ子のクラスの概要 | |
---|---|
protected static class |
EntityDescFactory.EntityPropertyInfo
エンティティプロパティ情報です。 |
フィールドの概要 | |
---|---|
protected ClassDescSupport |
classDescSupport
クラス記述のサポートクラス |
protected EntityPropertyDescFactory |
entityPropertyDescFactory
エンティティプロパティ記述のファクトリ |
protected NamingType |
namingType
ネーミング規約 |
protected String |
originalStatesPropertyName
元のステートを表すプロパティの名前 |
protected String |
packageName
パッケージ名 |
protected boolean |
showCatalogName
カタログ名を表示する場合 true |
protected boolean |
showDbComment
データベースのコメントを表示する場合 true |
protected boolean |
showSchemaName
スキーマ名を表示する場合 true |
protected boolean |
showTableName
テーブル名を表示する場合 true |
protected Class<?> |
superclass
スーパークラス |
protected boolean |
useAccessor
アクセッサーを使用する場合 true |
protected boolean |
useListener
エンティティリスナーを使用する場合 true |
コンストラクタの概要 | |
---|---|
EntityDescFactory(String packageName,
Class<?> superclass,
EntityPropertyDescFactory entityPropertyDescFactory,
NamingType namingType,
String originalStatesPropertyName,
boolean showCatalogName,
boolean showSchemaName,
boolean showTableName,
boolean showDbComment,
boolean useAccessor,
boolean useListener)
インスタンスを構築します。 |
メソッドの概要 | |
---|---|
EntityDesc |
createEntityDesc(TableMeta tableMeta)
エンティティ記述を作成します。 |
protected Set<EntityDescFactory.EntityPropertyInfo> |
getSuperclassEntityPropertyInfo()
スーパークラスに定義されたエンティティプロパティの情報のセットを返します。 |
protected void |
handleEntityPropertyDesc(EntityDesc entityDesc,
TableMeta tableMeta)
エンティティプロパティ記述を処理します。 |
protected void |
handleImportName(EntityDesc entityDesc,
TableMeta tableMeta)
インポート名を処理します。 |
protected void |
handleShowTableName(EntityDesc entityDesc,
TableMeta tableMeta)
カタログ名を表示するかどうか処理します。 |
protected void |
handleSimpleName(EntityDesc entityDesc,
TableMeta tableMeta)
単純名を処理します。 |
protected boolean |
isNameDifferentBetweenEntityAndTable(EntityDesc entityDesc)
エンティティ名とテーブル名が異なる場合 true を返します。 |
protected void |
mergeEntityProperty(EntityPropertyDesc dest,
EntityDescFactory.EntityPropertyInfo src)
エンティティプロパティ記述にエンティティプロパティ情報をマージします。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected final String packageName
protected final EntityPropertyDescFactory entityPropertyDescFactory
protected final NamingType namingType
protected String originalStatesPropertyName
protected final boolean showCatalogName
true
protected final boolean showSchemaName
true
protected final boolean showTableName
true
protected final boolean showDbComment
true
protected final boolean useAccessor
true
protected final boolean useListener
true
protected final Class<?> superclass
protected final ClassDescSupport classDescSupport
コンストラクタの詳細 |
---|
public EntityDescFactory(String packageName, Class<?> superclass, EntityPropertyDescFactory entityPropertyDescFactory, NamingType namingType, String originalStatesPropertyName, boolean showCatalogName, boolean showSchemaName, boolean showTableName, boolean showDbComment, boolean useAccessor, boolean useListener)
packageName
- パッケージ名superclass
- スーパークラスentityPropertyDescFactory
- エンティティプロパティ記述のファクトリnamingType
- ネーミング規約showCatalogName
- カタログ名を表示する場合 true
showSchemaName
- スキーマ名を表示する場合 true
showTableName
- テーブル名を表示する場合 true
useAccessor
- アクセッサーを使用する場合 true
useListener
- エンティティリスナーを使用する場合 true
メソッドの詳細 |
---|
public EntityDesc createEntityDesc(TableMeta tableMeta)
tableMeta
- テーブルメタデータ
protected void handleSimpleName(EntityDesc entityDesc, TableMeta tableMeta)
entityDesc
- エンティティ記述tableMeta
- テーブルメタデータprotected void handleShowTableName(EntityDesc entityDesc, TableMeta tableMeta)
entityDesc
- エンティティ記述tableMeta
- テーブルメタデータprotected boolean isNameDifferentBetweenEntityAndTable(EntityDesc entityDesc)
true
を返します。
entityDesc
- エンティティ記述
true
protected void handleEntityPropertyDesc(EntityDesc entityDesc, TableMeta tableMeta)
entityDesc
- エンティティ記述tableMeta
- テーブルメタデータprotected void mergeEntityProperty(EntityPropertyDesc dest, EntityDescFactory.EntityPropertyInfo src)
dest
- エンティティプロパティ記述src
- エンティティプロパティ情報protected Set<EntityDescFactory.EntityPropertyInfo> getSuperclassEntityPropertyInfo()
protected void handleImportName(EntityDesc entityDesc, TableMeta tableMeta)
entityDesc
- エンティティ記述tableMeta
- テーブルメタデータ
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |