类 SemiMybatisConfiguration
java.lang.Object
org.apache.ibatis.session.Configuration
top.zephyrs.mybatis.semi.SemiMybatisConfiguration
public class SemiMybatisConfiguration
extends org.apache.ibatis.session.Configuration
扩展的 org.apache.ibatis.session.Configuration
增加通用功能的配置信息。
-
嵌套类概要
从类继承的嵌套类/接口 org.apache.ibatis.session.Configuration
org.apache.ibatis.session.Configuration.StrictMap<V extends Object> -
字段概要
字段从类继承的字段 org.apache.ibatis.session.Configuration
aggressiveLazyLoading, argNameBasedConstructorAutoMapping, autoMappingBehavior, autoMappingUnknownColumnBehavior, cacheEnabled, cacheRefMap, caches, callSettersOnNulls, configurationFactory, databaseId, defaultExecutorType, defaultFetchSize, defaultResultSetType, defaultSqlProviderType, defaultStatementTimeout, environment, incompleteCacheRefs, incompleteMethods, incompleteResultMaps, incompleteStatements, interceptorChain, jdbcTypeForNull, keyGenerators, languageRegistry, lazyLoadingEnabled, lazyLoadTriggerMethods, loadedResources, localCacheScope, logImpl, logPrefix, mappedStatements, mapperRegistry, mapUnderscoreToCamelCase, multipleResultSetsEnabled, nullableOnForEach, objectFactory, objectWrapperFactory, parameterMaps, proxyFactory, reflectorFactory, resultMaps, returnInstanceForEmptyRow, safeResultHandlerEnabled, safeRowBoundsEnabled, shrinkWhitespacesInSql, sqlFragments, typeAliasRegistry, typeHandlerRegistry, useActualParamName, useColumnLabel, useGeneratedKeys, variables, vfsImpl -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void添加需要解密的MapperStatement,只有在默认不解密的情况下需要设置protected voidgetInjectMethod(String id, Method method) KeyCreator<?>getKeyCreator(IdType idType) org.apache.ibatis.mapping.MappedStatementorg.apache.ibatis.mapping.MappedStatementgetMappedStatement(String id, boolean validateIncompleteStatements) boolean判断是否需要解密org.apache.ibatis.executor.parameter.ParameterHandlernewParameterHandler(org.apache.ibatis.mapping.MappedStatement mappedStatement, Object parameterObject, org.apache.ibatis.mapping.BoundSql boundSql) org.apache.ibatis.executor.resultset.ResultSetHandlernewResultSetHandler(org.apache.ibatis.executor.Executor executor, org.apache.ibatis.mapping.MappedStatement mappedStatement, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.executor.parameter.ParameterHandler parameterHandler, org.apache.ibatis.session.ResultHandler resultHandler, org.apache.ibatis.mapping.BoundSql boundSql) voidsetGlobalConfig(GlobalConfig globalConfig) voidsetInjectProcessor(InjectProcessor injectProcessor) voidsetKeyCreator(IdType idType, KeyCreator<?> keyCreator) void从类继承的方法 org.apache.ibatis.session.Configuration
addCache, addCacheRef, addIncompleteCacheRef, addIncompleteMethod, addIncompleteResultMap, addIncompleteStatement, addInterceptor, addKeyGenerator, addLoadedResource, addMappedStatement, addMapper, addMappers, addMappers, addParameterMap, addResultMap, checkGloballyForDiscriminatedNestedResultMaps, checkLocallyForDiscriminatedNestedResultMaps, extractNamespace, getAutoMappingBehavior, getAutoMappingUnknownColumnBehavior, getCache, getCacheNames, getCaches, getConfigurationFactory, getDatabaseId, getDefaultExecutorType, getDefaultFetchSize, getDefaultResultSetType, getDefaultScriptingLanguageInstance, getDefaultScriptingLanuageInstance, getDefaultSqlProviderType, getDefaultStatementTimeout, getEnvironment, getIncompleteCacheRefs, getIncompleteMethods, getIncompleteResultMaps, getIncompleteStatements, getInterceptors, getJdbcTypeForNull, getKeyGenerator, getKeyGeneratorNames, getKeyGenerators, getLanguageDriver, getLanguageRegistry, getLazyLoadTriggerMethods, getLocalCacheScope, getLogImpl, getLogPrefix, getMappedStatementNames, getMappedStatements, getMapper, getMapperRegistry, getObjectFactory, getObjectWrapperFactory, getParameterMap, getParameterMapNames, getParameterMaps, getProxyFactory, getReflectorFactory, getResultMap, getResultMapNames, getResultMaps, getSqlFragments, getTypeAliasRegistry, getTypeHandlerRegistry, getVariables, getVfsImpl, hasCache, hasKeyGenerator, hasMapper, hasParameterMap, hasResultMap, hasStatement, hasStatement, isAggressiveLazyLoading, isArgNameBasedConstructorAutoMapping, isCacheEnabled, isCallSettersOnNulls, isLazyLoadingEnabled, isMapUnderscoreToCamelCase, isMultipleResultSetsEnabled, isNullableOnForEach, isResourceLoaded, isReturnInstanceForEmptyRow, isSafeResultHandlerEnabled, isSafeRowBoundsEnabled, isShrinkWhitespacesInSql, isUseActualParamName, isUseColumnLabel, isUseGeneratedKeys, newExecutor, newExecutor, newMetaObject, newStatementHandler, setAggressiveLazyLoading, setArgNameBasedConstructorAutoMapping, setAutoMappingBehavior, setAutoMappingUnknownColumnBehavior, setCacheEnabled, setCallSettersOnNulls, setConfigurationFactory, setDatabaseId, setDefaultEnumTypeHandler, setDefaultExecutorType, setDefaultFetchSize, setDefaultResultSetType, setDefaultScriptingLanguage, setDefaultSqlProviderType, setDefaultStatementTimeout, setEnvironment, setJdbcTypeForNull, setLazyLoadingEnabled, setLazyLoadTriggerMethods, setLocalCacheScope, setLogImpl, setLogPrefix, setMapUnderscoreToCamelCase, setMultipleResultSetsEnabled, setNullableOnForEach, setObjectFactory, setObjectWrapperFactory, setProxyFactory, setReflectorFactory, setReturnInstanceForEmptyRow, setSafeResultHandlerEnabled, setSafeRowBoundsEnabled, setShrinkWhitespacesInSql, setUseActualParamName, setUseColumnLabel, setUseGeneratedKeys, setVariables, setVfsImpl
-
字段详细资料
-
log
protected final org.apache.ibatis.logging.Log log
-
-
构造器详细资料
-
SemiMybatisConfiguration
public SemiMybatisConfiguration(org.apache.ibatis.mapping.Environment environment) -
SemiMybatisConfiguration
public SemiMybatisConfiguration()
-
-
方法详细资料
-
getMappedStatement
- 覆盖:
getMappedStatement在类中org.apache.ibatis.session.Configuration
-
getMappedStatement
public org.apache.ibatis.mapping.MappedStatement getMappedStatement(String id, boolean validateIncompleteStatements) - 覆盖:
getMappedStatement在类中org.apache.ibatis.session.Configuration
-
newParameterHandler
public org.apache.ibatis.executor.parameter.ParameterHandler newParameterHandler(org.apache.ibatis.mapping.MappedStatement mappedStatement, Object parameterObject, org.apache.ibatis.mapping.BoundSql boundSql) - 覆盖:
newParameterHandler在类中org.apache.ibatis.session.Configuration
-
newResultSetHandler
public org.apache.ibatis.executor.resultset.ResultSetHandler newResultSetHandler(org.apache.ibatis.executor.Executor executor, org.apache.ibatis.mapping.MappedStatement mappedStatement, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.executor.parameter.ParameterHandler parameterHandler, org.apache.ibatis.session.ResultHandler resultHandler, org.apache.ibatis.mapping.BoundSql boundSql) - 覆盖:
newResultSetHandler在类中org.apache.ibatis.session.Configuration
-
buildAllStatements
protected void buildAllStatements()- 覆盖:
buildAllStatements在类中org.apache.ibatis.session.Configuration
-
getGlobalConfig
-
setGlobalConfig
-
getInjectMethod
-
getInjectProcessor
-
setInjectProcessor
-
setKeyCreators
public void setKeyCreators() -
setKeyCreator
-
getKeyCreator
-
addSensitiveMappedStatementIds
添加需要解密的MapperStatement,只有在默认不解密的情况下需要设置- 参数:
id- mappedStatement Id
-
isSensitiveDecrypt
判断是否需要解密- 参数:
id- mappedStatement Id- 返回:
- true: 需要解密 false: 不需要解密
-