Class BoundSql


  • public class BoundSql
    extends java.lang.Object
    An actual SQL String got from 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...).

    Author:
    Clinton Begin
    • 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)