Certify and Increase Opportunity.
Be
Govt. Certified Blackberry Apps Developer
Data storage
Many apps that you create will need to manipulate data in some way. A contacts list app might need to load existing contacts from a data file and save new contacts in the file. A sports app might track team statistics in a data file and update these statistics after each game.
The Cascades framework uses a modular approach to store, access, and display data in your apps. This approach makes it easy for you to store different types of data, organize and model the data in different ways, and display the data with different visual styles.
The following diagram illustrates the different components that interact when you manipulate data in your app:
External data
This component represents the raw data for your app. The data could be a list of contact entries, a set of financial records, or a group of game objects. You can access data that you package with your app, but you can also create new data dynamically as your app runs. The format of this data can vary depending on your needs, and Cascades provides classes that help you manage three common data formats: JSON, SQL, and XML.
Data access
This component lets you access the external data and manipulate it in your app. You can load data files, create new files and save data in them, and handle any errors that might occur during these operations. Then, you can add the data to a data model to organize it before it’s displayed. You can use the
JsonDataAccess,
SqlDataAccess, and
XmlDataAccessclasses to load and save data in JSON, SQL, and XML format, respectively. You can also access SQL data asynchronously using an
SqlConnection. Supporting classes, such as
DataAccessError, give you more information about errors so you can handle them appropriately.
Data source
This component is designed specifically as an easy-to-use adapter in QML between external data and UI components. You can use the
DataSourceclass to declare the properties of the external data that you want to access. This data can be SQL, JSON, or XML data that’s stored locally, or it can be JSON or XML data feeds that are accessed remotely. You can also use the
DataSourceclass to control when and where the data is loaded.
Data model
This component lets you organize and sort your data, and then provide the data to a list view to display it. For example, you can use a
GroupDataModelto sort a list of employees by last name or employee number. Then, you can associate this data model with a list view, and your data is organized and displayed in the way you specified.
Apply for Blackberry Apps Certification Now!!
http://www.vskills.in/certification/Certified-Blackberry-Apps-Developer