insertStatement.setLong(7, workInfo.getPeriod().longValue());
}
insertStatement.setBoolean(8, workInfo.getAtFixedRate());
int result = insertStatement.executeUpdate();
if (result != 1) {
throw new PersistenceException("Could not insert!");
}
} finally {
insertStatement.close();
}
} finally {
c.close();
}
} catch (SQLException e) {
throw new PersistenceException(e);
}
}