Code example for Field

Methods: getAnnotation, getType

0
 
        return field.getName();
    } 
 
    public static Object getColumnDefaultValue(Field field) {
        Column column = field.getAnnotation(Column.class);
        if (column != null && !TextUtils.isEmpty(column.defaultValue())) {
            return valueStr2SimpleTypeFieldValue(field.getType(), column.defaultValue());
        } 
        return null; 
    } 
 
    public static boolean isTransient(Field field) {
        return field.getAnnotation(Transient.class) != null;
    } 
 
    public static boolean isForeign(Field field) {
        return field.getAnnotation(Foreign.class) != null;
    } 
 
    public static boolean isFinder(Field field) {