Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Cursor.close() closes the Statement used to Create It

0 Likes
Started 10-25-2010 by
Modified 01-07-2011 by

Summary

 

This article applies to BlackBerry® devices based on Java® technology.

 


Description

 

When using SQLite®, the Cursor.close() method closes the Statement that was used to create the Cursor.  This means that you should avoid closing cursors if you wish to use the Statement in the future.  Closing a Statement closes all Cursors that were created from it.  Use of Cursor.close() is not recommended and this method will be deprecated in a future BlackBerry® Device Software release.

 

Further information on best practices for using SQLite on BlackBerry devices can be found here.

Contributors