クラス DefaultTableNameMapper
java.lang.Object
org.nkjmlab.sorm4j.extension.impl.DefaultTableNameMapper
- すべての実装されたインタフェース:
TableNameMapper
Default implementation of
TableNameMapper- 作成者:
- nkjm
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明convertToExactTableName(DatabaseMetaData metaData, List<String> tableNameCandidates) Convert from the given table name candidates to the exact table name on the database.getTableName(Class<?> objectClass, DatabaseMetaData metaData) Get table name corresponding with the object class.getTableName(String tableName, DatabaseMetaData metaData) Get table name corresponding with the table name.guessTableNameCandidates(Class<?> objectClass) Guesses table name from the given object class.protected booleanReturns success or not: the given table name is match the one of the given candidates.
-
コンストラクタの詳細
-
DefaultTableNameMapper
public DefaultTableNameMapper()
-
-
メソッドの詳細
-
getTableName
インタフェースからコピーされた説明:TableNameMapperGet table name corresponding with the table name.- 定義:
getTableNameインタフェース内TableNameMapper- パラメータ:
tableName- object class mapping to table- 戻り値:
- table name exists in database.
-
getTableName
インタフェースからコピーされた説明:TableNameMapperGet table name corresponding with the object class.- 定義:
getTableNameインタフェース内TableNameMapper- パラメータ:
objectClass- object class mapping to table- 戻り値:
- table name exists in database.
-
guessTableNameCandidates
Guesses table name from the given object class.- パラメータ:
objectClass-- 戻り値:
-
convertToExactTableName
protected Optional<TableName> convertToExactTableName(DatabaseMetaData metaData, List<String> tableNameCandidates) Convert from the given table name candidates to the exact table name on the database.- パラメータ:
metaData-tableNameCandidates-- 戻り値:
- 例外:
SQLException
-
isMatch
Returns success or not: the given table name is match the one of the given candidates. That is ignore case.- パラメータ:
candidates-exactTableName- is the table name on the database- 戻り値:
-