org.datanucleus.store.types
Class JodaDurationStringConverter

java.lang.Object
  extended by org.datanucleus.store.types.JodaDurationStringConverter
All Implemented Interfaces:
java.io.Serializable, org.datanucleus.store.types.ObjectStringConverter<org.joda.time.Duration>

public class JodaDurationStringConverter
extends java.lang.Object
implements org.datanucleus.store.types.ObjectStringConverter<org.joda.time.Duration>

Class to handle the conversion between org.joda.time.Duration and a String form.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.datanucleus.store.types.ObjectStringConverter
LOCALISER
 
Constructor Summary
JodaDurationStringConverter()
           
 
Method Summary
 org.joda.time.Duration toObject(java.lang.String str)
           
 java.lang.String toString(org.joda.time.Duration dur)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JodaDurationStringConverter

public JodaDurationStringConverter()
Method Detail

toObject

public org.joda.time.Duration toObject(java.lang.String str)
Specified by:
toObject in interface org.datanucleus.store.types.ObjectStringConverter<org.joda.time.Duration>

toString

public java.lang.String toString(org.joda.time.Duration dur)
Specified by:
toString in interface org.datanucleus.store.types.ObjectStringConverter<org.joda.time.Duration>


Copyright © 2011. All Rights Reserved.