Codota Logo
SqlJetDb.close
Code IndexAdd Codota to your IDE (free)

How to use
close
method
in
org.tmatesoft.sqljet.core.table.SqlJetDb

Best Java code snippets using org.tmatesoft.sqljet.core.table.SqlJetDb.close (Showing top 10 results out of 315)

  • Common ways to obtain SqlJetDb
private void myMethod () {
SqlJetDb s =
  • Codota IconFile file;SqlJetDb.open(file, true)
  • Codota IconFSFS fSFS;SqlJetDb.open(fSFS.getRepositoryCacheFile(), true)
  • Smart code suggestions by Codota
}
origin: org.tmatesoft.sqljet/sqljet

public void close() throws SqlJetException {
  db.close();
}
origin: com.svnkit/com.springsource.org.tigris.subversion.javahl

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;
    }
  }
}

origin: org.tmatesoft.svnkit/svnkit

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;
    }
  }
}

origin: org.jvnet.hudson.svnkit/svnkit

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;
    }
  }
}

origin: org.tmatesoft.sqljet/sqljet

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;
}
origin: ha-jdbc/ha-jdbc

/**
 * {@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());
  }
}
origin: org.tmatesoft.svnkit/svnkit

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);
    }
  }
}
origin: org.tmatesoft.svnkit/svnkit

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);
      }
    }
  }
}
origin: org.jvnet.hudson.svnkit/svnkit

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);
      }
    }
  }
}
origin: com.svnkit/com.springsource.org.tigris.subversion.javahl

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);
      }
    }
  }
}
org.tmatesoft.sqljet.core.tableSqlJetDbclose

Popular methods of SqlJetDb

  • getTable
    Open table.
  • open
  • getOptions
  • createIndex
    Create index from SQL clause.
  • createTable
    Create table from SQL clause.
  • runWithLock
    Do some actions with locking database's internal threads synchronization mutex. It is related only w
  • runWriteTransaction
    Run modifications in write transaction.
  • beginTransaction
  • commit
  • getSchema
    Get database schema.
  • runReadTransaction
    Run read-only transaction.
  • dropIndex
    Drop index.
  • runReadTransaction,
  • dropIndex,
  • dropTable,
  • getTemporaryDatabase,
  • isInTransaction,
  • isOpen,
  • rollback,
  • <init>,
  • alterTable

Popular in Java

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • String (java.lang)
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now