Code example for Field

Methods: isAnnotationPresent

0
    private String columnName;
    private SortOrderInfo defaultSortOrderInfo;
    private ProjectionMapInfo projectionMapInfo;
 
    public ColumnInfo(Field columnField) {
        if (!columnField.isAnnotationPresent(DatabaseField.class)) {
            throw new IllegalArgumentException("Parameter does not implement the DatabaseField annotation.");
        } 
 
        this.field = columnField;
        this.columnName = OrmLiteAnnotationAccessor.getAnnotationColumnName(columnField);
        this.defaultSortOrderInfo = new SortOrderInfo(columnField);
        this.projectionMapInfo = new ProjectionMapInfo(columnField);
    } 
 
    @Override 
    public boolean isValid() { 
        return isValid(false); 
    } 
 
    @Override