public void close() throws SqlJetException { db.close(); }
public void close() throws SVNException { if (myRepCacheDB != null) { try { myRepCacheDB.close(); } catch (SqlJetException e) { SVNErrorManager.error(convertError(e), SVNLogType.FSFS); } finally { myTable = null; myRepCacheDB = null; myFSFS = null; } } }
public void close() throws SVNException { if (myRepCacheDB != null) { try { myRepCacheDB.close(); } catch (SqlJetException e) { SVNErrorManager.error(convertError(e), SVNLogType.FSFS); } finally { myTable = null; myRepCacheDB = null; myFSFS = null; } } }
public void close() throws SVNException { if (myRepCacheDB != null) { try { myRepCacheDB.close(); } catch (SqlJetException e) { SVNErrorManager.error(convertError(e), SVNLogType.FSFS); } finally { myTable = null; myRepCacheDB = null; myFSFS = null; } } }
private void closeTemporaryDatabase() throws SqlJetException { if (temporaryDb != null) { temporaryDb.close(); File tmpDbFile = temporaryDb.getFile(); if (tmpDbFile != null && !IN_MEMORY.equals(tmpDbFile)) { getFileSystem().delete(tmpDbFile, false); } } temporaryDb = null; }
/** * {@inheritDoc} * @see net.sf.hajdbc.pool.PoolProvider#close(java.lang.Object) */ @Override public void close(SqlJetDb database) { try { database.close(); } catch (SqlJetException e) { this.logger.log(Level.WARN, e, e.getMessage()); } }
public void close() throws SVNException { if (temporaryDb != null) { try { temporaryDb.close(); } catch (SVNException e) { // } temporaryDb = null; } if (db != null) { try { db.close(); } catch (SqlJetException e) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.SQLITE_ERROR, e); SVNErrorManager.error(err, SVNLogType.WC); } } }
public static void createRepresentationCache(File path) throws SVNException { SqlJetDb db = null; try { db = SqlJetDb.open(path, true); checkFormat(db); } catch (SqlJetException e) { SVNDebugLog.getDefaultLog().logError(SVNLogType.FSFS, e); } finally { if (db != null) { try { db.close(); } catch (SqlJetException e) { SVNDebugLog.getDefaultLog().logFine(SVNLogType.FSFS, e); } } } }
public static void createRepresentationCache(File path) throws SVNException { SqlJetDb db = null; try { db = SqlJetDb.open(path, true); checkFormat(db); } catch (SqlJetException e) { SVNErrorManager.error(FSRepresentationCacheManager.convertError(e), SVNLogType.FSFS); } finally { if (db != null) { try { db.close(); } catch (SqlJetException e) { SVNDebugLog.getDefaultLog().logFine(SVNLogType.FSFS, e); } } } }
public static void createRepresentationCache(File path) throws SVNException { SqlJetDb db = null; try { db = SqlJetDb.open(path, true); checkFormat(db); } catch (SqlJetException e) { SVNErrorManager.error(FSRepresentationCacheManager.convertError(e), SVNLogType.FSFS); } finally { if (db != null) { try { db.close(); } catch (SqlJetException e) { SVNDebugLog.getDefaultLog().logFine(SVNLogType.FSFS, e); } } } }