org.seasar.extension.jdbc.gen.internal.model
クラス EntityModelFactoryImpl

java.lang.Object
  上位を拡張 org.seasar.extension.jdbc.gen.internal.model.EntityModelFactoryImpl
すべての実装されたインタフェース:
EntityModelFactory

public class EntityModelFactoryImpl
extends java.lang.Object
implements EntityModelFactory

EntityModelFactoryの実装クラスです。

作成者:
taedium

フィールドの概要
protected  AssociationModelFactory associationModelFactory
          関連モデルのファクトリ
protected  AttributeModelFactory attributeModelFactory
          属性モデルのファクトリ
protected  ClassModelSupport classModelSupport
          クラスモデルのサポート
protected  CompositeUniqueConstraintModelFactory compositeUniqueConstraintModelFactory
          複合一意制約モデルのファクトリ
protected  GeneratedModelSupport generatedModelSupport
          生成モデルのサポート
protected  BeanDesc mappedSuperclassBeanDesc
          superclassMappedSuperclassである場合そのクラスのBean記述、そうでない場合 null
protected  java.lang.String packageName
          パッケージ名、デフォルトパッケージの場合はnull
protected  boolean showCatalogName
          カタログ名を表示する場合true
protected  boolean showSchemaName
          スキーマ名を表示する場合true
protected  boolean showTableName
          テーブル名を表示する場合true
protected  java.lang.Class<?> superclass
          エンティティのスーパークラス、スーパークラスを持たない場合はnull
protected  boolean useAccessor
          エンティティクラスでアクセサを使用する場合 true
protected  boolean useComment
          コメントを使用する場合true
 
コンストラクタの概要
EntityModelFactoryImpl(java.lang.String packageName, java.lang.Class<?> superclass, AttributeModelFactory attributeModelFactory, AssociationModelFactory associationModelFactory, CompositeUniqueConstraintModelFactory compositeUniqueConstraintModelFactory, boolean useAccessor, boolean useComment, boolean showCatalogName, boolean showSchemaName, boolean showTableName)
          インスタンスを構築しますl
 
メソッドの概要
protected  void doAssociationModel(EntityModel entityModel, EntityDesc entityDesc)
          関連モデルを処理します。
protected  void doAttributeModel(EntityModel entityModel, EntityDesc entityDesc)
          属性モデルを処理します。
protected  void doCompositeUniqueConstraintModel(EntityModel entityModel, EntityDesc entityDesc)
          複合一意制約モデルを処理します。
protected  void doGeneratedInfo(EntityModel entityModel, EntityDesc entityDesc)
          生成情報を処理します。
protected  void doImportName(EntityModel model, EntityDesc entityDesc)
          インポート名を処理します。
 EntityModel getEntityModel(EntityDesc entityDesc)
          エンティティクラスのモデルを返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

packageName

protected java.lang.String packageName
パッケージ名、デフォルトパッケージの場合はnull


attributeModelFactory

protected AttributeModelFactory attributeModelFactory
属性モデルのファクトリ


associationModelFactory

protected AssociationModelFactory associationModelFactory
関連モデルのファクトリ


compositeUniqueConstraintModelFactory

protected CompositeUniqueConstraintModelFactory compositeUniqueConstraintModelFactory
複合一意制約モデルのファクトリ


useAccessor

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


useComment

protected boolean useComment
コメントを使用する場合true


showCatalogName

protected boolean showCatalogName
カタログ名を表示する場合true


showSchemaName

protected boolean showSchemaName
スキーマ名を表示する場合true


showTableName

protected boolean showTableName
テーブル名を表示する場合true


superclass

protected java.lang.Class<?> superclass
エンティティのスーパークラス、スーパークラスを持たない場合はnull


mappedSuperclassBeanDesc

protected BeanDesc mappedSuperclassBeanDesc
superclassMappedSuperclassである場合そのクラスのBean記述、そうでない場合 null


classModelSupport

protected ClassModelSupport classModelSupport
クラスモデルのサポート


generatedModelSupport

protected GeneratedModelSupport generatedModelSupport
生成モデルのサポート

コンストラクタの詳細

EntityModelFactoryImpl

public EntityModelFactoryImpl(java.lang.String packageName,
                              java.lang.Class<?> superclass,
                              AttributeModelFactory attributeModelFactory,
                              AssociationModelFactory associationModelFactory,
                              CompositeUniqueConstraintModelFactory compositeUniqueConstraintModelFactory,
                              boolean useAccessor,
                              boolean useComment,
                              boolean showCatalogName,
                              boolean showSchemaName,
                              boolean showTableName)
インスタンスを構築しますl

パラメータ:
packageName - パッケージ名、デフォルトパッケージの場合はnull
superclass - エンティティのスーパークラス、スーパークラスを持たない場合はnull
attributeModelFactory - 属性モデルのファクトリ
associationModelFactory - 関連モデルのファクトリ
compositeUniqueConstraintModelFactory - 複合一意制約モデルのファクトリ
useAccessor - エンティティクラスでアクセサを使用する場合 true
useComment - コメントを使用する場合true
showCatalogName - カタログ名を表示する場合true
showSchemaName - スキーマ名を表示する場合true
showTableName - テーブル名を表示する場合true
メソッドの詳細

getEntityModel

public EntityModel getEntityModel(EntityDesc entityDesc)
インタフェース EntityModelFactory の記述:
エンティティクラスのモデルを返します。

定義:
インタフェース EntityModelFactory 内の getEntityModel
パラメータ:
entityDesc - エンティティ記述
戻り値:
エンティティクラスのモデル

doAttributeModel

protected void doAttributeModel(EntityModel entityModel,
                                EntityDesc entityDesc)
属性モデルを処理します。

パラメータ:
entityModel - エンティティモデル
entityDesc - エンティティ記述

doAssociationModel

protected void doAssociationModel(EntityModel entityModel,
                                  EntityDesc entityDesc)
関連モデルを処理します。

パラメータ:
entityModel - エンティティモデル
entityDesc - エンティティ記述

doCompositeUniqueConstraintModel

protected void doCompositeUniqueConstraintModel(EntityModel entityModel,
                                                EntityDesc entityDesc)
複合一意制約モデルを処理します。

パラメータ:
entityModel - エンティティモデル
entityDesc - エンティティ記述

doImportName

protected void doImportName(EntityModel model,
                            EntityDesc entityDesc)
インポート名を処理します。

パラメータ:
model - エンティティクラスのモデル
entityDesc - エンティティ記述

doGeneratedInfo

protected void doGeneratedInfo(EntityModel entityModel,
                               EntityDesc entityDesc)
生成情報を処理します。

パラメータ:
entityModel - エンティティモデル
entityDesc - エンティティ記述


Copyright © 2004-2014 The Seasar Foundation. All Rights Reserved.