Example usage for org.apache.ibatis.builder StaticSqlSource StaticSqlSource

List of usage examples for org.apache.ibatis.builder StaticSqlSource StaticSqlSource

Introduction

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

Prototype

public StaticSqlSource(Configuration configuration, String sql) 

Source Link

Usage

From source file:org.apache.aurora.scheduler.storage.db.DbStorage.java

License:Apache License

private static void addMappedStatement(Configuration configuration, String name, String sql) {
    configuration.addMappedStatement(/*ww w  .j a v a2 s .  co m*/
            new Builder(configuration, name, new StaticSqlSource(configuration, sql), UPDATE).build());
}