org.datanucleus.store.types
Class JodaPeriodStringConverter

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

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

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

See Also:
Serialized Form

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

Constructor Detail

JodaPeriodStringConverter

public JodaPeriodStringConverter()
Method Detail

toObject

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

toString

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


Copyright © 2011. All Rights Reserved.