org.datanucleus.store.types
Interface ObjectStringConverter

All Known Implementing Classes:
BigDecimalStringConverter, BigIntegerStringConverter, BitSetStringConverter, ColorStringConverter, CurrencyStringConverter, DateStringConverter, LocaleStringConverter, PointStringConverter, RectangleStringConverter, StringBufferStringConverter, TimeZoneStringConverter, URIStringConverter, URLStringConverter, UUIDStringConverter

public interface ObjectStringConverter

Interface for an object that can be converted to/from a String. Used for datastores that allow persistence of Strings but not of a native Java type.


Field Summary
static Localiser LOCALISER
          Localiser for messages
 
Method Summary
 java.lang.Object toObject(java.lang.String str)
          Method to convert from String back to the object.
 java.lang.String toString(java.lang.Object obj)
          Method to convert from the object to its String form
 

Field Detail

LOCALISER

static final Localiser LOCALISER
Localiser for messages

Method Detail

toString

java.lang.String toString(java.lang.Object obj)
Method to convert from the object to its String form

Parameters:
obj - The object
Returns:
String form

toObject

java.lang.Object toObject(java.lang.String str)
Method to convert from String back to the object.

Parameters:
str - The string
Returns:
The object


Copyright © 2011. All Rights Reserved.