
When the Product.java file opens in the editor, modify it so that it reads as follows: package com.ebookfrenzy. In the Create New Class dialog, name the class Product and click on the OK button to generate the file. It is supposed to be the successor of ListView and GridView. Table 68-2 summarizes the structure of the entity:Ĭolumn Data Type productid Integer / Primary Key / Auto Increment productname String productquantity IntegerĪdd a class file for the entity by right clicking on the app -> java -> entry in the Project tool window and selecting the New -> Java Class menu option. The RecyclerView is a ViewGroup that renders any adapter-based view in a similar way. The product id column will serve as the primary key and will be auto-generated.

The entity will consist of an integer for the product id, a string column to hold the product name and another integer value to store the quantity. This project will begin by creating the entity which defines the schema for the database table.
