org.apache.ibatis.mapping
Class BoundSql

java.lang.Object
  extended by org.apache.ibatis.mapping.BoundSql

public class BoundSql
extends Object

An actual SQL String got form an SqlSource after having processed any dynamic content. The SQL may have SQL placeholders "?" and an list (ordered) of an parameter mappings with the additional information for each parameter (at least the property name of the input object to read the value from).
Can also have additional parameters that are created by the dynamic language (for loops, bind...).


Constructor Summary
BoundSql(Configuration configuration, String sql, List<ParameterMapping> parameterMappings, Object parameterObject)
           
 
Method Summary
 Object getAdditionalParameter(String name)
           
 List<ParameterMapping> getParameterMappings()
           
 Object getParameterObject()
           
 String getSql()
           
 boolean hasAdditionalParameter(String name)
           
 void setAdditionalParameter(String name, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundSql

public BoundSql(Configuration configuration,
                String sql,
                List<ParameterMapping> parameterMappings,
                Object parameterObject)
Method Detail

getSql

public String getSql()

getParameterMappings

public List<ParameterMapping> getParameterMappings()

getParameterObject

public Object getParameterObject()

hasAdditionalParameter

public boolean hasAdditionalParameter(String name)

setAdditionalParameter

public void setAdditionalParameter(String name,
                                   Object value)

getAdditionalParameter

public Object getAdditionalParameter(String name)


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