Class BooleanTFConverter
java.lang.Object
org.kuali.rice.krad.data.jpa.converters.BooleanTFConverter
public class BooleanTFConverter
extends Object
implements javax.persistence.AttributeConverter<Boolean,String>
Converts true/false represented by the characters "T" and "F" to and from true and false.
The conversion treats the values as follows: "T" is true and "F" is false.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToDatabaseColumn(Boolean objectValue) This implementation will convert from a false or true value to an "F" or "T" value.convertToEntityAttribute(String dataValue) This implementation will convert from a "F" or "T" value to a false or true.
-
Constructor Details
-
BooleanTFConverter
public BooleanTFConverter()
-
-
Method Details
-
convertToDatabaseColumn
This implementation will convert from a false or true value to an "F" or "T" value. -
convertToEntityAttribute
This implementation will convert from a "F" or "T" value to a false or true.
-