org.datanucleus.store.types
Class CurrencyStringConverter

java.lang.Object
  extended by org.datanucleus.store.types.CurrencyStringConverter
All Implemented Interfaces:
ObjectStringConverter

public class CurrencyStringConverter
extends java.lang.Object
implements ObjectStringConverter

Class to handle the conversion between java.util.Currency and a String form.


Field Summary
 
Fields inherited from interface org.datanucleus.store.types.ObjectStringConverter
LOCALISER
 
Constructor Summary
CurrencyStringConverter()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrencyStringConverter

public CurrencyStringConverter()
Method Detail

toObject

public java.lang.Object toObject(java.lang.String str)
Description copied from interface: ObjectStringConverter
Method to convert from String back to the object.

Specified by:
toObject in interface ObjectStringConverter
Parameters:
str - The string
Returns:
The object

toString

public java.lang.String toString(java.lang.Object obj)
Description copied from interface: ObjectStringConverter
Method to convert from the object to its String form

Specified by:
toString in interface ObjectStringConverter
Parameters:
obj - The object
Returns:
String form


Copyright © 2010. All Rights Reserved.