org.apache.ibatis.scripting
Interface LanguageDriver

All Known Implementing Classes:
RawLanguageDriver, XMLLanguageDriver

public interface LanguageDriver


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
 

Method Detail

createParameterHandler

ParameterHandler createParameterHandler(MappedStatement mappedStatement,
                                        Object parameterObject,
                                        BoundSql boundSql)
Creates a ParameterHandler that will set the parameters of the

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

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

Parameters:
configuration - The MyBatis configuration
script - XNode parsed from a XML file
parameterType - input parameter type
Returns:

createSqlSource

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

Parameters:
configuration - The MyBatis configuration
script - The content of the annotation
parameterType - input parameter type
Returns:


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