APISonar


com.mysema.codegen.model.TypeCategory.TIME

> com > mysema > codegen > model > TypeCategory > TIME
com APIs mysema APIs codegen APIs model APIs TypeCategory APIs TIME APIs

Example 1
public TypeCategory getTypeByAnnotation(Class<?> cl, Annotation annotation) {
            switch (((Temporal) annotation).value()) {
                case DATE:
                    return TypeCategory.DATE;
                case TIME:
                    return TypeCategory.TIME;
                case TIMESTAMP:
                    return TypeCategory.DATETIME;
            }
            return null;
        }
Example 2
private Type getPropertyType(Attribute<?, ?> p, Type propertyType) {
        Temporal temporal = ((AnnotatedElement) p.getJavaMember()).getAnnotation(Temporal.class);
        if (temporal != null) {
            switch (temporal.value()) {
            case DATE: propertyType = propertyType.as(TypeCategory.DATE); break;
            case TIME: propertyType = propertyType.as(TypeCategory.TIME); break;
            case TIMESTAMP: propertyType = propertyType.as(TypeCategory.DATETIME); break;
            }
        }
        return propertyType;
    }