Package org.apache.ibatis.mapping
Class ResultMapping.Builder
- java.lang.Object
-
- org.apache.ibatis.mapping.ResultMapping.Builder
-
- Enclosing class:
- ResultMapping
public static class ResultMapping.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder(Configuration configuration, String property)
Builder(Configuration configuration, String property, String column, Class<?> javaType)
Builder(Configuration configuration, String property, String column, TypeHandler<?> typeHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultMapping
build()
ResultMapping.Builder
column(String column)
ResultMapping.Builder
columnPrefix(String columnPrefix)
ResultMapping.Builder
composites(List<ResultMapping> composites)
ResultMapping.Builder
flags(List<ResultFlag> flags)
ResultMapping.Builder
foreignColumn(String foreignColumn)
ResultMapping.Builder
javaType(Class<?> javaType)
ResultMapping.Builder
jdbcType(JdbcType jdbcType)
ResultMapping.Builder
lazy(boolean lazy)
ResultMapping.Builder
nestedQueryId(String nestedQueryId)
ResultMapping.Builder
nestedResultMapId(String nestedResultMapId)
ResultMapping.Builder
notNullColumns(Set<String> notNullColumns)
ResultMapping.Builder
resultSet(String resultSet)
ResultMapping.Builder
typeHandler(TypeHandler<?> typeHandler)
-
-
-
Constructor Detail
-
Builder
public Builder(Configuration configuration, String property, String column, TypeHandler<?> typeHandler)
-
Builder
public Builder(Configuration configuration, String property, String column, Class<?> javaType)
-
Builder
public Builder(Configuration configuration, String property)
-
-
Method Detail
-
javaType
public ResultMapping.Builder javaType(Class<?> javaType)
-
jdbcType
public ResultMapping.Builder jdbcType(JdbcType jdbcType)
-
nestedResultMapId
public ResultMapping.Builder nestedResultMapId(String nestedResultMapId)
-
nestedQueryId
public ResultMapping.Builder nestedQueryId(String nestedQueryId)
-
resultSet
public ResultMapping.Builder resultSet(String resultSet)
-
foreignColumn
public ResultMapping.Builder foreignColumn(String foreignColumn)
-
notNullColumns
public ResultMapping.Builder notNullColumns(Set<String> notNullColumns)
-
columnPrefix
public ResultMapping.Builder columnPrefix(String columnPrefix)
-
flags
public ResultMapping.Builder flags(List<ResultFlag> flags)
-
typeHandler
public ResultMapping.Builder typeHandler(TypeHandler<?> typeHandler)
-
composites
public ResultMapping.Builder composites(List<ResultMapping> composites)
-
lazy
public ResultMapping.Builder lazy(boolean lazy)
-
build
public ResultMapping build()
-
column
public ResultMapping.Builder column(String column)
-
-