Class BooleanYNConverter
- java.lang.Object
-
- org.datanucleus.store.types.converters.BooleanYNConverter
-
- All Implemented Interfaces:
Serializable
,TypeConverter<Boolean,Character>
public class BooleanYNConverter extends Object implements TypeConverter<Boolean,Character>
Class to handle the conversion between java.lang.Boolean and a Character ("Y", "N") form.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BooleanYNConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Character
toDatastoreType(Boolean bool)
Method to convert the passed member value to the datastore type.Boolean
toMemberType(Character chr)
Method to convert the passed datastore value to the member type.
-
-
-
Method Detail
-
toMemberType
public Boolean toMemberType(Character chr)
Description copied from interface:TypeConverter
Method to convert the passed datastore value to the member type.- Specified by:
toMemberType
in interfaceTypeConverter<Boolean,Character>
- Parameters:
chr
- Value from the datastore- Returns:
- Value for the member
-
toDatastoreType
public Character toDatastoreType(Boolean bool)
Description copied from interface:TypeConverter
Method to convert the passed member value to the datastore type.- Specified by:
toDatastoreType
in interfaceTypeConverter<Boolean,Character>
- Parameters:
bool
- Value from the member- Returns:
- Value for the datastore
-
-