org.datanucleus.store.types
Class JodaLocalDateStringConverter

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

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

Class to handle the conversion between org.joda.time.LocalDate and a String form. The string form is ISO8601 format ("yyyy-MM-dd").

See Also:
Serialized Form

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

Constructor Detail

JodaLocalDateStringConverter

public JodaLocalDateStringConverter()
Method Detail

toObject

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

toString

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


Copyright © 2011. All Rights Reserved.