public class R2dbcMybatisConfiguration
extends 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| Constructor and Description |
|---|
R2dbcMybatisConfiguration()
Instantiates a new R2dbc mybatis configuration.
|
R2dbcMybatisConfiguration(org.apache.ibatis.mapping.Environment environment)
Instantiates a new R2dbc mybatis configuration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMappedStatement(org.apache.ibatis.mapping.MappedStatement ms) |
<T> void |
addMapper(Class<T> type) |
void |
addMappers(String packageName) |
void |
addMappers(String packageName,
Class<?> superType) |
void |
addPlaceholderDialect(PlaceholderDialect placeholderDialect)
Add placeholder dialect.
|
void |
addR2dbcTypeHandlerAdapter(R2dbcTypeHandlerAdapter<?> r2dbcTypeHandlerAdapter)
Add R2dbc type handler adapter.
|
void |
addR2dbcTypeHandlerAdapter(String packageName)
Add R2dbc type handler adapter.
|
io.r2dbc.spi.ConnectionFactory |
getConnectionFactory()
Gets connection factory.
|
Duration |
getFormattedDialectSqlCacheExpireDuration()
get formatted dialect sql timeout duration
|
Integer |
getFormattedDialectSqlCacheMaxSize()
get formatted dialect sql cache max size
|
<T> T |
getMapper(Class<T> type,
ReactiveSqlSession reactiveSqlSession)
Gets mapper.
|
Set<Class<?>> |
getNotSupportedDataTypes()
Gets not supported data types.
|
PlaceholderDialectRegistry |
getPlaceholderDialectRegistry()
Get placeholder dialect registry
|
R2dbcStatementLog |
getR2dbcStatementLog(org.apache.ibatis.mapping.MappedStatement mappedStatement)
get r2dbc statement log
|
R2dbcStatementLogFactory |
getR2dbcStatementLogFactory()
get r2dbc statement log factory
|
R2dbcTypeHandlerAdapterRegistry |
getR2dbcTypeHandlerAdapterRegistry()
Gets R2dbc type handler adapter registry.
|
boolean |
hasMapper(Class<?> type) |
void |
setConnectionFactory(io.r2dbc.spi.ConnectionFactory connectionFactory)
Sets connection factory.
|
void |
setFormattedDialectSqlCacheExpireDuration(Duration formattedDialectSqlCacheExpireDuration)
Sets formatted dialect sql cache expire duration.
|
void |
setFormattedDialectSqlCacheMaxSize(Integer formattedDialectSqlCacheMaxSize)
Sets formatted dialect sql cache max size.
|
void |
setNotSupportedJdbcType(Class<?> clazz)
Sets not supported jdbc type.
|
addCache, addCacheRef, addIncompleteCacheRef, addIncompleteMethod, addIncompleteResultMap, addIncompleteStatement, addInterceptor, addKeyGenerator, addLoadedResource, addParameterMap, addResultMap, buildAllStatements, 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, getMappedStatement, getMappedStatement, getMappedStatementNames, getMappedStatements, getMapper, getMapperRegistry, getObjectFactory, getObjectWrapperFactory, getParameterMap, getParameterMapNames, getParameterMaps, getProxyFactory, getReflectorFactory, getResultMap, getResultMapNames, getResultMaps, getSqlFragments, getTypeAliasRegistry, getTypeHandlerRegistry, getVariables, getVfsImpl, hasCache, hasKeyGenerator, hasParameterMap, hasResultMap, hasStatement, hasStatement, isAggressiveLazyLoading, isArgNameBasedConstructorAutoMapping, isCacheEnabled, isCallSettersOnNulls, isLazyLoadingEnabled, isMapUnderscoreToCamelCase, isMultipleResultSetsEnabled, isNullableOnForEach, isResourceLoaded, isReturnInstanceForEmptyRow, isSafeResultHandlerEnabled, isSafeRowBoundsEnabled, isShrinkWhitespacesInSql, isUseActualParamName, isUseColumnLabel, isUseGeneratedKeys, newExecutor, newExecutor, newMetaObject, newParameterHandler, newResultSetHandler, 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, setVfsImplpublic R2dbcMybatisConfiguration()
public R2dbcMybatisConfiguration(org.apache.ibatis.mapping.Environment environment)
environment - the environmentpublic <T> T getMapper(Class<T> type, ReactiveSqlSession reactiveSqlSession)
T - the type parametertype - the typereactiveSqlSession - the reactive sql sessionpublic io.r2dbc.spi.ConnectionFactory getConnectionFactory()
public void setConnectionFactory(io.r2dbc.spi.ConnectionFactory connectionFactory)
connectionFactory - the connection factorypublic <T> void addMapper(Class<T> type)
addMapper in class org.apache.ibatis.session.Configurationpublic void addMappers(String packageName, Class<?> superType)
addMappers in class org.apache.ibatis.session.Configurationpublic void addMappers(String packageName)
addMappers in class org.apache.ibatis.session.Configurationpublic boolean hasMapper(Class<?> type)
hasMapper in class org.apache.ibatis.session.Configurationpublic void addMappedStatement(org.apache.ibatis.mapping.MappedStatement ms)
addMappedStatement in class org.apache.ibatis.session.Configurationpublic void addR2dbcTypeHandlerAdapter(R2dbcTypeHandlerAdapter<?> r2dbcTypeHandlerAdapter)
r2dbcTypeHandlerAdapter - the R2dbc type handler adapterpublic void addR2dbcTypeHandlerAdapter(String packageName)
packageName - the package namepublic R2dbcTypeHandlerAdapterRegistry getR2dbcTypeHandlerAdapterRegistry()
public void setNotSupportedJdbcType(Class<?> clazz)
clazz - the clazzpublic Set<Class<?>> getNotSupportedDataTypes()
public R2dbcStatementLog getR2dbcStatementLog(org.apache.ibatis.mapping.MappedStatement mappedStatement)
mappedStatement - target MappedStatementpublic R2dbcStatementLogFactory getR2dbcStatementLogFactory()
public void addPlaceholderDialect(PlaceholderDialect placeholderDialect)
placeholderDialect - the placeholder dialectpublic PlaceholderDialectRegistry getPlaceholderDialectRegistry()
public Integer getFormattedDialectSqlCacheMaxSize()
public void setFormattedDialectSqlCacheMaxSize(Integer formattedDialectSqlCacheMaxSize)
formattedDialectSqlCacheMaxSize - the formatted dialect sql cache max sizepublic Duration getFormattedDialectSqlCacheExpireDuration()
public void setFormattedDialectSqlCacheExpireDuration(Duration formattedDialectSqlCacheExpireDuration)
formattedDialectSqlCacheExpireDuration - the formatted dialect sql expire durationCopyright © 2022. All rights reserved.