public static void map(IDatabase oldDb, IDatabase newDb, Sequence seq) throws Exception { String query = "SELECT l.*, e.f_flow FROM tbl_processlinks l " + "join tbl_exchanges e on l.f_provideroutput = e.id"; Mapper<ProcessLink> mapper = new Mapper<>(ProcessLink.class, oldDb, newDb); Handler handler = new Handler(seq); mapper.mapAll(query, handler); }
public static void map(IDatabase oldDb, IDatabase newDb, Sequence seq) throws Exception { String query = "SELECT * FROM tbl_projects"; Mapper<Project> mapper = new Mapper<>(Project.class, oldDb, newDb); Handler handler = new Handler(seq); mapper.mapAll(query, handler); }
public static void map(IDatabase oldDb, IDatabase newDb, Sequence seq) throws Exception { String query = "SELECT * FROM tbl_cost_categories"; Mapper<CostCategory> mapper = new Mapper<>(CostCategory.class, oldDb, newDb); Handler handler = new Handler(seq); mapper.mapAll(query, handler); }