The following example is a snippet of code that populates a table in the download with inserts using the last download time.
Note that this example assumes you have a DBConnectionContext instance called _cc.
// The method used for the handle_DownloadData event
public void handleDownload() throws SQLException {
// Get the DownloadData for the current synchronization.
DownloadData my_dd = _cc.getDownloadData();
// Get the DownloadTableData for the remoteOrders table.
DownloadTableData td = my_dd.getDownloadTableByName("remoteOrders");
// get the inserts given a last download time
ResultSet inserts_rs = makeInsertsFromTimestamp(td.getLastDownloadTime());
// fill the DownloadTableData using the inserts resultset.
setDownloadInsertsFromRS(td, inserts_rs);
inserts_rs.close();
// ...
}