Tabnine Logo
SqlJetDb.getTable
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.tmatesoft.svnkit/svnkit

public SVNFSFSRevPropSet(SVNSqlJetDb sDb) throws SqlJetException {
  super(sDb);
  table = sDb.getDb().getTable(FSFS.REVISION_PROPERTIES_TABLE);
}
origin: ha-jdbc/ha-jdbc

  @Override
  public void execute(SqlJetDb db) throws SqlJetException
  {
    db.getTable(INVOCATION_TABLE).insert(transactionId, phase, exceptionType);
  }
};
origin: ha-jdbc/ha-jdbc

  @Override
  public void execute(SqlJetDb db) throws SqlJetException
  {
    db.getTable(INVOKER_TABLE).insert(transactionId, phase, databaseId);
  }
};
origin: org.tmatesoft.svnkit/svnkit

public SVNSqlJetTableStatement(SVNSqlJetDb sDb, String tableName) throws SVNException {
  super(sDb);
  this.tableName = tableName;
  try {
    table = sDb.getDb().getTable(tableName);
  } catch (SqlJetException e) {
    SVNSqlJetDb.createSqlJetError(e);
  }
}

origin: ha-jdbc/ha-jdbc

  @Override
  public void execute(SqlJetDb db) throws SqlJetException
  {
    ISqlJetTable table = db.getTable(STATE_TABLE);
    table.clear();
    for (String database: databases)
    {
      table.insert(database);
    }
  }
};
origin: org.tmatesoft.svnkit/svnkit

public SVNWCDbCopyMoveNode(SVNSqlJetDb sDb) throws SqlJetException {
  super(sDb);
  table = sDb.getDb().getTable(SVNWCDbSchema.NODES.toString());
}
origin: ha-jdbc/ha-jdbc

  @Override
  public void execute(SqlJetDb db) throws SqlJetException
  {
    db.getTable(STATE_TABLE).insert(event.getSource());
  }
};
origin: org.tmatesoft.svnkit/svnkit

public SVNWCDbInsertLock(SVNSqlJetDb sDb) throws SqlJetException {
  super(sDb);
  table = sDb.getDb().getTable(SVNWCDbSchema.LOCK.toString());
}
origin: org.tmatesoft.svnkit/svnkit

public SVNWCDbInsertWCLock(SVNSqlJetDb sDb) throws SqlJetException {
  super(sDb);
  table = sDb.getDb().getTable(SVNWCDbSchema.WC_LOCK.toString());
}
origin: org.tmatesoft.svnkit/svnkit

public SVNWCDbReplaceWithBaseDeleted(SVNSqlJetDb sDb) throws SqlJetException {
  super(sDb);
  table = sDb.getDb().getTable(SVNWCDbSchema.LOCK.toString());
}
origin: org.tmatesoft.svnkit/svnkit

public SVNWCDbInsertWorkItem(SVNSqlJetDb sDb) throws SVNException {
  super(sDb);
  try {
    table = sDb.getDb().getTable(SVNWCDbSchema.WORK_QUEUE.toString());
  } catch (SqlJetException e) {
    SVNSqlJetDb.createSqlJetError(e);
  }
}
origin: ha-jdbc/ha-jdbc

  @Override
  public void execute(SqlJetDb database) throws SqlJetException
  {
    ISqlJetSchema schema = database.getSchema();
    if (schema.getTable(STATE_TABLE) == null)
    {
      database.createTable(CREATE_STATE_SQL);
    }
    else if (Boolean.getBoolean(StateManager.CLEAR_LOCAL_STATE))
    {
      database.getTable(STATE_TABLE).clear();
    }
  }
};
origin: org.tmatesoft.svnkit/svnkit

private boolean exists(SqlJetDb db, long wcId, String localRelPath) throws SqlJetException {
  ISqlJetTable table = db.getTable(SVNWCDbSchema.NODES.name());
  ISqlJetCursor cursor = table.lookup(null, wcId, localRelPath);
  try {
    return !cursor.eof();
  } finally {
    cursor.close();
  }
}
origin: org.tmatesoft.svnkit/svnkit

  private boolean exists(SqlJetDb db, long wcId, String localRelPath) throws SqlJetException {
    ISqlJetTable table = db.getTable(SVNWCDbSchema.NODES.name());
    ISqlJetCursor cursor = table.lookup(null, wcId, localRelPath);
    try {
      return !cursor.eof();
    } finally {
      cursor.close();
    }
  }
}
origin: org.tmatesoft.svnkit/svnkit

public void beforeDelete(ISqlJetCursor cursor) throws SqlJetException {
  ISqlJetTable table = db.getDb().getTemporaryDatabase().getTable(SVNWCDbSchema.REVERT_LIST.toString());
  
  Map<String, Object> rowValues = new HashMap<String, Object>();
  rowValues.put(REVERT_LIST__Fields.local_relpath.toString(), cursor.getValue(NODES__Fields.local_relpath.toString()));
  rowValues.put(REVERT_LIST__Fields.actual.toString(), 0);
  rowValues.put(REVERT_LIST__Fields.op_depth.toString(), cursor.getValue(NODES__Fields.op_depth.toString()));
  rowValues.put(REVERT_LIST__Fields.repos_id.toString(), cursor.getValue(NODES__Fields.repos_id.toString()));
  rowValues.put(REVERT_LIST__Fields.kind.toString(), cursor.getValue(NODES__Fields.kind.toString()));
  table.insertByFieldNamesOr(SqlJetConflictAction.REPLACE, rowValues);
}
origin: org.syncloud/syncloud-dao-sqljet

