Example usage for org.apache.ibatis.builder.xml XMLStatementBuilder XMLStatementBuilder

List of usage examples for org.apache.ibatis.builder.xml XMLStatementBuilder XMLStatementBuilder

Introduction

In this page you can find the example usage for org.apache.ibatis.builder.xml XMLStatementBuilder XMLStatementBuilder.

Prototype

public XMLStatementBuilder(Configuration configuration, MapperBuilderAssistant builderAssistant, XNode context,
            String databaseId) 

Source Link

Usage

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

License:Apache License

private void buildStatementFromContext(List<XNode> list, String requiredDatabaseId) {
    for (XNode context : list) {
        final XMLStatementBuilder statementParser = new XMLStatementBuilder(configuration, builderAssistant,
                context, requiredDatabaseId);
        try {//from  w w w . j  a v  a  2  s.c o m
            statementParser.parseStatementNode();
        } catch (IncompleteElementException e) {
            configuration.addIncompleteStatement(statementParser);
        }
    }
}