public class JPATemporalAnnotationHelper extends Object implements AnnotationHelper
AnnotationHelper
that handles JPA Temporal
annotation.Modifier and Type | Field and Description |
---|---|
static JPATemporalAnnotationHelper |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
Object |
getCustomKey(Annotation annotation)
Get specific object that will be used as part of type cache key.
|
com.mysema.codegen.model.TypeCategory |
getTypeByAnnotation(Class<?> cl,
Annotation annotation)
Get the
TypeCategory according with object Class and Annotation. |
boolean |
isSupported(Class<? extends Annotation> annotationClass)
Verify if AnnotationHelper instance can handle the annotation.
|
public static final JPATemporalAnnotationHelper INSTANCE
public boolean isSupported(Class<? extends Annotation> annotationClass)
AnnotationHelper
isSupported
in interface AnnotationHelper
annotationClass
- Annotation class.true
if this AnnotationHelper can handle the annotation.public Object getCustomKey(Annotation annotation)
AnnotationHelper
getCustomKey
in interface AnnotationHelper
annotation
- Annotation instance.null
.public com.mysema.codegen.model.TypeCategory getTypeByAnnotation(Class<?> cl, Annotation annotation)
AnnotationHelper
TypeCategory
according with object Class and Annotation.getTypeByAnnotation
in interface AnnotationHelper
cl
- Class of type.annotation
- Annotation found on element.TypeCategory
.Copyright © 2007–2015 Mysema Ltd. All rights reserved.