private static VegetationSurveyProxy buildCanopy(String canopy) { VegetationSurveyProxy result = new VegetationSurveyProxy(); result.setModel(new Station()); result.getModel().setStationType(VegetationGlobals.STATION_TYPE_VEGETATION_CANOPY); result.getModel().setName(canopy); result.getModel().setRowGuid(); result.setStationElements(new ArrayList<StationElementProxy>()); return result; }
private static VegetationSurveyProxy buildCanopy(Station station) { VegetationSurveyProxy result = new VegetationSurveyProxy(); result.setModel(station); ElementService es = new ElementService(SageApplication.getInstance().getDaoSession()); List<StationElement> stationElements = es.findStationElements(station); if (stationElements != null) result.setStationElements(es.convertFromStationElements(stationElements)); return result; }