|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.doma.jdbc.BuiltinSqlFileRepository
public class BuiltinSqlFileRepository
SQLの解析結果を無制限にキャッシュする SqlFileRepository
の実装です。
フィールドの概要 | |
---|---|
protected static String |
SQL_PATH_PREFIX
SQLのパスのプレフィックスです。 |
protected static String |
SQL_PATH_SUFFIX
SQLのパスのサフィックスです。 |
protected ConcurrentMap<String,SqlFile> |
sqlFileMap
SQLのパスをキー、SQLファイルを値とするマップです。 |
コンストラクタの概要 | |
---|---|
BuiltinSqlFileRepository()
|
メソッドの概要 | |
---|---|
protected SqlFile |
createSqlFile(String path,
Dialect dialect)
SQLファイルを作成します。 |
protected String |
getPrimaryPath(String path,
Dialect dialect)
SQLファイルを見つける際の優先パスを取得します。 |
protected String |
getSql(String path)
SQLファイルからSQLを取り出し返します。 |
SqlFile |
getSqlFile(String path,
Dialect dialect)
SQLファイルを返します。 |
protected SqlNode |
parse(String sql)
SQLを解析します。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected static final String SQL_PATH_PREFIX
protected static final String SQL_PATH_SUFFIX
protected final ConcurrentMap<String,SqlFile> sqlFileMap
コンストラクタの詳細 |
---|
public BuiltinSqlFileRepository()
メソッドの詳細 |
---|
public SqlFile getSqlFile(String path, Dialect dialect)
SqlFileRepository
の記述:
SqlFileRepository
内の getSqlFile
path
- SQLファイルのパスdialect
- 方言
protected SqlFile createSqlFile(String path, Dialect dialect)
path
- SQLのパスdialect
- 方言
protected String getPrimaryPath(String path, Dialect dialect)
path
- SQLのパスdialect
- 方言
protected SqlNode parse(String sql)
sql
- SQLの文字列
protected String getSql(String path)
path
- パス
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |