Creating the StockUpdate object

Finally, since all the data is available for use, we can create the StockUpdate object by calling the constructor with appropriate values:

final StockUpdate stockUpdate = new StockUpdate(
stockSymbol,
price,
date
);

We shouldn't forget to set the ID of the StockUpdate that was given by the database:

stockUpdate.setId(id);

Now that we have the GetResolver ready, we should plug it in to StorIO.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.58.44.229