All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ibatis.sqlmap.engine.mapping.sql.raw.RawSql Maven / Gradle / Ivy

There is a newer version: 3.0-beta-10
Show newest version
package com.ibatis.sqlmap.engine.mapping.sql.raw;

import com.ibatis.sqlmap.engine.mapping.sql.Sql;
import com.ibatis.sqlmap.engine.mapping.parameter.ParameterMap;
import com.ibatis.sqlmap.engine.mapping.result.ResultMap;
import com.ibatis.sqlmap.engine.scope.StatementScope;

/**
 * A non-executable SQL container simply for
 * communicating raw SQL around the framework.
 */
public class RawSql implements Sql {

  private String sql;

  public RawSql(String sql) {
    this.sql = sql;
  }

  public String getSql(StatementScope statementScope, Object parameterObject) {
    return sql;
  }

  public ParameterMap getParameterMap(StatementScope statementScope, Object parameterObject) {
    throw new RuntimeException ("Method not implemented on RawSql.");
  }

  public ResultMap getResultMap(StatementScope statementScope, Object parameterObject) {
    throw new RuntimeException ("Method not implemented on RawSql.");
  }

  public void cleanup(StatementScope statementScope) {
    throw new RuntimeException ("Method not implemented on RawSql.");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy