@Override protected ISqlJetCursor openCursor() throws SVNException { ISqlJetCursor cursor = super.openCursor(); if (cursor != null) { try { cursor = cursor.reverse(); } catch (SqlJetException e) { cursor = null; } } return cursor; }
@Override protected ISqlJetCursor openCursor() throws SVNException { try { return super.openCursor().reverse(); } catch (SqlJetException e) { return null; } } @Override
@Override protected ISqlJetCursor openCursor() throws SVNException { ISqlJetCursor cursor = super.openCursor(); if (cursor != null) { try { cursor = cursor.reverse(); } catch (SqlJetException e) { cursor = null; } } return cursor; } };
@Override protected ISqlJetCursor openCursor() throws SVNException { ISqlJetCursor cursor = super.openCursor(); if (cursor != null) { try { cursor = cursor.reverse(); } catch (SqlJetException e) { cursor = null; } } return cursor; } }
@Override protected ISqlJetCursor openCursor() throws SVNException { try { return super.openCursor().reverse(); } catch (SqlJetException e) { SVNSqlJetDb.createSqlJetError(e); } return null; }
@Override protected ISqlJetCursor openCursor() throws SVNException { try { return super.openCursor().reverse(); } catch (SqlJetException e) { SVNSqlJetDb.createSqlJetError(e); } return null; } }
@Override protected ISqlJetCursor openCursor() throws SVNException { ISqlJetCursor cursor = super.openCursor(); if (cursor != null) { try { cursor = cursor.reverse(); } catch (SqlJetException e) { SVNSqlJetDb.createSqlJetError(e); } } return cursor; }
@Override protected ISqlJetCursor openCursor() throws SVNException { try { return super.openCursor().reverse(); } catch (SqlJetException e) { SVNSqlJetDb.createSqlJetError(e); } return null; }
protected ISqlJetCursor openCursor() throws SVNException { try { return super.openCursor().reverse(); } catch (SqlJetException e) { SVNSqlJetDb.createSqlJetError(e); return null; } }
@Override protected ISqlJetCursor openCursor() throws SVNException { ISqlJetCursor cursor = super.openCursor(); if (cursor != null) { try { cursor = cursor.reverse(); } catch (SqlJetException e) { SVNSqlJetDb.createSqlJetError(e); } } return cursor; }
@Override protected ISqlJetCursor openCursor() throws SVNException { if (depth == 0) { return super.openCursor(); } try { return super.openCursor().reverse(); } catch (SqlJetException e) { SVNSqlJetDb.createSqlJetError(e); } return null; }
@Override protected ISqlJetCursor openCursor() throws SVNException { try { ISqlJetCursor cursor = super.openCursor().reverse(); cursor.setLimit(1); return cursor; } catch (SqlJetException e) { SVNSqlJetDb.createSqlJetError(e); } return null; } }
@Override protected ISqlJetCursor openCursor() throws SVNException { try { ISqlJetCursor cursor = super.openCursor().reverse(); cursor.setLimit(1); return cursor; } catch (SqlJetException e) { SVNErrorMessage errorMessage = SVNErrorMessage.create(SVNErrorCode.WC_DB_ERROR, e); SVNErrorManager.error(errorMessage, SVNLogType.WC); } return null; }
@Override protected ISqlJetCursor openCursor() throws SVNException { try { ISqlJetCursor cursor = super.openCursor().reverse(); cursor.setLimit(1); return cursor; } catch (SqlJetException e) { SVNErrorMessage errorMessage = SVNErrorMessage.create(SVNErrorCode.WC_DB_ERROR, e); SVNErrorManager.error(errorMessage, SVNLogType.WC); } return null; }
@Override protected ISqlJetCursor openCursor() throws SVNException { try { return getTable().scope(getIndexName(), null, getWhere()).reverse(); } catch (SqlJetException e) { SVNSqlJetDb.createSqlJetError(e); return null; } }
@Override protected ISqlJetCursor openCursor() throws SVNException { try { return getTable().scope(getIndexName(), null, getWhere()).reverse(); } catch (SqlJetException e) { SVNSqlJetDb.createSqlJetError(e); return null; } }
public Long getMaxOpDepth(Long wcId, String localRelpath) throws SVNException { ISqlJetCursor c = null; try { c = getTable().lookup(null, wcId, localRelpath); c = c.reverse(); if (!c.eof()) { long rowDepth = c.getInteger(SVNWCDbSchema.NODES__Fields.op_depth.toString()); if (rowDepth >= minDepth) { return rowDepth; } } } catch (SqlJetException e) { SVNSqlJetDb.createSqlJetError(e); } finally { try { c.close(); } catch (SqlJetException e) { } } return null; }
public void transaction(SVNSqlJetDb db) throws SqlJetException, SVNException { try { db.beginTransaction(SqlJetTransactionMode.WRITE); final ISqlJetTable table = db.getDb().getTable(SVNWCDbSchema.NODES.name()); ISqlJetCursor c = table.lookup(null, wcRoot.getWcId(), SVNFileUtil.getFilePath(localRelpath)); c = c.reverse(); if (!c.eof()) { final Map<String, Object> updateValues = new HashMap<String, Object>(); updateValues.put(SVNWCDbSchema.NODES__Fields.translated_size.toString(), translatedSize); updateValues.put(SVNWCDbSchema.NODES__Fields.last_mod_time.toString(), lastModTime); c.updateByFieldNames(updateValues); } c.close(); db.commit(); } catch (SqlJetException e) { db.rollback(); throw e; } catch (SVNException e) { db.rollback(); throw e; } } }