org.loom.converter.date
Class TemporalConverterFactory

java.lang.Object
  extended by org.loom.converter.date.TemporalConverterFactory
All Implemented Interfaces:
AnnotationDrivenConverterFactory<javax.persistence.Temporal>

public class TemporalConverterFactory
extends java.lang.Object
implements AnnotationDrivenConverterFactory<javax.persistence.Temporal>

Converter factory for JPA annotated date properties


Constructor Summary
TemporalConverterFactory()
           
 
Method Summary
 java.lang.Class<javax.persistence.Temporal> getAnnotationClass()
           
 Converter getConverter(AnnotationContainer container, javax.persistence.Temporal annotation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemporalConverterFactory

public TemporalConverterFactory()
Method Detail

getConverter

public Converter getConverter(AnnotationContainer container,
                              javax.persistence.Temporal annotation)
Specified by:
getConverter in interface AnnotationDrivenConverterFactory<javax.persistence.Temporal>
annotation - the annotation that was found on this property
Returns:
The converter for this property.

getAnnotationClass

public java.lang.Class<javax.persistence.Temporal> getAnnotationClass()
Specified by:
getAnnotationClass in interface AnnotationDrivenConverterFactory<javax.persistence.Temporal>
Returns:
the annotation class processed by this factory