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

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

public class TableDescFactoryImpl
extends java.lang.Object
implements TableDescFactory

TableDescFactoryの実装クラスです。

作成者:
taedium

フィールドの概要
protected  ColumnDescFactory columnDescFactory
          カラム記述のファクトリ
protected  GenDialect dialect
          方言
protected  ForeignKeyDescFactory foreignKeyDescFactory
          外部キー記述のファクトリ
protected  IdTableDescFactory idTableDescFactory
          識別子生成用のテーブル記述のファクトリ
protected  PrimaryKeyDescFactory primaryKeyDescFactory
          主キー記述のファクトリ
protected  SequenceDescFactory sequenceDescFactory
          シーケンス記述のファクトリ
protected  java.util.concurrent.ConcurrentMap<java.lang.String,TableDesc> tableDescMap
          テーブルの完全修飾名をキー、テーブル記述を値とするマップ
protected  UniqueKeyDescFactory uniqueKeyDescFactory
          一意キー記述のファクトリ
 
コンストラクタの概要
TableDescFactoryImpl(GenDialect dialect, ColumnDescFactory columnDescFactory, PrimaryKeyDescFactory primaryKeyDescFactory, UniqueKeyDescFactory uniqueKeyDescFactory, ForeignKeyDescFactory foreignKeyDescFactory, SequenceDescFactory sequenceDescFactory, IdTableDescFactory idTableDescFactory)
          インスタンスを構築します。
 
メソッドの概要
protected  java.lang.String buildCanonicalName(TableMeta tableMeta)
          標準名を組み立てます。
protected  java.util.Comparator<org.seasar.extension.jdbc.gen.internal.desc.TableDescFactoryImpl.ColumnDescRef> createColumnDescRefComparator(TableDesc tableDesc)
          カラム記述のComparatorを作成します。
protected  TableDesc createTableDesc(EntityMeta entityMeta)
          テーブル記述を作成します。
protected  void doColumnDesc(EntityMeta entityMeta, TableDesc tableDesc, Table table)
          カラム記述を処理します。
protected  void doComment(EntityMeta entityMeta, TableDesc tableDesc, Table table)
          コメントを処理します。
protected  void doForeignKeyDesc(EntityMeta entityMeta, TableDesc tableDesc, Table table)
          外部キー記述を処理します。
protected  void doIdTableDesc(EntityMeta entityMeta, TableDesc tableDesc, Table table)
          識別子生成用のテーブル記述を処理します。
protected  void doName(EntityMeta entityMeta, TableDesc tableDesc, Table table)
          名前を処理します。
protected  void doPrimaryKeyDesc(EntityMeta entityMeta, TableDesc tableDesc, Table table)
          主キー記述を処理します。
protected  void doSequenceDesc(EntityMeta entityMeta, TableDesc tableDesc, Table table)
          シーケンス記述を処理します。
protected  void doUniqueKeyDesc(EntityMeta entityMeta, TableDesc tableDesc, Table table)
          一意キー記述を処理します。
protected  Table getTable(EntityMeta entityMeta)
          テーブルを取得します。
 TableDesc getTableDesc(EntityMeta entityMeta)
          テーブル記述を返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

tableDescMap

protected java.util.concurrent.ConcurrentMap<java.lang.String,TableDesc> tableDescMap
テーブルの完全修飾名をキー、テーブル記述を値とするマップ


dialect

protected GenDialect dialect
方言


columnDescFactory

protected ColumnDescFactory columnDescFactory
カラム記述のファクトリ


primaryKeyDescFactory

protected PrimaryKeyDescFactory primaryKeyDescFactory
主キー記述のファクトリ


foreignKeyDescFactory

protected ForeignKeyDescFactory foreignKeyDescFactory
外部キー記述のファクトリ


uniqueKeyDescFactory

protected UniqueKeyDescFactory uniqueKeyDescFactory
一意キー記述のファクトリ


sequenceDescFactory

protected SequenceDescFactory sequenceDescFactory
シーケンス記述のファクトリ


idTableDescFactory

protected IdTableDescFactory idTableDescFactory
識別子生成用のテーブル記述のファクトリ

コンストラクタの詳細

TableDescFactoryImpl

