congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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