org.datanucleus.store.types
Class JodaDateTimeStringConverter

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

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

Class to handle the conversion between org.joda.time.DateTime and a String form. The string form is ISO8601 format ("yyyy-MM-ddTHH:mm:ss.SSSZZ").

See Also:
Serialized Form

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

Constructor Detail

JodaDateTimeStringConverter

public JodaDateTimeStringConverter()
Method Detail

toObject

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

toString

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


Copyright © 2011. All Rights Reserved.