public class EntityDescFactory
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
EntityDescFactory.EntityPropertyInfo
エンティティプロパティ情報です。
|
| Modifier and Type | Field and Description |
|---|---|
protected ClassDescSupport |
classDescSupport
クラス記述のサポートクラス
|
protected EntityPropertyDescFactory |
entityPropertyDescFactory
エンティティプロパティ記述のファクトリ
|
protected NamingType |
namingType
ネーミング規約
|
protected java.lang.String |
originalStatesPropertyName
元のステートを表すプロパティの名前
|
protected java.lang.String |
packageName
パッケージ名
|
protected boolean |
showCatalogName
カタログ名を表示する場合
true |
protected boolean |
showDbComment
データベースのコメントを表示する場合
true |
protected boolean |
showSchemaName
スキーマ名を表示する場合
true |
protected boolean |
showTableName
テーブル名を表示する場合
true |
protected java.lang.Class<?> |
superclass
スーパークラス
|
protected boolean |
useAccessor
アクセッサーを使用する場合
true |
protected boolean |
useListener
エンティティリスナーを使用する場合
true |
| Constructor and Description |
|---|
EntityDescFactory(java.lang.String packageName,
java.lang.Class<?> superclass,
EntityPropertyDescFactory entityPropertyDescFactory,
NamingType namingType,
java.lang.String originalStatesPropertyName,
boolean showCatalogName,
boolean showSchemaName,
boolean showTableName,
boolean showDbComment,
boolean useAccessor,
boolean useListener)
インスタンスを構築します。
|
| Modifier and Type | Method and Description |
|---|---|
EntityDesc |
createEntityDesc(TableMeta tableMeta)
エンティティ記述を作成します。
|
EntityDesc |
createEntityDesc(TableMeta tableMeta,
java.lang.String simpleName)
エンティティの名前を指定してエンティティ記述を作成します。
|
protected java.util.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 boolean |
isNameDifferentBetweenEntityAndTable(EntityDesc entityDesc)
エンティティ名とテーブル名が異なる場合
trueを返します。 |
protected void |
mergeEntityProperty(EntityPropertyDesc dest,
EntityDescFactory.EntityPropertyInfo src)
エンティティプロパティ記述にエンティティプロパティ情報をマージします。
|
protected final java.lang.String packageName
protected final EntityPropertyDescFactory entityPropertyDescFactory
protected final NamingType namingType
protected java.lang.String originalStatesPropertyName
protected final boolean showCatalogName
trueprotected final boolean showSchemaName
trueprotected final boolean showTableName
trueprotected final boolean showDbComment
trueprotected final boolean useAccessor
trueprotected final boolean useListener
trueprotected final java.lang.Class<?> superclass
protected final ClassDescSupport classDescSupport
public EntityDescFactory(java.lang.String packageName,
java.lang.Class<?> superclass,
EntityPropertyDescFactory entityPropertyDescFactory,
NamingType namingType,
java.lang.String originalStatesPropertyName,
boolean showCatalogName,
boolean showSchemaName,
boolean showTableName,
boolean showDbComment,
boolean useAccessor,
boolean useListener)
packageName - パッケージ名superclass - スーパークラスentityPropertyDescFactory - エンティティプロパティ記述のファクトリnamingType - ネーミング規約originalStatesPropertyName - オリジナルの状態を表すプロパティの名前showCatalogName - カタログ名を表示する場合 trueshowSchemaName - スキーマ名を表示する場合 trueshowTableName - テーブル名を表示する場合 trueshowDbComment - コメントを表示する場合 trueuseAccessor - アクセッサーを使用する場合 trueuseListener - エンティティリスナーを使用する場合 truepublic EntityDesc createEntityDesc(TableMeta tableMeta)
tableMeta - テーブルメタデータpublic EntityDesc createEntityDesc(TableMeta tableMeta, java.lang.String simpleName)
tableMeta - テーブルメタデータsimpleName - エンティティ名protected void handleShowTableName(EntityDesc entityDesc, TableMeta tableMeta)
entityDesc - エンティティ記述tableMeta - テーブルメタデータprotected boolean isNameDifferentBetweenEntityAndTable(EntityDesc entityDesc)
trueを返します。entityDesc - エンティティ記述trueprotected void handleEntityPropertyDesc(EntityDesc entityDesc, TableMeta tableMeta)
entityDesc - エンティティ記述tableMeta - テーブルメタデータprotected void mergeEntityProperty(EntityPropertyDesc dest, EntityDescFactory.EntityPropertyInfo src)
dest - エンティティプロパティ記述src - エンティティプロパティ情報protected java.util.Set<EntityDescFactory.EntityPropertyInfo> getSuperclassEntityPropertyInfo()
protected void handleImportName(EntityDesc entityDesc, TableMeta tableMeta)
entityDesc - エンティティ記述tableMeta - テーブルメタデータ