Code example for SQLiteOpenHelper

Methods: close

0
     * @param database the database to be closed. 
     */ 
    public static void close( SQLiteOpenHelper database ) {
 
        if ( database != null ) {
            database.close();
        } 
    } 
 
    /** 
     * Closes the specified statement. 
     *  
     * @param statement the statement to be closed. 
     */ 
    public static void close( SQLiteStatement statement ) {
 
        if ( statement != null ) {
            statement.close();
        } 
    }