public TableDescFactoryImpl(GenDialect dialect,
                            ColumnDescFactory columnDescFactory,
                            PrimaryKeyDescFactory primaryKeyDescFactory,
                            UniqueKeyDescFactory uniqueKeyDescFactory,
                            ForeignKeyDescFactory foreignKeyDescFactory,
                            SequenceDescFactory sequenceDescFactory,
                            IdTableDescFactory idTableDescFactory)
インスタンスを構築します。

パラメータ:
dialect - 方言
columnDescFactory - カラム記述のファクトリ
primaryKeyDescFactory - 主キー記述のファクトリ
uniqueKeyDescFactory - 一意キー記述のファクトリ
foreignKeyDescFactory - 外部キー記述のファクトリ
sequenceDescFactory - シーケンス記述のファクトリ
idTableDescFactory - 識別子生成用のテーブル記述のファクトリ
メソッドの詳細

getTableDesc

public TableDesc getTableDesc(EntityMeta entityMeta)
インタフェース TableDescFactory の記述:
テーブル記述を返します。

定義:
インタフェース TableDescFactory 内の getTableDesc
パラメータ:
entityMeta - エンティティメタデータ
戻り値:
テーブル記述

createTableDesc

protected TableDesc createTableDesc(EntityMeta entityMeta)
テーブル記述を作成します。

パラメータ:
entityMeta - エンティティメタデータ
戻り値:
テーブル記述

doName

protected void doName(EntityMeta entityMeta,
                      TableDesc tableDesc,
                      Table table)
名前を処理します。

パラメータ:
entityMeta - エンティティメタデータ
tableDesc - テーブル記述
table - テーブル

doComment

protected void doComment(EntityMeta entityMeta,
                         TableDesc tableDesc,
                         Table table)
コメントを処理します。

パラメータ:
entityMeta - エンティティメタデータ
tableDesc - テーブル記述
table - テーブル

buildCanonicalName

protected java.lang.String buildCanonicalName(TableMeta tableMeta)
標準名を組み立てます。

パラメータ:
tableMeta - テーブルメタデータ
戻り値:
標準名

doColumnDesc

protected void doColumnDesc(EntityMeta entityMeta,
                            TableDesc tableDesc,
                            Table table)
カラム記述を処理します。

パラメータ:
entityMeta - エンティティメタデータ
tableDesc - テーブル記述
table - テーブル

doPrimaryKeyDesc

protected void doPrimaryKeyDesc(EntityMeta entityMeta,
                                TableDesc tableDesc,
                                Table table)
主キー記述を処理します。

パラメータ:
entityMeta - エンティティメタデータ
tableDesc - テーブル記述
table - テーブル

doForeignKeyDesc

protected void doForeignKeyDesc(EntityMeta entityMeta,
                                TableDesc tableDesc,
                                Table table)
外部キー記述を処理します。

パラメータ:
entityMeta - エンティティメタデータ
tableDesc - テーブル記述
table - テーブル

doUniqueKeyDesc

protected void doUniqueKeyDesc(EntityMeta entityMeta,
                               TableDesc tableDesc,
                               Table table)
一意キー記述を処理します。

パラメータ:
entityMeta - エンティティメタデータ
tableDesc - テーブル記述
table - テーブル

doSequenceDesc

protected void doSequenceDesc(EntityMeta entityMeta,
                              TableDesc tableDesc,
                              Table table)
シーケンス記述を処理します。

パラメータ:
entityMeta - エンティティメタデータ
tableDesc - テーブル記述
table - テーブル

doIdTableDesc

protected void doIdTableDesc(EntityMeta entityMeta,
                             TableDesc tableDesc,
                             Table table)
識別子生成用のテーブル記述を処理します。

パラメータ:
entityMeta - エンティティメタデータ
tableDesc - テーブル記述
table - テーブル

getTable

protected Table getTable(EntityMeta entityMeta)
テーブルを取得します。

パラメータ:
entityMeta - エンティティメタデータ
戻り値:
テーブル

createColumnDescRefComparator

protected java.util.Comparator<org.seasar.extension.jdbc.gen.internal.desc.TableDescFactoryImpl.ColumnDescRef> createColumnDescRefComparator(TableDesc tableDesc)
カラム記述のComparatorを作成します。

パラメータ:
tableDesc - テーブル記述
戻り値:
カラム記述のComparator


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