Package org.apache.ibatis.mapping
Class BoundSql
- java.lang.Object
-
- org.apache.ibatis.mapping.BoundSql
-
public class BoundSql extends java.lang.Object
An actual SQL String got from anSqlSource
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...).
- Author:
- Clinton Begin
-
-
Constructor Summary
Constructors Constructor Description BoundSql(Configuration configuration, java.lang.String sql, java.util.List<ParameterMapping> parameterMappings, java.lang.Object parameterObject)
-
Method Summary
Modifier and Type Method Description java.lang.Object
getAdditionalParameter(java.lang.String name)
java.util.List<ParameterMapping>
getParameterMappings()
java.lang.Object
getParameterObject()
java.lang.String
getSql()
boolean
hasAdditionalParameter(java.lang.String name)
void
setAdditionalParameter(java.lang.String name, java.lang.Object value)
-
-
-
Constructor Detail
-
BoundSql
public BoundSql(Configuration configuration, java.lang.String sql, java.util.List<ParameterMapping> parameterMappings, java.lang.Object parameterObject)
-
-
Method Detail
-
getSql
public java.lang.String getSql()
-
getParameterMappings
public java.util.List<ParameterMapping> getParameterMappings()
-
getParameterObject
public java.lang.Object getParameterObject()
-
hasAdditionalParameter
public boolean hasAdditionalParameter(java.lang.String name)
-
setAdditionalParameter
public void setAdditionalParameter(java.lang.String name, java.lang.Object value)
-
getAdditionalParameter
public java.lang.Object getAdditionalParameter(java.lang.String name)
-
-