Spring Data Core

org.springframework.data.convert
Class JodaTimeConverters

java.lang.Object
  extended by org.springframework.data.convert.JodaTimeConverters

public abstract class JodaTimeConverters
extends Object

Helper class to register JodaTime specific JodaTimeConverters.LocalDateToDateConverter implementations in case the library is present on the classpath.

Author:
Oliver Gierke

Nested Class Summary
static class JodaTimeConverters.DateMidnightToDateConverter
           
static class JodaTimeConverters.DateTimeToDateConverter
           
static class JodaTimeConverters.DateToDateMidnightConverter
           
static class JodaTimeConverters.DateToDateTimeConverter
           
static class JodaTimeConverters.DateToLocalDateConverter
           
static class JodaTimeConverters.DateToLocalDateTimeConverter
           
static class JodaTimeConverters.LocalDateTimeToDateConverter
           
static class JodaTimeConverters.LocalDateToDateConverter
           
 
Constructor Summary
JodaTimeConverters()
           
 
Method Summary
static Collection<Converter<?,?>> getConvertersToRegister()
          Returns the converters to be registered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JodaTimeConverters

public JodaTimeConverters()
Method Detail

getConvertersToRegister

public static Collection<Converter<?,?>> getConvertersToRegister()
Returns the converters to be registered. Will only return converters in case JodaTime is present on the class.

Returns:

Spring Data Core

Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.