Package com.jbstrap.ui.interfaces
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
-
Method Details
-
toJava
Converts database values to Java values.- Parameters:
value
- Database value- Returns:
- Java value
-
toDatabase
Converts Java values to database values.- Parameters:
value
- Java value- Returns:
- Database value
-