Code example for SQLiteDatabase

Methods: close

0
    private String name;
 
    public void __constructor__(Context context, String name, CursorFactory factory, int version) {
        this.name = name;
        if (database != null) {
            database.close();
        } 
        database = null;
    } 
 
    @Implementation 
    public synchronized void close() { 
        if (database != null) {
            database.close();
        } 
        database = null;
    } 
 
    @Implementation 
    public synchronized SQLiteDatabase getReadableDatabase() {
        if (database == null) {