Class YesNoConverter

All Implemented Interfaces:
AttributeConverter<Boolean,Character>, BasicValueConverter<Boolean,Character>, StandardBooleanConverter<Character>, StandardConverter<Boolean,Character>

public class YesNoConverter extends CharBooleanConverter
Handles conversion to/from Boolean as 'Y' or 'N'
  • Field Details

    • INSTANCE

      public static final YesNoConverter INSTANCE
      Singleton access
  • Constructor Details

    • YesNoConverter

      public YesNoConverter()
  • Method Details

    • getValues

      protected String[] getValues()
      Specified by:
      getValues in class CharBooleanConverter
    • toDomainValue

      public Boolean toDomainValue(Character relationalForm)
      Description copied from interface: BasicValueConverter
      Convert the relational form just retrieved from JDBC ResultSet into the domain form.
    • toRelationalValue

      public Character toRelationalValue(Boolean domainForm)
      Description copied from interface: BasicValueConverter
      Convert the domain form into the relational form in preparation for storage into JDBC