org.seasar.robot.db.allcommon
クラス DBMetaInstanceHandler

java.lang.Object
  上位を拡張 org.seasar.robot.db.allcommon.DBMetaInstanceHandler
すべての実装されたインタフェース:
org.seasar.robot.dbflute.dbmeta.DBMetaProvider

public class DBMetaInstanceHandler
extends java.lang.Object
implements org.seasar.robot.dbflute.dbmeta.DBMetaProvider

The handler of the instance of DB meta.

作成者:
DBFlute(AutoGenerator)

フィールドの概要
protected static org.seasar.robot.dbflute.dbmeta.DBMetaProvider _provider
           
protected static java.util.Map<java.lang.String,java.lang.String> _tableDbNameClassNameMap
          The map of table DB name and class name.
protected static java.util.Map<java.lang.String,java.lang.String> _tableDbNameFlexibleMap
          The flexible map of table DB name.
protected static java.util.Map<java.lang.String,org.seasar.robot.dbflute.dbmeta.DBMeta> _tableDbNameInstanceMap
          Table DB-name instance map.
 
コンストラクタの概要
DBMetaInstanceHandler()
           
 
メソッドの概要
protected static void assertObjectNotNull(java.lang.String variableName, java.lang.Object value)
           
protected static void assertStringNotNullAndNotTrimmedEmpty(java.lang.String variableName, java.lang.String value)
           
protected static org.seasar.robot.dbflute.dbmeta.DBMeta byTableDbName(java.lang.String tableDbName)
           
protected static org.seasar.robot.dbflute.dbmeta.DBMeta byTableFlexibleName(java.lang.String tableFlexibleName)
           
static org.seasar.robot.dbflute.dbmeta.DBMeta findDBMeta(java.lang.String tableFlexibleName)
          Find DB meta by table flexible name.
protected static org.seasar.robot.dbflute.dbmeta.DBMeta getCachedDBMeta(java.lang.String tableDbName)
           
protected static org.seasar.robot.dbflute.dbmeta.DBMeta getDBMeta(java.lang.String className)
           
static org.seasar.robot.dbflute.dbmeta.DBMetaProvider getProvider()
           
static java.util.Map<java.lang.String,org.seasar.robot.dbflute.dbmeta.DBMeta> getUnmodifiableDBMetaMap()
          Get the unmodifiable map of DB meta.
protected static void initializeDBMetaMap()
          Initialize the map of DB meta.
protected static boolean isInitialized()
           
protected static
<KEY,VALUE>
java.util.concurrent.ConcurrentHashMap<KEY,VALUE>
newConcurrentHashMap()
           
protected static
<KEY,VALUE>
java.util.HashMap<KEY,VALUE>
newHashMap()
           
 org.seasar.robot.dbflute.dbmeta.DBMeta provideDBMeta(java.lang.String tableFlexibleName)
           
 org.seasar.robot.dbflute.dbmeta.DBMeta provideDBMetaChecked(java.lang.String tableFlexibleName)
           
protected static java.lang.String removeQuoteIfExists(java.lang.String name)
           
protected static java.lang.String removeSchemaIfExists(java.lang.String name)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

_tableDbNameInstanceMap

protected static final java.util.Map<java.lang.String,org.seasar.robot.dbflute.dbmeta.DBMeta> _tableDbNameInstanceMap
Table DB-name instance map.


_tableDbNameClassNameMap

protected static final java.util.Map<java.lang.String,java.lang.String> _tableDbNameClassNameMap
The map of table DB name and class name. This is for initialization.


_tableDbNameFlexibleMap

protected static final java.util.Map<java.lang.String,java.lang.String> _tableDbNameFlexibleMap
The flexible map of table DB name. This is for conversion at finding.


_provider

protected static final org.seasar.robot.dbflute.dbmeta.DBMetaProvider _provider
コンストラクタの詳細

DBMetaInstanceHandler

public DBMetaInstanceHandler()
メソッドの詳細

getUnmodifiableDBMetaMap

public static java.util.Map<java.lang.String,org.seasar.robot.dbflute.dbmeta.DBMeta> getUnmodifiableDBMetaMap()
Get the unmodifiable map of DB meta.

戻り値:
The unmodifiable map that contains all instances of DB meta. (NotNull & NotEmpty)

initializeDBMetaMap

protected static void initializeDBMetaMap()
Initialize the map of DB meta.


isInitialized

protected static boolean isInitialized()

getProvider

public static org.seasar.robot.dbflute.dbmeta.DBMetaProvider getProvider()

provideDBMeta

public org.seasar.robot.dbflute.dbmeta.DBMeta provideDBMeta(java.lang.String tableFlexibleName)
定義:
インタフェース org.seasar.robot.dbflute.dbmeta.DBMetaProvider 内の provideDBMeta
パラメータ:
tableFlexibleName - The flexible name of table. (NotNull)
戻り値:
The instance of DB meta. (NullAllowed: If the DB meta is not found, it returns null)

provideDBMetaChecked

public org.seasar.robot.dbflute.dbmeta.DBMeta provideDBMetaChecked(java.lang.String tableFlexibleName)
定義:
インタフェース org.seasar.robot.dbflute.dbmeta.DBMetaProvider 内の provideDBMetaChecked
パラメータ:
tableFlexibleName - The flexible name of table. (NotNull)
戻り値:
The instance of DB meta. (NotNull)
例外:
org.seasar.robot.dbflute.exception.DBMetaNotFoundException - When the DB meta is not found.

findDBMeta

public static org.seasar.robot.dbflute.dbmeta.DBMeta findDBMeta(java.lang.String tableFlexibleName)
Find DB meta by table flexible name. (accept quoted name and schema prefix)

パラメータ:
tableFlexibleName - The flexible name of table. (NotNull)
戻り値:
The instance of DB meta. (NotNull)
例外:
org.seasar.robot.dbflute.exception.DBMetaNotFoundException - When the DB meta is not found.

byTableFlexibleName

protected static org.seasar.robot.dbflute.dbmeta.DBMeta byTableFlexibleName(java.lang.String tableFlexibleName)
パラメータ:
tableFlexibleName - The flexible name of table. (NotNull)
戻り値:
The instance of DB meta. (NullAllowed: If the DB meta is not found, it returns null)

removeSchemaIfExists

protected static java.lang.String removeSchemaIfExists(java.lang.String name)

removeQuoteIfExists

protected static java.lang.String removeQuoteIfExists(java.lang.String name)

byTableDbName

protected static org.seasar.robot.dbflute.dbmeta.DBMeta byTableDbName(java.lang.String tableDbName)
パラメータ:
tableDbName - The DB name of table. (NotNull)
戻り値:
The instance of DB meta. (NullAllowed: If the DB meta is not found, it returns null)

getCachedDBMeta

protected static org.seasar.robot.dbflute.dbmeta.DBMeta getCachedDBMeta(java.lang.String tableDbName)

getDBMeta

protected static org.seasar.robot.dbflute.dbmeta.DBMeta getDBMeta(java.lang.String className)

newHashMap

protected static <KEY,VALUE> java.util.HashMap<KEY,VALUE> newHashMap()

newConcurrentHashMap

protected static <KEY,VALUE> java.util.concurrent.ConcurrentHashMap<KEY,VALUE> newConcurrentHashMap()

assertObjectNotNull

protected static void assertObjectNotNull(java.lang.String variableName,
                                          java.lang.Object value)

assertStringNotNullAndNotTrimmedEmpty

protected static void assertStringNotNullAndNotTrimmedEmpty(java.lang.String variableName,
                                                            java.lang.String value)


Copyright © 2012. All Rights Reserved.