org.sormula.annotation
Annotation Type ExplicitType


@Retention(value=RUNTIME)
@Target(value={TYPE,ANNOTATION_TYPE})
public @interface ExplicitType

Associates a type with a TypeTranslator. Annotate row class, subclass of Table or subclass of Database. A type only needs to be annotated once for a database or only once per table.

When used on row or table class, then type is defined with Table.putTypeTranslator(Class, TypeTranslator). When used on a database, then type is added with Database.putTypeTranslator(Class, TypeTranslator).

Since:
1.6 and 2.0
Author:
Jeff Miller

Required Element Summary
 java.lang.Class<? extends TypeTranslator> translator
           
 java.lang.Class<?> type
           
 

Element Detail

type

public abstract java.lang.Class<?> type
Returns:
class type that will be converted with translator

translator

public abstract java.lang.Class<? extends TypeTranslator> translator
Returns:
type translator to use on class