org.apache.ibatis.scripting.xmltags
Class XMLLanguageDriver

java.lang.Object
  extended by org.apache.ibatis.scripting.xmltags.XMLLanguageDriver
All Implemented Interfaces:
LanguageDriver

public class XMLLanguageDriver
extends Object
implements LanguageDriver


Constructor Summary
XMLLanguageDriver()
           
 
Method Summary
 ParameterHandler createParameterHandler(MappedStatement mappedStatement, Object parameterObject, BoundSql boundSql)
          Creates a ParameterHandler that will set the parameters of the
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLLanguageDriver

public XMLLanguageDriver()
Method Detail

createParameterHandler

public ParameterHandler createParameterHandler(MappedStatement mappedStatement,
                                               Object parameterObject,
                                               BoundSql boundSql)
Description copied from interface: LanguageDriver
Creates a ParameterHandler that will set the parameters of the

Specified by:
createParameterHandler in interface LanguageDriver
Parameters:
mappedStatement - The mapped statement that is being executed
parameterObject - The input parameter object (can be null)
boundSql - The resulting SQL once the dynamic language has been executed.
Returns:

createSqlSource

public SqlSource createSqlSource(Configuration configuration,
                                 XNode script,
                                 Class<?> parameterType)
Description copied from interface: LanguageDriver
Creates an SqlSource that will hold the statement read from a mapper xml file

Specified by:
createSqlSource in interface LanguageDriver
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.
Returns:

createSqlSource

public SqlSource createSqlSource(Configuration configuration,
                                 String script,
                                 Class<?> parameterType)
Description copied from interface: LanguageDriver
Creates an SqlSource that will hold the statement read from an annotation

Specified by:
createSqlSource in interface LanguageDriver
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.
Returns:


Copyright © 2010-2013 MyBatis.org. All Rights Reserved.