Class YesNoType

All Implemented Interfaces:
Type<Boolean>

public class YesNoType extends AbstractType<Boolean>
YesNoType maps Boolean to 'Y'/'N' on the JDBC level
Author:
tiwe
  • Constructor Details

    • YesNoType

      public YesNoType()
    • YesNoType

      public YesNoType(int type)
  • Method Details

    • getReturnedClass

      public Class<Boolean> getReturnedClass()
      Description copied from interface: Type
      Get the returned type
      Returns:
      returned class
    • getValue

      @Nullable public @Nullable Boolean getValue(ResultSet rs, int startIndex) throws SQLException
      Description copied from interface: Type
      Get the object from the result set
      Parameters:
      rs - result set
      startIndex - column index in result set
      Returns:
      value
      Throws:
      SQLException
    • setValue

      public void setValue(PreparedStatement st, int startIndex, Boolean value) throws SQLException
      Description copied from interface: Type
      Set the object to the statement
      Parameters:
      st - statement
      startIndex - column index in statement
      value - value to be set
      Throws:
      SQLException