@InterfaceAudience.Private
    protected void forgetDatabase(Database db) {
        synchronized (lockDatabases) {
            Log.v(Log.TAG_DATABASE, "Fogetting forgetDatabase() %s %s", this, db);

            // remove from cached list of dbs
            databases.remove(db.getName());

            // remove from list of replications
            // TODO: should there be something that actually stops the replication(s) first?
            Iterator<Replication> replicationIterator = this.replications.iterator();
            while (replicationIterator.hasNext()) {
                Replication replication = replicationIterator.next();
                if (replication.getLocalDatabase().getName().equals(db.getName())) {
                    replicationIterator.remove();
                }
            }

            // Remove registered encryption key if available:
            encryptionKeys.remove(db.getName());

            Log.v(Log.TAG_DATABASE, "Forgot forgetDatabase() %s %s", this, db);
        }
    }
@ InterfaceAudience . Private protected void forgetDatabase ( Database db ) { synchronized ( lockDatabases ) { Log . v ( Log . TAG_DATABASE , "Fogetting forgetDatabase() %s %s" , this , db ) ; databases . remove ( db . getName ( ) ) ; Iterator < Replication > replicationIterator = this . replications . iterator ( ) ; while ( replicationIterator . hasNext ( ) ) { Replication replication = replicationIterator . next ( ) ; if ( replication . getLocalDatabase ( ) . getName ( ) . equals ( db . getName ( ) ) ) { replicationIterator . remove ( ) ; } } encryptionKeys . remove ( db . getName ( ) ) ; Log . v ( Log . TAG_DATABASE , "Forgot forgetDatabase() %s %s" , this , db ) ; } }
@exclude