org.seasar.extension.jdbc.gen.internal.desc
クラス EntitySetDescFactoryImpl

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

public class EntitySetDescFactoryImpl
extends java.lang.Object
implements EntitySetDescFactory

EntitySetDescFactoryの実装クラスです。

作成者:
taedium

フィールドの概要
protected  java.lang.Integer allocationSize
          エンティティの識別子の割り当てサイズ、指定しない場合はnull
protected  DbTableMetaReader dbTableMetaReader
          テーブルメタデータのリーダ
protected  GenDialect dialect
          方言
protected  EntityDescFactory entityDescFactory
          エンティティ記述のファクトリ
protected  GenerationType generationType
          エンティティの識別子の生成方法を示す列挙型 、生成しない場合はnull
protected  java.lang.Integer initialValue
          エンティティの識別子の初期値、指定しない場合はnull
protected  PersistenceConvention persistenceConvention
          永続化層の命名規約
protected  java.io.File pluralFormFile
          単語を複数系に変換するための辞書ファイル、使用しない場合はnull
protected  java.lang.String versionColumnNamePattern
          バージョンカラム名のパターン
 
コンストラクタの概要
EntitySetDescFactoryImpl(DbTableMetaReader dbTableMetaReader, PersistenceConvention persistenceConvention, GenDialect dialect, java.lang.String versionColumnNamePattern, java.io.File pluralFormFile, GenerationType generationType, java.lang.Integer initialValue, java.lang.Integer allocationSize)
          インスタンスを構築します。
 
メソッドの概要
protected  AssociationResolver createAssociationResolver(EntitySetDesc entitySetDesc, PluralFormDictinary pluralFormDictinary)
          関連のリゾルバを作成します。
protected  EntityDescFactory createEntityDescFactory()
          EntityDescFactoryの実装を作成します。
protected  PluralFormDictinary createPluralFormDictinary()
          単語を複数形に変換するための辞書を作成します。
 EntitySetDesc getEntitySetDesc()
          エンティティ集合記述を返します。
 java.util.LinkedHashMap<java.lang.String,java.lang.String> loadPluralFormFile()
          辞書ファイルをロードし結果をLinkedHashMapとして返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

dbTableMetaReader

protected DbTableMetaReader dbTableMetaReader
テーブルメタデータのリーダ


persistenceConvention

protected PersistenceConvention persistenceConvention
永続化層の命名規約


dialect

protected GenDialect dialect
方言


versionColumnNamePattern

protected java.lang.String versionColumnNamePattern
バージョンカラム名のパターン


pluralFormFile

protected java.io.File pluralFormFile
単語を複数系に変換するための辞書ファイル、使用しない場合はnull


generationType

protected GenerationType generationType
エンティティの識別子の生成方法を示す列挙型 、生成しない場合はnull


initialValue

protected java.lang.Integer initialValue
エンティティの識別子の初期値、指定しない場合はnull


allocationSize

protected java.lang.Integer allocationSize
エンティティの識別子の割り当てサイズ、指定しない場合はnull


entityDescFactory

protected EntityDescFactory entityDescFactory
エンティティ記述のファクトリ

コンストラクタの詳細

EntitySetDescFactoryImpl

public EntitySetDescFactoryImpl(DbTableMetaReader dbTableMetaReader,
                                PersistenceConvention persistenceConvention,
                                GenDialect dialect,
                                java.lang.String versionColumnNamePattern,
                                java.io.File pluralFormFile,
                                GenerationType generationType,
                                java.lang.Integer initialValue,
                                java.lang.Integer allocationSize)
インスタンスを構築します。

パラメータ:
dbTableMetaReader - テーブルメタデータのリーダ
dialect - 方言
persistenceConvention - 永続化層の命名規約
versionColumnNamePattern - バージョンカラム名のパターン
pluralFormFile - 単語を複数系に変換するための辞書ファイル、使用しない場合はnull
generationType - エンティティの識別子の生成方法を示す列挙型 、生成しない場合はnull
initialValue - エンティティの識別子の初期値、指定しない場合はnull
allocationSize - エンティティの識別子の割り当てサイズ、指定しない場合はnull
メソッドの詳細

getEntitySetDesc

public EntitySetDesc getEntitySetDesc()
インタフェース EntitySetDescFactory の記述:
エンティティ集合記述を返します。

定義:
インタフェース EntitySetDescFactory 内の getEntitySetDesc
戻り値:
エンティティ集合記述

createEntityDescFactory

protected EntityDescFactory createEntityDescFactory()
EntityDescFactoryの実装を作成します。

戻り値:
EntityDescFactoryの実装

createAssociationResolver

protected AssociationResolver createAssociationResolver(EntitySetDesc entitySetDesc,
                                                        PluralFormDictinary pluralFormDictinary)
関連のリゾルバを作成します。

パラメータ:
entitySetDesc - エンティティ集合記述
pluralFormDictinary - 単語を複数形に変換するための辞書
戻り値:
関連のリゾルバ

createPluralFormDictinary

protected PluralFormDictinary createPluralFormDictinary()
単語を複数形に変換するための辞書を作成します。

戻り値:
単語を複数形に変換するための辞書

loadPluralFormFile

public java.util.LinkedHashMap<java.lang.String,java.lang.String> loadPluralFormFile()
辞書ファイルをロードし結果をLinkedHashMapとして返します。

戻り値:
正規表現をキー、置換文字列を値とするマップ


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