org.apache.ibatis.builder
Class MapperBuilderAssistant

java.lang.Object
  extended by org.apache.ibatis.builder.BaseBuilder
      extended by org.apache.ibatis.builder.MapperBuilderAssistant

public class MapperBuilderAssistant
extends BaseBuilder


Field Summary
 
Fields inherited from class org.apache.ibatis.builder.BaseBuilder
configuration, typeAliasRegistry, typeHandlerRegistry
 
Constructor Summary
MapperBuilderAssistant(Configuration configuration, String resource)
           
 
Method Summary
 MappedStatement addMappedStatement(String id, SqlSource sqlSource, StatementType statementType, SqlCommandType sqlCommandType, Integer fetchSize, Integer timeout, String parameterMap, Class<?> parameterType, String resultMap, Class<?> resultType, ResultSetType resultSetType, boolean flushCache, boolean useCache, KeyGenerator keyGenerator, String keyProperty, String keyColumn, String databaseId)
           
 ParameterMap addParameterMap(String id, Class<?> parameterClass, List<ParameterMapping> parameterMappings)
           
 ResultMap addResultMap(String id, Class<?> type, String extend, Discriminator discriminator, List<ResultMapping> resultMappings, Boolean autoMapping)
           
 String applyCurrentNamespace(String base, boolean isReference)
           
 Discriminator buildDiscriminator(Class<?> resultType, String column, Class<?> javaType, JdbcType jdbcType, Class<? extends TypeHandler<?>> typeHandler, Map<String,String> discriminatorMap)
           
 ParameterMapping buildParameterMapping(Class<?> parameterType, String property, Class<?> javaType, JdbcType jdbcType, String resultMap, ParameterMode parameterMode, Class<? extends TypeHandler<?>> typeHandler, Integer numericScale)
           
 ResultMapping buildResultMapping(Class<?> resultType, String property, String column, Class<?> javaType, JdbcType jdbcType, String nestedSelect, String nestedResultMap, String notNullColumn, String columnPrefix, Class<? extends TypeHandler<?>> typeHandler, List<ResultFlag> flags)
           
 String getCurrentNamespace()
           
 void setCurrentNamespace(String currentNamespace)
           
 Cache useCacheRef(String namespace)
           
 Cache useNewCache(Class<? extends Cache> typeClass, Class<? extends Cache> evictionClass, Long flushInterval, Integer size, boolean readWrite, Properties props)
           
 
Methods inherited from class org.apache.ibatis.builder.BaseBuilder
booleanValueOf, getConfiguration, integerValueOf, resolveAlias, resolveClass, resolveJdbcType, resolveParameterMode, resolveResultSetType, resolveTypeHandler, resolveTypeHandler, stringSetValueOf, stringValueOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapperBuilderAssistant

public MapperBuilderAssistant(Configuration configuration,
                              String resource)
Method Detail

getCurrentNamespace

public String getCurrentNamespace()

setCurrentNamespace

public void setCurrentNamespace(String currentNamespace)

applyCurrentNamespace

public String applyCurrentNamespace(String base,
                                    boolean isReference)

useCacheRef

public Cache useCacheRef(String namespace)

useNewCache

public Cache useNewCache(Class<? extends Cache> typeClass,
                         Class<? extends Cache> evictionClass,
                         Long flushInterval,
                         Integer size,
                         boolean readWrite,
                         Properties props)

addParameterMap

public ParameterMap addParameterMap(String id,
                                    Class<?> parameterClass,
                                    List<ParameterMapping> parameterMappings)

buildParameterMapping

public ParameterMapping buildParameterMapping(Class<?> parameterType,
                                              String property,
                                              Class<?> javaType,
                                              JdbcType jdbcType,
                                              String resultMap,
                                              ParameterMode parameterMode,
                                              Class<? extends TypeHandler<?>> typeHandler,
                                              Integer numericScale)

addResultMap

public ResultMap addResultMap(String id,
                              Class<?> type,
                              String extend,
                              Discriminator discriminator,
                              List<ResultMapping> resultMappings,
                              Boolean autoMapping)

buildResultMapping

public ResultMapping buildResultMapping(Class<?> resultType,
                                        String property,
                                        String column,
                                        Class<?> javaType,
                                        JdbcType jdbcType,
                                        String nestedSelect,
                                        String nestedResultMap,
                                        String notNullColumn,
                                        String columnPrefix,
                                        Class<? extends TypeHandler<?>> typeHandler,
                                        List<ResultFlag> flags)

buildDiscriminator

public Discriminator buildDiscriminator(Class<?> resultType,
                                        String column,
                                        Class<?> javaType,
                                        JdbcType jdbcType,
                                        Class<? extends TypeHandler<?>> typeHandler,
                                        Map<String,String> discriminatorMap)

addMappedStatement

public MappedStatement addMappedStatement(String id,
                                          SqlSource sqlSource,
                                          StatementType statementType,
                                          SqlCommandType sqlCommandType,
                                          Integer fetchSize,
                                          Integer timeout,
                                          String parameterMap,
                                          Class<?> parameterType,
                                          String resultMap,
                                          Class<?> resultType,
                                          ResultSetType resultSetType,
                                          boolean flushCache,
                                          boolean useCache,
                                          KeyGenerator keyGenerator,
                                          String keyProperty,
                                          String keyColumn,
                                          String databaseId)


Copyright © 2010-2012 MyBatis.org. All Rights Reserved.