congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SqlJetDb.isInTransaction
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.tmatesoft.svnkit/svnkit

private boolean isNeedStartTransaction(SqlJetTransactionMode mode) {
  if (!db.isInTransaction()) {
    return true;
  }
  SqlJetTransactionMode dbMode = db.getTransactionMode();
  return mode != dbMode && (SqlJetTransactionMode.WRITE == mode || SqlJetTransactionMode.EXCLUSIVE == mode) && SqlJetTransactionMode.READ_ONLY == dbMode;
}
origin: org.tmatesoft.sqljet/sqljet

SqlJetCursor(ISqlJetBtreeTable table, SqlJetDb db) throws SqlJetException {
  if (db.isInTransaction()) {
    this.btreeTable = table;
    this.db = db;
  } else {
    throw new SqlJetException(SqlJetErrorCode.MISUSE, "Cursor requires active transaction");
  }
}
org.tmatesoft.sqljet.core.tableSqlJetDbisInTransaction

Popular methods of SqlJetDb

  • getTable
    Open table.
  • open
  • close
  • 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.
  • getSchema,
  • runReadTransaction,
  • dropIndex,
  • dropTable,
  • getTemporaryDatabase,
  • isOpen,
  • rollback,
  • <init>,
  • alterTable

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • getSystemService (Context)
  • setContentView (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top PhpStorm plugins
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