org.seasar.doma.extension.gen
クラス SqlDescFactory

java.lang.Object
  上位を拡張 org.seasar.doma.extension.gen.SqlDescFactory

public class SqlDescFactory
extends java.lang.Object

SQL記述のファクトリです。

作成者:
taedium

コンストラクタの概要
SqlDescFactory(java.io.File templatePrimaryDir)
          インスタンスを構築します。
SqlDescFactory(java.lang.String selectByIdFileName, java.lang.String selectByIdAndVersionFileName, java.io.File templatePrimaryDir)
          インスタンスを構築します。
 
メソッドの概要
protected  SqlDesc createSqlDesc(EntityDesc entityDesc, java.lang.String fileName, java.lang.String templateName)
          SQL記述を返します。
 java.util.List<SqlDesc> createSqlDescs(EntityDesc entityDesc)
          SQL記述のリストを返します。
protected  java.util.Set<java.lang.String> findTemplateNames()
          テンプレートのファイル名を探します。
protected  java.lang.String removeTemplateExtension(java.lang.String templateName)
          テンプレートファイルの拡張子を削除します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

SqlDescFactory

public SqlDescFactory(java.io.File templatePrimaryDir)
インスタンスを構築します。

導入されたバージョン:
1.7.0

SqlDescFactory

public SqlDescFactory(java.lang.String selectByIdFileName,
                      java.lang.String selectByIdAndVersionFileName,
                      java.io.File templatePrimaryDir)
インスタンスを構築します。

パラメータ:
selectByIdFileName - 識別子による検索メソッドの名前
selectByIdAndVersionFileName - 識別子とバージョンによる検索メソッドの名前
templatePrimaryDir - テンプレートを格納するプライマリディレクトリ、使用しない場合 null
導入されたバージョン:
1.7.0
メソッドの詳細

createSqlDescs

public java.util.List<SqlDesc> createSqlDescs(EntityDesc entityDesc)
SQL記述のリストを返します。

パラメータ:
entityDesc - エンティティ記述
戻り値:
SQL記述のリスト

createSqlDesc

protected SqlDesc createSqlDesc(EntityDesc entityDesc,
                                java.lang.String fileName,
                                java.lang.String templateName)
SQL記述を返します。

パラメータ:
entityDesc - エンティティ記述
fileName - ファイル名
templateName - テンプレート名
戻り値:
SQL記述

findTemplateNames

protected java.util.Set<java.lang.String> findTemplateNames()
テンプレートのファイル名を探します。

戻り値:
テンプレートのファイル名のセット
導入されたバージョン:
1.7.0

removeTemplateExtension

protected java.lang.String removeTemplateExtension(java.lang.String templateName)
テンプレートファイルの拡張子を削除します。

パラメータ:
templateName - テンプレートファイル名
戻り値:
テンプレートファイルの拡張子を削除した文字列
導入されたバージョン:
1.7.0


Copyright © 2009-2010 The Seasar Foundation. All Rights Reserved.