Package org.apache.ibatis.builder
Class BaseBuilder
- java.lang.Object
-
- org.apache.ibatis.builder.BaseBuilder
-
- Direct Known Subclasses:
MapperBuilderAssistant
,SqlSourceBuilder
,XMLConfigBuilder
,XMLMapperBuilder
,XMLScriptBuilder
,XMLStatementBuilder
public abstract class BaseBuilder extends java.lang.Object
- Author:
- Clinton Begin
-
-
Field Summary
Fields Modifier and Type Field Description protected Configuration
configuration
protected TypeAliasRegistry
typeAliasRegistry
protected TypeHandlerRegistry
typeHandlerRegistry
-
Constructor Summary
Constructors Constructor Description BaseBuilder(Configuration configuration)
-
Method Summary
Modifier and Type Method Description protected java.lang.Boolean
booleanValueOf(java.lang.String value, java.lang.Boolean defaultValue)
protected java.lang.Object
createInstance(java.lang.String alias)
Configuration
getConfiguration()
protected java.lang.Integer
integerValueOf(java.lang.String value, java.lang.Integer defaultValue)
protected java.util.regex.Pattern
parseExpression(java.lang.String regex, java.lang.String defaultValue)
protected <T> java.lang.Class<? extends T>
resolveAlias(java.lang.String alias)
protected <T> java.lang.Class<? extends T>
resolveClass(java.lang.String alias)
protected JdbcType
resolveJdbcType(java.lang.String alias)
protected ParameterMode
resolveParameterMode(java.lang.String alias)
protected ResultSetType
resolveResultSetType(java.lang.String alias)
protected TypeHandler<?>
resolveTypeHandler(java.lang.Class<?> javaType, java.lang.Class<? extends TypeHandler<?>> typeHandlerType)
protected TypeHandler<?>
resolveTypeHandler(java.lang.Class<?> javaType, java.lang.String typeHandlerAlias)
protected java.util.Set<java.lang.String>
stringSetValueOf(java.lang.String value, java.lang.String defaultValue)
-
-
-
Field Detail
-
configuration
protected final Configuration configuration
-
typeAliasRegistry
protected final TypeAliasRegistry typeAliasRegistry
-
typeHandlerRegistry
protected final TypeHandlerRegistry typeHandlerRegistry
-
-
Constructor Detail
-
BaseBuilder
public BaseBuilder(Configuration configuration)
-
-
Method Detail
-
getConfiguration
public Configuration getConfiguration()
-
parseExpression
protected java.util.regex.Pattern parseExpression(java.lang.String regex, java.lang.String defaultValue)
-
booleanValueOf
protected java.lang.Boolean booleanValueOf(java.lang.String value, java.lang.Boolean defaultValue)
-
integerValueOf
protected java.lang.Integer integerValueOf(java.lang.String value, java.lang.Integer defaultValue)
-
stringSetValueOf
protected java.util.Set<java.lang.String> stringSetValueOf(java.lang.String value, java.lang.String defaultValue)
-
resolveJdbcType
protected JdbcType resolveJdbcType(java.lang.String alias)
-
resolveResultSetType
protected ResultSetType resolveResultSetType(java.lang.String alias)
-
resolveParameterMode
protected ParameterMode resolveParameterMode(java.lang.String alias)
-
createInstance
protected java.lang.Object createInstance(java.lang.String alias)
-
resolveClass
protected <T> java.lang.Class<? extends T> resolveClass(java.lang.String alias)
-
resolveTypeHandler
protected TypeHandler<?> resolveTypeHandler(java.lang.Class<?> javaType, java.lang.String typeHandlerAlias)
-
resolveTypeHandler
protected TypeHandler<?> resolveTypeHandler(java.lang.Class<?> javaType, java.lang.Class<? extends TypeHandler<?>> typeHandlerType)
-
resolveAlias
protected <T> java.lang.Class<? extends T> resolveAlias(java.lang.String alias)
-
-