Class SVNWCDbRoot
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc17.db.SVNWCDbRoot
-
public class SVNWCDbRoot extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SVNWCDbRoot.WCLock
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
absPath
Location of this wcroot in the filesystem.private SVNWCDb
db
private int
format
The format of this wcroot's metadata storage (see wc.h).private java.util.List<SVNWCDbRoot.WCLock>
ownedLocks
Array of SVNWCDbLock fields.private SVNSqlJetDb
sDb
The SQLite database containing the metadata for everything in this wcroot.private long
wcId
The WCROOT.id for this directory (and all its children).
-
Constructor Summary
Constructors Constructor Description SVNWCDbRoot(SVNWCDb db, java.io.File absPath, SVNSqlJetDb sDb, long wcId, int format, boolean autoUpgrade, boolean failOnVersionsMismatch, boolean enforceEmptyWQ)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.io.File
computeRelPath(java.io.File localAbsPath)
void
ensureNoUnfinishedTransactions()
java.io.File
getAbsPath()
java.io.File
getAbsPath(java.io.File localRelPath)
SVNWCDb
getDb()
int
getFormat()
java.util.List<SVNWCDbRoot.WCLock>
getOwnedLocks()
SVNSqlJetDb
getSDb()
long
getWcId()
-
-
-
Field Detail
-
db
private SVNWCDb db
-
absPath
private java.io.File absPath
Location of this wcroot in the filesystem.
-
sDb
private SVNSqlJetDb sDb
The SQLite database containing the metadata for everything in this wcroot.
-
wcId
private long wcId
The WCROOT.id for this directory (and all its children).
-
format
private int format
The format of this wcroot's metadata storage (see wc.h). If the format has not (yet) been determined, this will be UNKNOWN_FORMAT.
-
ownedLocks
private java.util.List<SVNWCDbRoot.WCLock> ownedLocks
Array of SVNWCDbLock fields. Typically just one or two locks maximum.
-
-
Constructor Detail
-
SVNWCDbRoot
public SVNWCDbRoot(SVNWCDb db, java.io.File absPath, SVNSqlJetDb sDb, long wcId, int format, boolean autoUpgrade, boolean failOnVersionsMismatch, boolean enforceEmptyWQ) throws SVNException
- Throws:
SVNException
-
-
Method Detail
-
getDb
public SVNWCDb getDb()
-
getAbsPath
public java.io.File getAbsPath()
-
getSDb
public SVNSqlJetDb getSDb()
-
getWcId
public long getWcId()
-
getFormat
public int getFormat()
-
getOwnedLocks
public java.util.List<SVNWCDbRoot.WCLock> getOwnedLocks()
-
close
public void close() throws SVNException
- Throws:
SVNException
-
getAbsPath
public java.io.File getAbsPath(java.io.File localRelPath)
-
ensureNoUnfinishedTransactions
public void ensureNoUnfinishedTransactions() throws SVNException
- Throws:
SVNException
-
computeRelPath
public java.io.File computeRelPath(java.io.File localAbsPath)
-
-