congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SqlJetDb.close
Code IndexAdd Tabnine 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)

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

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now