Class BindVisitor

  • All Implemented Interfaces:
    BindMarkerNodeVisitor

    public class BindVisitor
    extends Object
    implements BindMarkerNodeVisitor
    Visitor implementation to bind (set) values for a PreparedStatement.
    The bindXX methods translate any SQLException to a DataAccessException which is unchecked - this avoids polluting callers with SQLException for looser coupling.
    • Method Detail

      • bindString

        public void bindString​(String value)
        Description copied from interface: BindMarkerNodeVisitor
        Bind the given value for the idx'th parameter. The idx value starts at 1, matching the semantics of the PreparedStatement setXX API.
        Specified by:
        bindString in interface BindMarkerNodeVisitor
      • bindLong

        public void bindLong​(Long value)
        Description copied from interface: BindMarkerNodeVisitor
        Bind the given value for the idx'th parameter. The idx value starts at 1, matching the semantics of the PreparedStatement setXX API.
        Specified by:
        bindLong in interface BindMarkerNodeVisitor
      • bindInt

        public void bindInt​(Integer value)
        Description copied from interface: BindMarkerNodeVisitor
        Bind the given value for the idx'th parameter. The idx value starts at 1, matching the semantics of the PreparedStatement setXX API.
        Specified by:
        bindInt in interface BindMarkerNodeVisitor
      • bindInstant

        public void bindInstant​(Instant value)
        Description copied from interface: BindMarkerNodeVisitor
        Bind the given value for the idx'th parameter. The idx value starts at 1, matching the semantics of the PreparedStatement setXX API.
        Specified by:
        bindInstant in interface BindMarkerNodeVisitor
      • bindDouble

        public void bindDouble​(Double value)
        Description copied from interface: BindMarkerNodeVisitor
        Bind the given value for the idx'th parameter. The idx value starts at 1, matching the semantics of the PreparedStatement setXX API.
        Specified by:
        bindDouble in interface BindMarkerNodeVisitor