Example usage for org.apache.ibatis.builder.annotation MethodResolver MethodResolver

List of usage examples for org.apache.ibatis.builder.annotation MethodResolver MethodResolver

Introduction

In this page you can find the example usage for org.apache.ibatis.builder.annotation MethodResolver MethodResolver.

Prototype

public MethodResolver(MapperAnnotationBuilder annotationBuilder, Method method) 

Source Link

Usage

From source file:com.baomidou.mybatisplus.MybatisMapperAnnotationBuilder.java

License:Apache License

public void parse() {
    String resource = type.toString();
    if (!configuration.isResourceLoaded(resource)) {
        boolean existXml = loadXmlResource();
        configuration.addLoadedResource(resource);
        assistant.setCurrentNamespace(type.getName());
        parseCache();/*  ww w.ja v a  2 s. c  o  m*/
        parseCacheRef();
        Method[] methods = type.getMethods();
        // TODO  xxMapper.xml CURD (?)
        inspectInject(existXml);
        for (Method method : methods) {
            try {
                // issue #237
                if (!method.isBridge()) {
                    parseStatement(method);
                }
            } catch (IncompleteElementException e) {
                configuration.addIncompleteMethod(new MethodResolver(this, method));
            }
        }
    }
    parsePendingMethods();
}

From source file:com.mybatisX.core.MybatisMapperAnnotationBuilder.java

License:Apache License

public void parse() {
    String resource = type.toString();
    if (!configuration.isResourceLoaded(resource)) {
        boolean existXml = loadXmlResource();
        configuration.addLoadedResource(resource);
        assistant.setCurrentNamespace(type.getName());
        parseCache();//from  w ww . j  a  v  a2  s.  c  o  m
        parseCacheRef();
        Method[] methods = type.getMethods();
        //TODO  xxMapper.xml CURD (?)
        inspectInject(existXml);
        for (Method method : methods) {
            try {
                // issue #237
                if (!method.isBridge()) {
                    parseStatement(method);
                }
            } catch (IncompleteElementException e) {
                configuration.addIncompleteMethod(new MethodResolver(this, method));
            }
        }

    }
    parsePendingMethods();
}