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 CharactertoDatastoreType(Boolean bool)Method to convert the passed member value to the datastore type.BooleantoMemberType(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:TypeConverterMethod to convert the passed datastore value to the member type.- Specified by:
toMemberTypein interfaceTypeConverter<Boolean,Character>- Parameters:
chr- Value from the datastore- Returns:
- Value for the member
-
toDatastoreType
public Character toDatastoreType(Boolean bool)
Description copied from interface:TypeConverterMethod to convert the passed member value to the datastore type.- Specified by:
toDatastoreTypein interfaceTypeConverter<Boolean,Character>- Parameters:
bool- Value from the member- Returns:
- Value for the datastore
-
-