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

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

public class SqlDescFactory
extends Object

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

作成者:
taedium

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

コンストラクタの詳細

SqlDescFactory

public SqlDescFactory(File templatePrimaryDir,
                      GenDialect dialect)
インスタンスを構築します。

パラメータ:
templatePrimaryDir - テンプレートを格納するプライマリディレクトリ、使用しない場合 null
dialect - 方言
導入されたバージョン:
1.11.0

SqlDescFactory

public SqlDescFactory(String selectByIdFileName,
                      String selectByIdAndVersionFileName,
                      File templatePrimaryDir,
                      GenDialect dialect)
インスタンスを構築します。

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

createSqlDescs

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

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

createSqlDesc

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

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

findTemplateNames

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

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

removeTemplateExtension

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

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


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