Example usage for org.apache.ibatis.mapping ParameterMapping getResultMapId

List of usage examples for org.apache.ibatis.mapping ParameterMapping getResultMapId

Introduction

In this page you can find the example usage for org.apache.ibatis.mapping ParameterMapping getResultMapId.

Prototype

public String getResultMapId() 

Source Link

Document

Used for handling output of callable statements.

Usage

From source file:org.mybatis.scripting.velocity.ParameterMappingCollector.java

License:Apache License

private ParameterMapping itemize(ParameterMapping source, PropertyInfo var) {
    StringBuilder sb = new StringBuilder().append("_RPTITEM_").append(uid++);
    var.root = sb.toString();
    String propertyName = sb.append(var.path).toString();
    ParameterMapping.Builder builder = new ParameterMapping.Builder(configuration, propertyName,
            source.getJavaType());//from  w w w. ja v a 2  s  .co m
    builder.expression(source.getExpression()).jdbcType(source.getJdbcType())
            .jdbcTypeName(source.getJdbcTypeName()).mode(source.getMode())
            .numericScale(source.getNumericScale()).resultMapId(source.getResultMapId())
            .typeHandler(source.getTypeHandler());
    return builder.build();
}