Interface Converter

All Known Implementing Classes:
BooleanConverters

public interface Converter
This interface implements a data converter class. The interface must be implemented by every class performing data conversion between Java and the database. The enum BooleanConverters contains such converter implementations. It converts Java’s boolean values to string or numeric values in the database.
Since:
4.0
Author:
JBStrap
  • Method Summary

    Modifier and Type
    Method
    Description
    Converts Java values to database values.
    toJava(Object value)
    Converts database values to Java values.
  • Method Details

    • toJava

      Object toJava(Object value)
      Converts database values to Java values.
      Parameters:
      value - Database value
      Returns:
      Java value
    • toDatabase

      Object toDatabase(Object value)
      Converts Java values to database values.
      Parameters:
      value - Java value
      Returns:
      Database value