Class SVNWCDbSelectCopyPristines
java.lang.Object
org.tmatesoft.svn.core.internal.db.SVNSqlJetStatement
org.tmatesoft.svn.core.internal.db.SVNSqlJetTableStatement
org.tmatesoft.svn.core.internal.db.SVNSqlJetSelectStatement
org.tmatesoft.svn.core.internal.wc17.db.statement.SVNWCDbSelectCopyPristines
SELECT n.checksum, md5_checksum, size
FROM nodes_current n
LEFT JOIN pristine p ON n.checksum = p.checksum
WHERE wc_id = ?1
AND n.local_relpath = ?2
AND n.checksum IS NOT NULL
UNION ALL
SELECT n.checksum, md5_checksum, size
FROM nodes n
LEFT JOIN pristine p ON n.checksum = p.checksum
WHERE wc_id = ?1
AND IS_STRICT_DESCENDANT_OF(n.local_relpath, ?2)
AND op_depth >=
(SELECT MAX(op_depth) FROM nodes WHERE wc_id = ?1 AND local_relpath = ?2)
AND n.checksum IS NOT NULL
- Version:
- 1.8
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.tmatesoft.svn.core.internal.db.SVNSqlJetTableStatement
table, tableName
Fields inherited from class org.tmatesoft.svn.core.internal.db.SVNSqlJetStatement
binds, sDb, transactionMode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetJoinedStatement
(java.lang.String joinedTable) private long
protected java.lang.String
protected java.lang.Object[]
getWhere()
protected boolean
protected boolean
boolean
next()
void
reset()
private void
Methods inherited from class org.tmatesoft.svn.core.internal.db.SVNSqlJetSelectStatement
eof, getColumn, getColumnBlob, getColumnLong, getColumnString, getIndexName, getRowPath, getRowPathField, getRowValues, getRowValues2, isColumnNull, isPathScopeInIndex, isStrictDescendantOf, openCursor, setIndexName
Methods inherited from class org.tmatesoft.svn.core.internal.db.SVNSqlJetTableStatement
addTrigger, getTable, getTableName, getTriggers, statementCompleted, statementStarted
Methods inherited from class org.tmatesoft.svn.core.internal.db.SVNSqlJetStatement
bindBlob, bindChecksum, bindf, bindIProperties, bindLong, bindNull, bindProperties, bindRevision, bindString, count, done, exec, getBind, getBinds, getColumn, getColumnBlob, getColumnBoolean, getColumnInheritedProperties, getColumnInheritedProperties, getColumnLong, getColumnProperties, getColumnProperties, getColumnRevnum, getColumnString, getCursor, getJoinedStatement, hasColumnInheritedProperties, hasColumnInheritedProperties, hasColumnProperties, hasColumnProperties, insert, isColumnNull, isNeedsReset, nextRow, parseInheritedProperties, parseProperties, setCursor
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
firstPartOfUnion
private boolean firstPartOfUnion -
maxOpDepth
private long maxOpDepth -
joinedStatement
-
-
Constructor Details
-
SVNWCDbSelectCopyPristines
- Throws:
SVNException
-
-
Method Details
-
getPathScope
protected java.lang.String getPathScope()- Overrides:
getPathScope
in classSVNSqlJetSelectStatement
-
isStrictiDescendant
protected boolean isStrictiDescendant()- Overrides:
isStrictiDescendant
in classSVNSqlJetSelectStatement
-
isFilterPassed
- Overrides:
isFilterPassed
in classSVNSqlJetSelectStatement
- Throws:
SVNException
-
getMaxOpDepth
- Throws:
SVNException
-
getWhere
- Overrides:
getWhere
in classSVNSqlJetSelectStatement
- Throws:
SVNException
-
getJoinedStatement
- Overrides:
getJoinedStatement
in classSVNSqlJetStatement
- Throws:
SVNException
-
reset
- Overrides:
reset
in classSVNSqlJetSelectStatement
- Throws:
SVNException
-
next
- Overrides:
next
in classSVNSqlJetSelectStatement
- Throws:
SVNException
-
resetCursor
- Throws:
SVNException
-