public class

RawLanguageDriver

extends XMLLanguageDriver
java.lang.Object
   ↳ org.apache.ibatis.scripting.xmltags.XMLLanguageDriver
     ↳ org.apache.ibatis.scripting.defaults.RawLanguageDriver

Class Overview

As of 3.2.4 the default XML language is able to identify static statements and create a RawSqlSource. So there is no need to use RAW unless you want to make sure that there is not any dynamic tag for any reason.

Summary

Public Constructors
RawLanguageDriver()
Public Methods
SqlSource createSqlSource(Configuration configuration, String script, Class<?> parameterType)
Creates an SqlSource that will hold the statement read from an annotation.
SqlSource createSqlSource(Configuration configuration, XNode script, Class<?> parameterType)
Creates an SqlSource that will hold the statement read from a mapper xml file.
[Expand]
Inherited Methods
From class org.apache.ibatis.scripting.xmltags.XMLLanguageDriver
From class java.lang.Object
From interface org.apache.ibatis.scripting.LanguageDriver

Public Constructors

public RawLanguageDriver ()

Public Methods

public SqlSource createSqlSource (Configuration configuration, String script, Class<?> parameterType)

Creates an SqlSource that will hold the statement read from an annotation. It is called during startup, when the mapped statement is read from a class or an xml file.

Parameters
configuration The MyBatis configuration
script The content of the annotation
parameterType input parameter type got from a mapper method or specified in the parameterType xml attribute. Can be null.

public SqlSource createSqlSource (Configuration configuration, XNode script, Class<?> parameterType)

Creates an SqlSource that will hold the statement read from a mapper xml file. It is called during startup, when the mapped statement is read from a class or an xml file.

Parameters
configuration The MyBatis configuration
script XNode parsed from a XML file
parameterType input parameter type got from a mapper method or specified in the parameterType xml attribute. Can be null.