Class PreparedStatementIndexSetterOnGetter<I,P>

java.lang.Object
org.simpleflatmapper.jdbc.impl.setter.PreparedStatementIndexSetterOnGetter<I,P>
All Implemented Interfaces:
PreparedStatementIndexSetter<P>, org.simpleflatmapper.map.setter.ContextualIndexedSetter<PreparedStatement,P>

public class PreparedStatementIndexSetterOnGetter<I,P> extends Object implements PreparedStatementIndexSetter<P>
  • Constructor Details

    • PreparedStatementIndexSetterOnGetter

      public PreparedStatementIndexSetterOnGetter(PreparedStatementIndexSetter<I> setter, org.simpleflatmapper.reflect.Getter<P,I> getter)
  • Method Details

    • set

      public void set(PreparedStatement ps, P value, int columnIndex, org.simpleflatmapper.converter.Context context) throws SQLException
      Specified by:
      set in interface org.simpleflatmapper.map.setter.ContextualIndexedSetter<I,P>
      Specified by:
      set in interface PreparedStatementIndexSetter<I>
      Parameters:
      ps - the preparedStatement to bind against
      value - the value to bind
      columnIndex - the index to start binding at
      Throws:
      SQLException - if an error occurs