Object getPrimaryDatabase ( ) throws FetchException { Object database = mPrimaryDatabase ; if ( database == null ) { checkClosed ( ) ; throw new IllegalStateException ( "BDBStorage not opened" ) ; } return database ; }
Caller must hold transaction lock . May throw FetchException if storage is closed .