Files in the sample application

File name

Description

SQLiteDemo.java

  • This file contains the application entry point.
  • This file contains the application's constructor, which creates an encrypted database on the media card of the BlackBerry® device if it is inserted or in device memory. If a media card is not inserted and the BlackBerry device supports storing the database in device memory, the encrypted database is created in device memory.
  • This file creates and displays an instance of SQLiteDemoScreen.

SQLiteDemoScreen.java

  • This file contains the application's main screen, which displays the database in a collapsible tree structure with Category entries as parent nodes and associated DirectoryItems as their children.
  • This file contains helper methods to populate the tree when the screen is initialized.
  • This file contains menu items for adding, updating, and deleting categories and directory items.

SQLManager.java

This file contains all the methods for adding, updating, and deleting categories and directory items (for instance, all of the database manipulation methods).

ItemScreen.java

This file contains the screen, which contains fields for adding and changing categories and directory items.

Category.java

  • This file defines the Category entries in the database.
  • This file provides accessor methods for the Category fields.

DirectoryItems.java

  • This file defines the DirectoryItems entries in the database.
  • This file provides accessor methods for the DirectoryItems fields.

SQLiteDemoDirectory

  • This file contains the database.
  • This file comes prepopulated with sample entries.
Next topic: System requirements
Previous topic: Featured classes

Was this information helpful? Send us your comments.