congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SqlJetDb.getOptions
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: ha-jdbc/ha-jdbc

/**
 * {@inheritDoc}
 * @see net.sf.hajdbc.pool.PoolProvider#create()
 */
@Override
public synchronized SqlJetDb create() throws SqlJetException
{
  boolean exists = this.file.exists();
  SqlJetDb db = SqlJetDb.open(this.file, true);
  if (!exists)
  {
    db.getOptions().setAutovacuum(true);
    db.getOptions().setIncrementalVacuum(true);
  }
  return db;
}
origin: org.tmatesoft.sqljet/sqljet

  public Object runWithLock(SqlJetDb db) throws SqlJetException {
    return new SqlJetPragmasHandler(getOptions()).pragma(sql);
  }
});
origin: com.svnkit/com.springsource.org.tigris.subversion.javahl

  public Object runWithLock(SqlJetDb db) throws SqlJetException {
    int version = db.getOptions().getUserVersion();
    if (version < REP_CACHE_DB_FORMAT) {
      db.getOptions().setAutovacuum(true);
      db.runWriteTransaction(new ISqlJetTransaction() {
        public Object run(SqlJetDb db) throws SqlJetException {
          db.getOptions().setUserVersion(REP_CACHE_DB_FORMAT);
          db.createTable(FSRepresentationCacheManager.REP_CACHE_DB_SQL);
          return null;
        }
      });
    } else if (version > REP_CACHE_DB_FORMAT) {
      throw new SqlJetException("Schema format " + version + " not recognized");   
    }
    return null;
  }
});
origin: org.tmatesoft.svnkit/svnkit

  public Object runWithLock(SqlJetDb db) throws SqlJetException {
    int version = db.getOptions().getUserVersion();
    if (version < REP_CACHE_DB_FORMAT) {
      db.getOptions().setAutovacuum(true);
      db.runWriteTransaction(new ISqlJetTransaction() {
        public Object run(SqlJetDb db) throws SqlJetException {
          db.getOptions().setUserVersion(REP_CACHE_DB_FORMAT);
          db.createTable(FSRepresentationCacheManager.REP_CACHE_DB_SQL);
          return null;
        }
      });
    } else if (version > REP_CACHE_DB_FORMAT) {
      throw new SqlJetException("Schema format " + version + " not recognized");   
    }
    return null;
  }
});
origin: org.jvnet.hudson.svnkit/svnkit

  public Object runWithLock(SqlJetDb db) throws SqlJetException {
    int version = db.getOptions().getUserVersion();
    if (version < REP_CACHE_DB_FORMAT) {
      db.getOptions().setAutovacuum(true);
      db.runWriteTransaction(new ISqlJetTransaction() {
        public Object run(SqlJetDb db) throws SqlJetException {
          db.getOptions().setUserVersion(REP_CACHE_DB_FORMAT);
          db.createTable(FSRepresentationCacheManager.REP_CACHE_DB_SQL);
          return null;
        }
      });
    } else if (version > REP_CACHE_DB_FORMAT) {
      throw new SqlJetException("Schema format " + version + " not recognized");   
    }
    return null;
  }
});
origin: org.tmatesoft.svnkit/svnkit

  public Object run(SqlJetDb db) throws SqlJetException {
    db.createTable("create table revprop (revision integer UNIQUE not null, " +
        "properties BLOB not null);");
    db.createIndex("create index i_revision on revprop (revision);");
    db.getOptions().setUserVersion(1);
    return null;
  }
});
origin: org.tmatesoft.sqljet/sqljet

  handleDropIndex();
} else if ("pragma".equalsIgnoreCase(stmtName)) {
  result = new SqlJetPragmasHandler(db.getOptions()).pragma(ast);
  return result != null;
} else {
origin: org.tmatesoft.svnkit/svnkit

public long exec() throws SVNException {
  try {
    sDb.getDb().getOptions().setAutovacuum(true);
    sDb.getDb().runWriteTransaction(new ISqlJetTransaction() {
      public Object run(SqlJetDb db) throws SqlJetException {
        db.createTable("create table revprop (revision integer UNIQUE not null, " +
            "properties BLOB not null);");
        db.createIndex("create index i_revision on revprop (revision);");
        db.getOptions().setUserVersion(1);
        return null;
      }
    });
  } catch (SqlJetException e) {
    SVNErrorMessage err = SVNErrorMessage.create( SVNErrorCode.SQLITE_ERROR,e);
    SVNErrorManager.error(err, SVNLogType.FSFS);
  }
  return 0;
}
origin: org.tmatesoft.svnkit/svnkit

db.getOptions().setUserVersion(userVersion);
origin: org.tmatesoft.svnkit/svnkit

public SVNWCDbRoot(SVNWCDb db, File absPath, SVNSqlJetDb sDb, long wcId, int format, boolean autoUpgrade, boolean failOnVersionsMismatch, boolean enforceEmptyWQ) throws SVNException {
  if (sDb != null) {
    try {
      format = sDb.getDb().getOptions().getUserVersion();
    } catch (SqlJetException e) {
      if (e.getErrorCode() == SqlJetErrorCode.NOTADB) {
origin: org.tmatesoft.svnkit/svnkit

  childItem.opRoot = opDepth == SVNWCUtils.relpathDepth(childRelPath);
childItem.format = db.getDb().getOptions().getUserVersion();
nodes.put(name, childItem);
org.tmatesoft.sqljet.core.tableSqlJetDbgetOptions

Popular methods of SqlJetDb

  • getTable
    Open table.
  • open
  • close
  • 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

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • 21 Best IntelliJ Plugins
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