/** * Loads an schedule item from a datasource * * @param dataSource the datasource object where to look up the schedule item * @param rowKey the rowkey of the schedule item to retrieve * @return */ public static ScheduleItem load(DataSource dataSource, Schedule schedule, String rowKey) { Table table = dataSource.getTable(ScheduleItem.tableName); Get get = ScheduleItem.fillGetObject(table.createGetObject(rowKey)); Result result = table.get(get); ScheduleItem r = ScheduleItem.fromResultObject(schedule, result); return r; }