public void abrirBD(String nombreBD)
    {
        try 
        {
            this.bd = SqlJetDb.open(new File(nombreBD), true);
            this.bd.beginTransaction(SqlJetTransactionMode.WRITE);
        } 
        catch (SqlJetException ex) 
        {Logger.getLogger(BD.class.getName()).log(Level.SEVERE, null, ex);}           
        finally 
        {
            try 
            {
                this.bd.commit();
                this.bd.close();
            } 
            catch (SqlJetException ex) 
            {Logger.getLogger(BD.class.getName()).log(Level.SEVERE, null, ex);}
        }
    }