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

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

public class IdTableDescFactoryImpl
extends java.lang.Object
implements IdTableDescFactory

IdTableDescFactoryの実装クラスです。

作成者:
taedium

フィールドの概要
protected  GenDialect dialect
          方言
protected  UniqueKeyDescFactory uniqueKeyDescFactory
          一意キー記述のファクトリ
 
コンストラクタの概要
IdTableDescFactoryImpl(GenDialect dialect, UniqueKeyDescFactory uniqueKeyDescFactory)
           
 
メソッドの概要
protected  java.lang.String buildCanonicalName(java.lang.String catalog, java.lang.String schema, java.lang.String name)
          標準名を組み立てます。
protected  void doName(EntityMeta entityMeta, TableDesc tableDesc, TableGenerator generator)
          名前を処理します。
protected  void doPrimaryKeyColumn(EntityMeta entityMeta, TableDesc tableDesc, TableGenerator generator)
          主キー記述を処理します。
protected  void doUniqueConstraints(EntityMeta entityMeta, TableDesc tableDesc, TableGenerator generator)
          一意キー記述を処理します。
protected  void doValueColumn(EntityMeta entityMeta, TableDesc tableDesc, TableGenerator generator)
          カラム記述を処理します。
 TableDesc getTableDesc(EntityMeta entityMeta, PropertyMeta propertyMeta)
          識別子を生成するテーブル記述を返します。
protected  TableGenerator getTableGenerator(EntityMeta entityMeta, PropertyMeta propertyMeta)
          テーブルジェネレータを返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

dialect

protected GenDialect dialect
方言


uniqueKeyDescFactory

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

コンストラクタの詳細

IdTableDescFactoryImpl

public IdTableDescFactoryImpl(GenDialect dialect,
                              UniqueKeyDescFactory uniqueKeyDescFactory)
パラメータ:
dialect - 方言
uniqueKeyDescFactory - 一意キー記述のファクトリ
メソッドの詳細

getTableDesc

public TableDesc getTableDesc(EntityMeta entityMeta,
                              PropertyMeta propertyMeta)
インタフェース IdTableDescFactory の記述:
識別子を生成するテーブル記述を返します。

定義:
インタフェース IdTableDescFactory 内の getTableDesc
パラメータ:
entityMeta - エンティティメタデータ
propertyMeta - プロパティメタデータ
戻り値:
存在する場合は識別子を生成するテーブル記述、存在しない場合はnull

doName

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

パラメータ:
entityMeta - エンティティメタデータ
tableDesc - テーブル記述
generator - テーブルジェネレータ

buildCanonicalName

protected java.lang.String buildCanonicalName(java.lang.String catalog,
                                              java.lang.String schema,
                                              java.lang.String name)
標準名を組み立てます。

パラメータ:
catalog - カタログ名
schema - スキーマ名
name - テーブル名
戻り値:
完全な名前

doPrimaryKeyColumn

protected void doPrimaryKeyColumn(EntityMeta entityMeta,
                                  TableDesc tableDesc,
                                  TableGenerator generator)
主キー記述を処理します。

パラメータ:
entityMeta - エンティティメタデータ
propertyMeta - プロパティメタデータ
tableDesc - テーブル記述
generator - テーブルジェネレータ

doValueColumn

protected void doValueColumn(EntityMeta entityMeta,
                             TableDesc tableDesc,
                             TableGenerator generator)
カラム記述を処理します。

パラメータ:
entityMeta - エンティティメタデータ
propertyMetaList - プロパティメタデータのリスト
tableDesc - テーブル記述
generator - テーブルジェネレータ

doUniqueConstraints

protected void doUniqueConstraints(EntityMeta entityMeta,
                                   TableDesc tableDesc,
                                   TableGenerator generator)
一意キー記述を処理します。

パラメータ:
entityMeta - エンティティメタデータ
tableDesc - テーブル記述
generator - テーブルジェネレータ

getTableGenerator

protected TableGenerator getTableGenerator(EntityMeta entityMeta,
                                           PropertyMeta propertyMeta)
テーブルジェネレータを返します。

パラメータ:
entityMeta - エンティティメタデータ
propertyMeta - プロパティメタデータ
戻り値:
テーブルジェネレータ


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