public Cursor query ( String table , String [ ] columns , String selection , String [ ] selectionArgs , String groupBy , String having , String orderBy ) { SQLiteDatabase db = getDatabaseConnection ( ) ; return new DbClosingCursor ( db . query ( table , columns , selection , selectionArgs , groupBy , having , orderBy ) , this ) ; }
Executes a query on the database . Note that when calling close on the returned cursor the database connection count is reduces as well .