Package org.apache.ibatis.session
Class Configuration
- java.lang.Object
-
- org.apache.ibatis.session.Configuration
-
public class Configuration extends java.lang.Object
- Author:
- Clinton Begin
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
Configuration.StrictMap<V>
-
Field Summary
Fields Modifier and Type Field Description protected boolean
aggressiveLazyLoading
protected AutoMappingBehavior
autoMappingBehavior
protected AutoMappingUnknownColumnBehavior
autoMappingUnknownColumnBehavior
protected boolean
cacheEnabled
protected java.util.Map<java.lang.String,java.lang.String>
cacheRefMap
protected java.util.Map<java.lang.String,Cache>
caches
protected boolean
callSettersOnNulls
protected java.lang.Class<?>
configurationFactory
Configuration factory class.protected java.lang.String
databaseId
protected ExecutorType
defaultExecutorType
protected java.lang.Integer
defaultFetchSize
protected ResultSetType
defaultResultSetType
protected java.lang.Integer
defaultStatementTimeout
protected Environment
environment
protected java.util.Collection<CacheRefResolver>
incompleteCacheRefs
protected java.util.Collection<MethodResolver>
incompleteMethods
protected java.util.Collection<ResultMapResolver>
incompleteResultMaps
protected java.util.Collection<XMLStatementBuilder>
incompleteStatements
protected InterceptorChain
interceptorChain
protected JdbcType
jdbcTypeForNull
protected java.util.Map<java.lang.String,KeyGenerator>
keyGenerators
protected LanguageDriverRegistry
languageRegistry
protected boolean
lazyLoadingEnabled
protected java.util.Set<java.lang.String>
lazyLoadTriggerMethods
protected java.util.Set<java.lang.String>
loadedResources
protected LocalCacheScope
localCacheScope
protected java.lang.Class<? extends Log>
logImpl
protected java.lang.String
logPrefix
protected java.util.Map<java.lang.String,MappedStatement>
mappedStatements
protected MapperRegistry
mapperRegistry
protected boolean
mapUnderscoreToCamelCase
protected boolean
multipleResultSetsEnabled
protected ObjectFactory
objectFactory
protected ObjectWrapperFactory
objectWrapperFactory
protected java.util.Map<java.lang.String,ParameterMap>
parameterMaps
protected ProxyFactory
proxyFactory
protected ReflectorFactory
reflectorFactory
protected java.util.Map<java.lang.String,ResultMap>
resultMaps
protected boolean
returnInstanceForEmptyRow
protected boolean
safeResultHandlerEnabled
protected boolean
safeRowBoundsEnabled
protected java.util.Map<java.lang.String,XNode>
sqlFragments
protected TypeAliasRegistry
typeAliasRegistry
protected TypeHandlerRegistry
typeHandlerRegistry
protected boolean
useActualParamName
protected boolean
useColumnLabel
protected boolean
useGeneratedKeys
protected java.util.Properties
variables
protected java.lang.Class<? extends VFS>
vfsImpl
-
Constructor Summary
Constructors Constructor Description Configuration()
Configuration(Environment environment)
-
Method Summary
Modifier and Type Method Description void
addCache(Cache cache)
void
addCacheRef(java.lang.String namespace, java.lang.String referencedNamespace)
void
addIncompleteCacheRef(CacheRefResolver incompleteCacheRef)
void
addIncompleteMethod(MethodResolver builder)
void
addIncompleteResultMap(ResultMapResolver resultMapResolver)
void
addIncompleteStatement(XMLStatementBuilder incompleteStatement)
void
addInterceptor(Interceptor interceptor)
void
addKeyGenerator(java.lang.String id, KeyGenerator keyGenerator)
void
addLoadedResource(java.lang.String resource)
void
addMappedStatement(MappedStatement ms)
<T> void
addMapper(java.lang.Class<T> type)
void
addMappers(java.lang.String packageName)
void
addMappers(java.lang.String packageName, java.lang.Class<?> superType)
void
addParameterMap(ParameterMap pm)
void
addResultMap(ResultMap rm)
protected void
buildAllStatements()
protected void
checkGloballyForDiscriminatedNestedResultMaps(ResultMap rm)
protected void
checkLocallyForDiscriminatedNestedResultMaps(ResultMap rm)
protected java.lang.String
extractNamespace(java.lang.String statementId)
Extracts namespace from fully qualified statement id.AutoMappingBehavior
getAutoMappingBehavior()
AutoMappingUnknownColumnBehavior
getAutoMappingUnknownColumnBehavior()
Cache
getCache(java.lang.String id)
java.util.Collection<java.lang.String>
getCacheNames()
java.util.Collection<Cache>
getCaches()
java.lang.Class<?>
getConfigurationFactory()
java.lang.String
getDatabaseId()
ExecutorType
getDefaultExecutorType()
java.lang.Integer
getDefaultFetchSize()
ResultSetType
getDefaultResultSetType()
LanguageDriver
getDefaultScriptingLanguageInstance()
LanguageDriver
getDefaultScriptingLanuageInstance()
Deprecated.java.lang.Integer
getDefaultStatementTimeout()
Environment
getEnvironment()
java.util.Collection<CacheRefResolver>
getIncompleteCacheRefs()
java.util.Collection<MethodResolver>
getIncompleteMethods()
java.util.Collection<ResultMapResolver>
getIncompleteResultMaps()
java.util.Collection<XMLStatementBuilder>
getIncompleteStatements()
java.util.List<Interceptor>
getInterceptors()
JdbcType
getJdbcTypeForNull()
KeyGenerator
getKeyGenerator(java.lang.String id)
java.util.Collection<java.lang.String>
getKeyGeneratorNames()
java.util.Collection<KeyGenerator>
getKeyGenerators()
LanguageDriver
getLanguageDriver(java.lang.Class<? extends LanguageDriver> langClass)
LanguageDriverRegistry
getLanguageRegistry()
java.util.Set<java.lang.String>
getLazyLoadTriggerMethods()
LocalCacheScope
getLocalCacheScope()
java.lang.Class<? extends Log>
getLogImpl()
java.lang.String
getLogPrefix()
MappedStatement
getMappedStatement(java.lang.String id)
MappedStatement
getMappedStatement(java.lang.String id, boolean validateIncompleteStatements)
java.util.Collection<java.lang.String>
getMappedStatementNames()
java.util.Collection<MappedStatement>
getMappedStatements()
<T> T
getMapper(java.lang.Class<T> type, SqlSession sqlSession)
MapperRegistry
getMapperRegistry()
ObjectFactory
getObjectFactory()
ObjectWrapperFactory
getObjectWrapperFactory()
ParameterMap
getParameterMap(java.lang.String id)
java.util.Collection<java.lang.String>
getParameterMapNames()
java.util.Collection<ParameterMap>
getParameterMaps()
ProxyFactory
getProxyFactory()
ReflectorFactory
getReflectorFactory()
ResultMap
getResultMap(java.lang.String id)
java.util.Collection<java.lang.String>
getResultMapNames()
java.util.Collection<ResultMap>
getResultMaps()
java.util.Map<java.lang.String,XNode>
getSqlFragments()
TypeAliasRegistry
getTypeAliasRegistry()
TypeHandlerRegistry
getTypeHandlerRegistry()
java.util.Properties
getVariables()
java.lang.Class<? extends VFS>
getVfsImpl()
boolean
hasCache(java.lang.String id)
boolean
hasKeyGenerator(java.lang.String id)
boolean
hasMapper(java.lang.Class<?> type)
boolean
hasParameterMap(java.lang.String id)
boolean
hasResultMap(java.lang.String id)
boolean
hasStatement(java.lang.String statementName)
boolean
hasStatement(java.lang.String statementName, boolean validateIncompleteStatements)
boolean
isAggressiveLazyLoading()
boolean
isCacheEnabled()
boolean
isCallSettersOnNulls()
boolean
isLazyLoadingEnabled()
boolean
isMapUnderscoreToCamelCase()
boolean
isMultipleResultSetsEnabled()
boolean
isResourceLoaded(java.lang.String resource)
boolean
isReturnInstanceForEmptyRow()
boolean
isSafeResultHandlerEnabled()
boolean
isSafeRowBoundsEnabled()
boolean
isUseActualParamName()
boolean
isUseColumnLabel()
boolean
isUseGeneratedKeys()
Executor
newExecutor(Transaction transaction)
Executor
newExecutor(Transaction transaction, ExecutorType executorType)
MetaObject
newMetaObject(java.lang.Object object)
ParameterHandler
newParameterHandler(MappedStatement mappedStatement, java.lang.Object parameterObject, BoundSql boundSql)
ResultSetHandler
newResultSetHandler(Executor executor, MappedStatement mappedStatement, RowBounds rowBounds, ParameterHandler parameterHandler, ResultHandler resultHandler, BoundSql boundSql)
StatementHandler
newStatementHandler(Executor executor, MappedStatement mappedStatement, java.lang.Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql)
void
setAggressiveLazyLoading(boolean aggressiveLazyLoading)
void
setAutoMappingBehavior(AutoMappingBehavior autoMappingBehavior)
void
setAutoMappingUnknownColumnBehavior(AutoMappingUnknownColumnBehavior autoMappingUnknownColumnBehavior)
void
setCacheEnabled(boolean cacheEnabled)
void
setCallSettersOnNulls(boolean callSettersOnNulls)
void
setConfigurationFactory(java.lang.Class<?> configurationFactory)
void
setDatabaseId(java.lang.String databaseId)
void
setDefaultEnumTypeHandler(java.lang.Class<? extends TypeHandler> typeHandler)
Set a defaultTypeHandler
class forEnum
.void
setDefaultExecutorType(ExecutorType defaultExecutorType)
void
setDefaultFetchSize(java.lang.Integer defaultFetchSize)
void
setDefaultResultSetType(ResultSetType defaultResultSetType)
void
setDefaultScriptingLanguage(java.lang.Class<? extends LanguageDriver> driver)
void
setDefaultStatementTimeout(java.lang.Integer defaultStatementTimeout)
void
setEnvironment(Environment environment)
void
setJdbcTypeForNull(JdbcType jdbcTypeForNull)
void
setLazyLoadingEnabled(boolean lazyLoadingEnabled)
void
setLazyLoadTriggerMethods(java.util.Set<java.lang.String> lazyLoadTriggerMethods)
void
setLocalCacheScope(LocalCacheScope localCacheScope)
void
setLogImpl(java.lang.Class<? extends Log> logImpl)
void
setLogPrefix(java.lang.String logPrefix)
void
setMapUnderscoreToCamelCase(boolean mapUnderscoreToCamelCase)
void
setMultipleResultSetsEnabled(boolean multipleResultSetsEnabled)
void
setObjectFactory(ObjectFactory objectFactory)
void
setObjectWrapperFactory(ObjectWrapperFactory objectWrapperFactory)
void
setProxyFactory(ProxyFactory proxyFactory)
void
setReflectorFactory(ReflectorFactory reflectorFactory)
void
setReturnInstanceForEmptyRow(boolean returnEmptyInstance)
void
setSafeResultHandlerEnabled(boolean safeResultHandlerEnabled)
void
setSafeRowBoundsEnabled(boolean safeRowBoundsEnabled)
void
setUseActualParamName(boolean useActualParamName)
void
setUseColumnLabel(boolean useColumnLabel)
void
setUseGeneratedKeys(boolean useGeneratedKeys)
void
setVariables(java.util.Properties variables)
void
setVfsImpl(java.lang.Class<? extends VFS> vfsImpl)
-
-
-
Field Detail
-
environment
protected Environment environment
-
safeRowBoundsEnabled
protected boolean safeRowBoundsEnabled
-
safeResultHandlerEnabled
protected boolean safeResultHandlerEnabled
-
mapUnderscoreToCamelCase
protected boolean mapUnderscoreToCamelCase
-
aggressiveLazyLoading
protected boolean aggressiveLazyLoading
-
multipleResultSetsEnabled
protected boolean multipleResultSetsEnabled
-
useGeneratedKeys
protected boolean useGeneratedKeys
-
useColumnLabel
protected boolean useColumnLabel
-
cacheEnabled
protected boolean cacheEnabled
-
callSettersOnNulls
protected boolean callSettersOnNulls
-
useActualParamName
protected boolean useActualParamName
-
returnInstanceForEmptyRow
protected boolean returnInstanceForEmptyRow
-
logPrefix
protected java.lang.String logPrefix
-
logImpl
protected java.lang.Class<? extends Log> logImpl
-
vfsImpl
protected java.lang.Class<? extends VFS> vfsImpl
-
localCacheScope
protected LocalCacheScope localCacheScope
-
jdbcTypeForNull
protected JdbcType jdbcTypeForNull
-
lazyLoadTriggerMethods
protected java.util.Set<java.lang.String> lazyLoadTriggerMethods
-
defaultStatementTimeout
protected java.lang.Integer defaultStatementTimeout
-
defaultFetchSize
protected java.lang.Integer defaultFetchSize
-
defaultResultSetType
protected ResultSetType defaultResultSetType
-
defaultExecutorType
protected ExecutorType defaultExecutorType
-
autoMappingBehavior
protected AutoMappingBehavior autoMappingBehavior
-
autoMappingUnknownColumnBehavior
protected AutoMappingUnknownColumnBehavior autoMappingUnknownColumnBehavior
-
variables
protected java.util.Properties variables
-
reflectorFactory
protected ReflectorFactory reflectorFactory
-
objectFactory
protected ObjectFactory objectFactory
-
objectWrapperFactory
protected ObjectWrapperFactory objectWrapperFactory
-
lazyLoadingEnabled
protected boolean lazyLoadingEnabled
-
proxyFactory
protected ProxyFactory proxyFactory
-
databaseId
protected java.lang.String databaseId
-
configurationFactory
protected java.lang.Class<?> configurationFactory
Configuration factory class. Used to create Configuration for loading deserialized unread properties.- See Also:
- Issue 300 (google code)
-
mapperRegistry
protected final MapperRegistry mapperRegistry
-
interceptorChain
protected final InterceptorChain interceptorChain
-
typeHandlerRegistry
protected final TypeHandlerRegistry typeHandlerRegistry
-
typeAliasRegistry
protected final TypeAliasRegistry typeAliasRegistry
-
languageRegistry
protected final LanguageDriverRegistry languageRegistry
-
mappedStatements
protected final java.util.Map<java.lang.String,MappedStatement> mappedStatements
-
caches
protected final java.util.Map<java.lang.String,Cache> caches
-
resultMaps
protected final java.util.Map<java.lang.String,ResultMap> resultMaps
-
parameterMaps
protected final java.util.Map<java.lang.String,ParameterMap> parameterMaps
-
keyGenerators
protected final java.util.Map<java.lang.String,KeyGenerator> keyGenerators
-
loadedResources
protected final java.util.Set<java.lang.String> loadedResources
-
sqlFragments
protected final java.util.Map<java.lang.String,XNode> sqlFragments
-
incompleteStatements
protected final java.util.Collection<XMLStatementBuilder> incompleteStatements
-
incompleteCacheRefs
protected final java.util.Collection<CacheRefResolver> incompleteCacheRefs
-
incompleteResultMaps
protected final java.util.Collection<ResultMapResolver> incompleteResultMaps
-
incompleteMethods
protected final java.util.Collection<MethodResolver> incompleteMethods
-
cacheRefMap
protected final java.util.Map<java.lang.String,java.lang.String> cacheRefMap
-
-
Constructor Detail
-
Configuration
public Configuration(Environment environment)
-
Configuration
public Configuration()
-
-
Method Detail
-
getLogPrefix
public java.lang.String getLogPrefix()
-
setLogPrefix
public void setLogPrefix(java.lang.String logPrefix)
-
getLogImpl
public java.lang.Class<? extends Log> getLogImpl()
-
setLogImpl
public void setLogImpl(java.lang.Class<? extends Log> logImpl)
-
getVfsImpl
public java.lang.Class<? extends VFS> getVfsImpl()
-
setVfsImpl
public void setVfsImpl(java.lang.Class<? extends VFS> vfsImpl)
-
isCallSettersOnNulls
public boolean isCallSettersOnNulls()
-
setCallSettersOnNulls
public void setCallSettersOnNulls(boolean callSettersOnNulls)
-
isUseActualParamName
public boolean isUseActualParamName()
-
setUseActualParamName
public void setUseActualParamName(boolean useActualParamName)
-
isReturnInstanceForEmptyRow
public boolean isReturnInstanceForEmptyRow()
-
setReturnInstanceForEmptyRow
public void setReturnInstanceForEmptyRow(boolean returnEmptyInstance)
-
getDatabaseId
public java.lang.String getDatabaseId()
-
setDatabaseId
public void setDatabaseId(java.lang.String databaseId)
-
getConfigurationFactory
public java.lang.Class<?> getConfigurationFactory()
-
setConfigurationFactory
public void setConfigurationFactory(java.lang.Class<?> configurationFactory)
-
isSafeResultHandlerEnabled
public boolean isSafeResultHandlerEnabled()
-
setSafeResultHandlerEnabled
public void setSafeResultHandlerEnabled(boolean safeResultHandlerEnabled)
-
isSafeRowBoundsEnabled
public boolean isSafeRowBoundsEnabled()
-
setSafeRowBoundsEnabled
public void setSafeRowBoundsEnabled(boolean safeRowBoundsEnabled)
-
isMapUnderscoreToCamelCase
public boolean isMapUnderscoreToCamelCase()
-
setMapUnderscoreToCamelCase
public void setMapUnderscoreToCamelCase(boolean mapUnderscoreToCamelCase)
-
addLoadedResource
public void addLoadedResource(java.lang.String resource)
-
isResourceLoaded
public boolean isResourceLoaded(java.lang.String resource)
-
getEnvironment
public Environment getEnvironment()
-
setEnvironment
public void setEnvironment(Environment environment)
-
getAutoMappingBehavior
public AutoMappingBehavior getAutoMappingBehavior()
-
setAutoMappingBehavior
public void setAutoMappingBehavior(AutoMappingBehavior autoMappingBehavior)
-
getAutoMappingUnknownColumnBehavior
public AutoMappingUnknownColumnBehavior getAutoMappingUnknownColumnBehavior()
- Since:
- 3.4.0
-
setAutoMappingUnknownColumnBehavior
public void setAutoMappingUnknownColumnBehavior(AutoMappingUnknownColumnBehavior autoMappingUnknownColumnBehavior)
- Since:
- 3.4.0
-
isLazyLoadingEnabled
public boolean isLazyLoadingEnabled()
-
setLazyLoadingEnabled
public void setLazyLoadingEnabled(boolean lazyLoadingEnabled)
-
getProxyFactory
public ProxyFactory getProxyFactory()
-
setProxyFactory
public void setProxyFactory(ProxyFactory proxyFactory)
-
isAggressiveLazyLoading
public boolean isAggressiveLazyLoading()
-
setAggressiveLazyLoading
public void setAggressiveLazyLoading(boolean aggressiveLazyLoading)
-
isMultipleResultSetsEnabled
public boolean isMultipleResultSetsEnabled()
-
setMultipleResultSetsEnabled
public void setMultipleResultSetsEnabled(boolean multipleResultSetsEnabled)
-
getLazyLoadTriggerMethods
public java.util.Set<java.lang.String> getLazyLoadTriggerMethods()
-
setLazyLoadTriggerMethods
public void setLazyLoadTriggerMethods(java.util.Set<java.lang.String> lazyLoadTriggerMethods)
-
isUseGeneratedKeys
public boolean isUseGeneratedKeys()
-
setUseGeneratedKeys
public void setUseGeneratedKeys(boolean useGeneratedKeys)
-
getDefaultExecutorType
public ExecutorType getDefaultExecutorType()
-
setDefaultExecutorType
public void setDefaultExecutorType(ExecutorType defaultExecutorType)
-
isCacheEnabled
public boolean isCacheEnabled()
-
setCacheEnabled
public void setCacheEnabled(boolean cacheEnabled)
-
getDefaultStatementTimeout
public java.lang.Integer getDefaultStatementTimeout()
-
setDefaultStatementTimeout
public void setDefaultStatementTimeout(java.lang.Integer defaultStatementTimeout)
-
getDefaultFetchSize
public java.lang.Integer getDefaultFetchSize()
- Since:
- 3.3.0
-
setDefaultFetchSize
public void setDefaultFetchSize(java.lang.Integer defaultFetchSize)
- Since:
- 3.3.0
-
getDefaultResultSetType
public ResultSetType getDefaultResultSetType()
- Since:
- 3.5.2
-
setDefaultResultSetType
public void setDefaultResultSetType(ResultSetType defaultResultSetType)
- Since:
- 3.5.2
-
isUseColumnLabel
public boolean isUseColumnLabel()
-
setUseColumnLabel
public void setUseColumnLabel(boolean useColumnLabel)
-
getLocalCacheScope
public LocalCacheScope getLocalCacheScope()
-
setLocalCacheScope
public void setLocalCacheScope(LocalCacheScope localCacheScope)
-
getJdbcTypeForNull
public JdbcType getJdbcTypeForNull()
-
setJdbcTypeForNull
public void setJdbcTypeForNull(JdbcType jdbcTypeForNull)
-
getVariables
public java.util.Properties getVariables()
-
setVariables
public void setVariables(java.util.Properties variables)
-
getTypeHandlerRegistry
public TypeHandlerRegistry getTypeHandlerRegistry()
-
setDefaultEnumTypeHandler
public void setDefaultEnumTypeHandler(java.lang.Class<? extends TypeHandler> typeHandler)
- Parameters:
typeHandler
- a type handler class forEnum
- Since:
- 3.4.5
-
getTypeAliasRegistry
public TypeAliasRegistry getTypeAliasRegistry()
-
getMapperRegistry
public MapperRegistry getMapperRegistry()
- Since:
- 3.2.2
-
getReflectorFactory
public ReflectorFactory getReflectorFactory()
-
setReflectorFactory
public void setReflectorFactory(ReflectorFactory reflectorFactory)
-
getObjectFactory
public ObjectFactory getObjectFactory()
-
setObjectFactory
public void setObjectFactory(ObjectFactory objectFactory)
-
getObjectWrapperFactory
public ObjectWrapperFactory getObjectWrapperFactory()
-
setObjectWrapperFactory
public void setObjectWrapperFactory(ObjectWrapperFactory objectWrapperFactory)
-
getInterceptors
public java.util.List<Interceptor> getInterceptors()
- Since:
- 3.2.2
-
getLanguageRegistry
public LanguageDriverRegistry getLanguageRegistry()
-
setDefaultScriptingLanguage
public void setDefaultScriptingLanguage(java.lang.Class<? extends LanguageDriver> driver)
-
getDefaultScriptingLanguageInstance
public LanguageDriver getDefaultScriptingLanguageInstance()
-
getLanguageDriver
public LanguageDriver getLanguageDriver(java.lang.Class<? extends LanguageDriver> langClass)
- Since:
- 3.5.1
-
getDefaultScriptingLanuageInstance
@Deprecated public LanguageDriver getDefaultScriptingLanuageInstance()
Deprecated.
-
newMetaObject
public MetaObject newMetaObject(java.lang.Object object)
-
newParameterHandler
public ParameterHandler newParameterHandler(MappedStatement mappedStatement, java.lang.Object parameterObject, BoundSql boundSql)
-
newResultSetHandler
public ResultSetHandler newResultSetHandler(Executor executor, MappedStatement mappedStatement, RowBounds rowBounds, ParameterHandler parameterHandler, ResultHandler resultHandler, BoundSql boundSql)
-
newStatementHandler
public StatementHandler newStatementHandler(Executor executor, MappedStatement mappedStatement, java.lang.Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql)
-
newExecutor
public Executor newExecutor(Transaction transaction)
-
newExecutor
public Executor newExecutor(Transaction transaction, ExecutorType executorType)
-
addKeyGenerator
public void addKeyGenerator(java.lang.String id, KeyGenerator keyGenerator)
-
getKeyGeneratorNames
public java.util.Collection<java.lang.String> getKeyGeneratorNames()
-
getKeyGenerators
public java.util.Collection<KeyGenerator> getKeyGenerators()
-
getKeyGenerator
public KeyGenerator getKeyGenerator(java.lang.String id)
-
hasKeyGenerator
public boolean hasKeyGenerator(java.lang.String id)
-
addCache
public void addCache(Cache cache)
-
getCacheNames
public java.util.Collection<java.lang.String> getCacheNames()
-
getCaches
public java.util.Collection<Cache> getCaches()
-
getCache
public Cache getCache(java.lang.String id)
-
hasCache
public boolean hasCache(java.lang.String id)
-
addResultMap
public void addResultMap(ResultMap rm)
-
getResultMapNames
public java.util.Collection<java.lang.String> getResultMapNames()
-
getResultMaps
public java.util.Collection<ResultMap> getResultMaps()
-
getResultMap
public ResultMap getResultMap(java.lang.String id)
-
hasResultMap
public boolean hasResultMap(java.lang.String id)
-
addParameterMap
public void addParameterMap(ParameterMap pm)
-
getParameterMapNames
public java.util.Collection<java.lang.String> getParameterMapNames()
-
getParameterMaps
public java.util.Collection<ParameterMap> getParameterMaps()
-
getParameterMap
public ParameterMap getParameterMap(java.lang.String id)
-
hasParameterMap
public boolean hasParameterMap(java.lang.String id)
-
addMappedStatement
public void addMappedStatement(MappedStatement ms)
-
getMappedStatementNames
public java.util.Collection<java.lang.String> getMappedStatementNames()
-
getMappedStatements
public java.util.Collection<MappedStatement> getMappedStatements()
-
getIncompleteStatements
public java.util.Collection<XMLStatementBuilder> getIncompleteStatements()
-
addIncompleteStatement
public void addIncompleteStatement(XMLStatementBuilder incompleteStatement)
-
getIncompleteCacheRefs
public java.util.Collection<CacheRefResolver> getIncompleteCacheRefs()
-
addIncompleteCacheRef
public void addIncompleteCacheRef(CacheRefResolver incompleteCacheRef)
-
getIncompleteResultMaps
public java.util.Collection<ResultMapResolver> getIncompleteResultMaps()
-
addIncompleteResultMap
public void addIncompleteResultMap(ResultMapResolver resultMapResolver)
-
addIncompleteMethod
public void addIncompleteMethod(MethodResolver builder)
-
getIncompleteMethods
public java.util.Collection<MethodResolver> getIncompleteMethods()
-
getMappedStatement
public MappedStatement getMappedStatement(java.lang.String id)
-
getMappedStatement
public MappedStatement getMappedStatement(java.lang.String id, boolean validateIncompleteStatements)
-
getSqlFragments
public java.util.Map<java.lang.String,XNode> getSqlFragments()
-
addInterceptor
public void addInterceptor(Interceptor interceptor)
-
addMappers
public void addMappers(java.lang.String packageName, java.lang.Class<?> superType)
-
addMappers
public void addMappers(java.lang.String packageName)
-
addMapper
public <T> void addMapper(java.lang.Class<T> type)
-
getMapper
public <T> T getMapper(java.lang.Class<T> type, SqlSession sqlSession)
-
hasMapper
public boolean hasMapper(java.lang.Class<?> type)
-
hasStatement
public boolean hasStatement(java.lang.String statementName)
-
hasStatement
public boolean hasStatement(java.lang.String statementName, boolean validateIncompleteStatements)
-
addCacheRef
public void addCacheRef(java.lang.String namespace, java.lang.String referencedNamespace)
-
buildAllStatements
protected void buildAllStatements()
-
extractNamespace
protected java.lang.String extractNamespace(java.lang.String statementId)
Extracts namespace from fully qualified statement id.- Parameters:
statementId
-- Returns:
- namespace or null when id does not contain period.
-
checkGloballyForDiscriminatedNestedResultMaps
protected void checkGloballyForDiscriminatedNestedResultMaps(ResultMap rm)
-
checkLocallyForDiscriminatedNestedResultMaps
protected void checkLocallyForDiscriminatedNestedResultMaps(ResultMap rm)
-
-