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 java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder(Configuration configuration, java.lang.String property)
Builder(Configuration configuration, java.lang.String property, java.lang.String column, java.lang.Class<?> javaType)
Builder(Configuration configuration, java.lang.String property, java.lang.String column, TypeHandler<?> typeHandler)
-
Method Summary
Modifier and Type Method Description ResultMapping
build()
ResultMapping.Builder
column(java.lang.String column)
ResultMapping.Builder
columnPrefix(java.lang.String columnPrefix)
ResultMapping.Builder
composites(java.util.List<ResultMapping> composites)
ResultMapping.Builder
flags(java.util.List<ResultFlag> flags)
ResultMapping.Builder
foreignColumn(java.lang.String foreignColumn)
ResultMapping.Builder
javaType(java.lang.Class<?> javaType)
ResultMapping.Builder
jdbcType(JdbcType jdbcType)
ResultMapping.Builder
lazy(boolean lazy)
ResultMapping.Builder
nestedQueryId(java.lang.String nestedQueryId)
ResultMapping.Builder
nestedResultMapId(java.lang.String nestedResultMapId)
ResultMapping.Builder
notNullColumns(java.util.Set<java.lang.String> notNullColumns)
ResultMapping.Builder
resultSet(java.lang.String resultSet)
ResultMapping.Builder
typeHandler(TypeHandler<?> typeHandler)
-
-
-
Constructor Detail
-
Builder
public Builder(Configuration configuration, java.lang.String property, java.lang.String column, TypeHandler<?> typeHandler)
-
Builder
public Builder(Configuration configuration, java.lang.String property, java.lang.String column, java.lang.Class<?> javaType)
-
Builder
public Builder(Configuration configuration, java.lang.String property)
-
-
Method Detail
-
javaType
public ResultMapping.Builder javaType(java.lang.Class<?> javaType)
-
jdbcType
public ResultMapping.Builder jdbcType(JdbcType jdbcType)
-
nestedResultMapId
public ResultMapping.Builder nestedResultMapId(java.lang.String nestedResultMapId)
-
nestedQueryId
public ResultMapping.Builder nestedQueryId(java.lang.String nestedQueryId)
-
resultSet
public ResultMapping.Builder resultSet(java.lang.String resultSet)
-
foreignColumn
public ResultMapping.Builder foreignColumn(java.lang.String foreignColumn)
-
notNullColumns
public ResultMapping.Builder notNullColumns(java.util.Set<java.lang.String> notNullColumns)
-
columnPrefix
public ResultMapping.Builder columnPrefix(java.lang.String columnPrefix)
-
flags
public ResultMapping.Builder flags(java.util.List<ResultFlag> flags)
-
typeHandler
public ResultMapping.Builder typeHandler(TypeHandler<?> typeHandler)
-
composites
public ResultMapping.Builder composites(java.util.List<ResultMapping> composites)
-
lazy
public ResultMapping.Builder lazy(boolean lazy)
-
build
public ResultMapping build()
-
column
public ResultMapping.Builder column(java.lang.String column)
-
-