Class FSRepresentationCacheManager
java.lang.Object
org.tmatesoft.svn.core.internal.io.fs.repcache.FSRepresentationCacheManager
- All Implemented Interfaces:
IFSRepresentationCacheManager
public class FSRepresentationCacheManager
extends java.lang.Object
implements IFSRepresentationCacheManager
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FSFS
private org.tmatesoft.sqljet.core.table.SqlJetDb
private org.tmatesoft.sqljet.core.table.ISqlJetTable
private static final int
private static final java.lang.String
static final java.lang.String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
checkFormat
(org.tmatesoft.sqljet.core.table.SqlJetDb db) void
close()
private static SVNErrorMessage
convertError
(org.tmatesoft.sqljet.core.SqlJetException e) private static SVNErrorCode
convertErrorCode
(org.tmatesoft.sqljet.core.SqlJetException e) static void
createRepresentationCache
(java.io.File path) private FSRepresentationCacheRecord
getByHash
(java.lang.String hash) getRepresentationByHash
(java.lang.String hash) void
insert
(FSRepresentation representation, boolean rejectDup) openRepresentationCache
(FSFS fsfs) void
runReadTransaction
(IFSSqlJetTransaction transaction) void
runWriteTransaction
(IFSSqlJetTransaction transaction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
REP_CACHE_TABLE
public static final java.lang.String REP_CACHE_TABLE- See Also:
-
REP_CACHE_DB_FORMAT
private static final int REP_CACHE_DB_FORMAT- See Also:
-
REP_CACHE_DB_SQL
private static final java.lang.String REP_CACHE_DB_SQL- See Also:
-
myRepCacheDB
private org.tmatesoft.sqljet.core.table.SqlJetDb myRepCacheDB -
myTable
private org.tmatesoft.sqljet.core.table.ISqlJetTable myTable -
myFSFS
-
-
Constructor Details
-
FSRepresentationCacheManager
public FSRepresentationCacheManager()
-
-
Method Details
-
openRepresentationCache
- Throws:
SVNException
-
createRepresentationCache
- Throws:
SVNException
-
checkFormat
private static void checkFormat(org.tmatesoft.sqljet.core.table.SqlJetDb db) throws org.tmatesoft.sqljet.core.SqlJetException - Throws:
org.tmatesoft.sqljet.core.SqlJetException
-
insert
- Specified by:
insert
in interfaceIFSRepresentationCacheManager
- Throws:
SVNException
-
close
- Specified by:
close
in interfaceIFSRepresentationCacheManager
- Throws:
SVNException
-
getRepresentationByHash
- Specified by:
getRepresentationByHash
in interfaceIFSRepresentationCacheManager
- Throws:
SVNException
-
getByHash
- Throws:
SVNException
-
convertError
-
convertErrorCode
-
runWriteTransaction
- Specified by:
runWriteTransaction
in interfaceIFSRepresentationCacheManager
- Throws:
SVNException
-
runReadTransaction
- Specified by:
runReadTransaction
in interfaceIFSRepresentationCacheManager
- Throws:
SVNException
-