public void allowConnection(final boolean allowed){
  allowConnection=allowed;
  updateActions(database);
}

public void allowConnection ( final boolean allowed ) { allowConnection = allowed ; updateActions ( database ) ; }
sets the state that says whether connections to the database are currently allowed .