@Override
public void insert(State state) {
  try {
    db.beginTransaction(SqlJetTransactionMode.WRITE);
    try {
      ISqlJetTable table = db.getTable(StateTable.TABLE_NAME);
      table.insert(getData(state));
    } finally {
      db.commit();
    }
  } catch (Throwable e) {
    logger.error("unable to insert: " + state, e);
  }
}
origin: org.jvnet.hudson.svnkit/svnkit

public static FSRepresentationCacheManager openRepresentationCache(FSFS fsfs) throws SVNException {
  final FSRepresentationCacheManager cacheObj = new FSRepresentationCacheManager();
  try {
    cacheObj.myRepCacheDB = SqlJetDb.open(fsfs.getRepositoryCacheFile(), true);
    checkFormat(cacheObj.myRepCacheDB);
    cacheObj.myTable = cacheObj.myRepCacheDB.getTable(REP_CACHE_TABLE);
  } catch (SqlJetException e) {
    SVNErrorManager.error(convertError(e), SVNLogType.FSFS);
  }
  return cacheObj;
}

origin: com.svnkit/com.springsource.org.tigris.subversion.javahl

public static FSRepresentationCacheManager openRepresentationCache(FSFS fsfs) throws SVNException {
  final FSRepresentationCacheManager cacheObj = new FSRepresentationCacheManager();
  try {
    cacheObj.myRepCacheDB = SqlJetDb.open(fsfs.getRepositoryCacheFile(), true);
    checkFormat(cacheObj.myRepCacheDB);
    cacheObj.myTable = cacheObj.myRepCacheDB.getTable(REP_CACHE_TABLE);
  } catch (SqlJetException e) {
    SVNErrorManager.error(convertError(e), SVNLogType.FSFS);
  }
  return cacheObj;
}

origin: org.tmatesoft.svnkit/svnkit

public void beforeUpdate(ISqlJetCursor cursor, Map<String, Object> newValues) throws SqlJetException {
  ISqlJetTable table = db.getDb().getTemporaryDatabase().getTable(SVNWCDbSchema.REVERT_LIST.toString());
  Map<String, Object> rowValues = new HashMap<String, Object>();
  rowValues.put(REVERT_LIST__Fields.local_relpath.toString(), cursor.getValue(ACTUAL_NODE__Fields.local_relpath.toString()));
  rowValues.put(REVERT_LIST__Fields.actual.toString(), 1);
  rowValues.put(REVERT_LIST__Fields.conflict_data.toString(), cursor.getBlobAsArray(ACTUAL_NODE__Fields.conflict_data.toString()));
  if (!cursor.isNull(ACTUAL_NODE__Fields.properties.toString())
      || !cursor.isNull(ACTUAL_NODE__Fields.tree_conflict_data.toString())) {
    rowValues.put(REVERT_LIST__Fields.notify.toString(), 1);
  } else if (!exists(db.getDb().getTemporaryDatabase(), cursor.getInteger(ACTUAL_NODE__Fields.wc_id.toString()), cursor.getString(ACTUAL_NODE__Fields.local_relpath.toString()))) {
    rowValues.put(REVERT_LIST__Fields.notify.toString(), 1);
  } else {
    rowValues.put(REVERT_LIST__Fields.notify.toString(), null);
  }
  table.insertByFieldNamesOr(SqlJetConflictAction.REPLACE, rowValues);
}
origin: org.tmatesoft.svnkit/svnkit

public static IFSRepresentationCacheManager openRepresentationCache(FSFS fsfs) throws SVNException {
  final FSRepresentationCacheManager cacheObj = new FSRepresentationCacheManager();
  try {
    cacheObj.myRepCacheDB = SqlJetDb.open(fsfs.getRepositoryCacheFile(), true);
    cacheObj.myRepCacheDB.setSafetyLevel(SqlJetSafetyLevel.OFF);
    
    checkFormat(cacheObj.myRepCacheDB);
    cacheObj.myTable = cacheObj.myRepCacheDB.getTable(REP_CACHE_TABLE);
  } catch (SqlJetException e) {
    SVNDebugLog.getDefaultLog().logError(SVNLogType.FSFS, e);
    return new FSEmptyRepresentationCacheManager();
    
  }
  return cacheObj;
}

org.tmatesoft.sqljet.core.tableSqlJetDbgetTable

Javadoc

Open table.

Popular methods of SqlJetDb

  • 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.
  • dropIndex
    Drop index.
  • runReadTransaction,
  • dropIndex,
  • dropTable,
  • getTemporaryDatabase,
  • isInTransaction,
  • isOpen,
  • rollback,
  • <init>,
  • alterTable

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • BoxLayout (javax.swing)
  • Best plugins for Eclipse
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