Class SVNWCDbSelectMovedForDelete
- 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.db.SVNSqlJetSelectFieldsStatement<SVNWCDbSchema.NODES__Fields>
-
- org.tmatesoft.svn.core.internal.wc17.db.statement.SVNWCDbSelectMovedForDelete
-
public class SVNWCDbSelectMovedForDelete extends SVNSqlJetSelectFieldsStatement<SVNWCDbSchema.NODES__Fields>
SELECT local_relpath, moved_to, op_depth, (SELECT CASE WHEN r.moved_here THEN r.op_depth END FROM nodes r WHERE r.wc_id = ?1 AND r.local_relpath = n.local_relpath AND r.op_depth < n.op_depth BY r.op_depth DESC LIMIT 1) AS moved_here_op_depth FROM nodes n WHERE wc_id = ?1 AND (local_relpath = ?2 OR IS_STRICT_DESCENDANT_OF(local_relpath, ?2)) AND moved_to IS NOT NULL AND op_depth >= ?3- Version:
- 1.8
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classSVNWCDbSelectMovedForDelete.InternalStatement
-
Field Summary
Fields Modifier and Type Field Description private SVNWCDbSelectMovedForDelete.InternalStatementinternalStatement-
Fields inherited from class org.tmatesoft.svn.core.internal.db.SVNSqlJetSelectFieldsStatement
fields
-
Fields 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 Constructor Description SVNWCDbSelectMovedForDelete(SVNSqlJetDb sDb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddefineFields()intgetMovedHereDepth()protected java.lang.StringgetPathScope()protected java.lang.Object[]getWhere()protected booleanisFilterPassed()protected booleanisStrictiDescendant()voidreset()-
Methods inherited from class org.tmatesoft.svn.core.internal.db.SVNSqlJetSelectFieldsStatement
checkField, getColumnBlob, getColumnLong, getColumnString, getFieldName, isColumnNull
-
Methods inherited from class org.tmatesoft.svn.core.internal.db.SVNSqlJetSelectStatement
eof, getColumn, getColumnBlob, getColumnLong, getColumnString, getIndexName, getRowPath, getRowPathField, getRowValues, getRowValues2, isColumnNull, isPathScopeInIndex, isStrictDescendantOf, next, 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, getJoinedStatement, hasColumnInheritedProperties, hasColumnInheritedProperties, hasColumnProperties, hasColumnProperties, insert, isColumnNull, isNeedsReset, nextRow, parseInheritedProperties, parseProperties, setCursor
-
-
-
-
Field Detail
-
internalStatement
private SVNWCDbSelectMovedForDelete.InternalStatement internalStatement
-
-
Constructor Detail
-
SVNWCDbSelectMovedForDelete
public SVNWCDbSelectMovedForDelete(SVNSqlJetDb sDb) throws SVNException
- Throws:
SVNException
-
-
Method Detail
-
defineFields
protected void defineFields()
- Specified by:
defineFieldsin classSVNSqlJetSelectFieldsStatement<SVNWCDbSchema.NODES__Fields>
-
reset
public void reset() throws SVNException- Overrides:
resetin classSVNSqlJetSelectStatement- Throws:
SVNException
-
getPathScope
protected java.lang.String getPathScope()
- Overrides:
getPathScopein classSVNSqlJetSelectStatement
-
isStrictiDescendant
protected boolean isStrictiDescendant()
- Overrides:
isStrictiDescendantin classSVNSqlJetSelectStatement
-
isFilterPassed
protected boolean isFilterPassed() throws SVNException- Overrides:
isFilterPassedin classSVNSqlJetSelectStatement- Throws:
SVNException
-
getWhere
protected java.lang.Object[] getWhere() throws SVNException- Overrides:
getWherein classSVNSqlJetSelectStatement- Throws:
SVNException
-
getMovedHereDepth
public int getMovedHereDepth() throws SVNException- Throws:
SVNException
-
-