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
Fields Modifier and Type Field Description private FSFS
myFSFS
private org.tmatesoft.sqljet.core.table.SqlJetDb
myRepCacheDB
private org.tmatesoft.sqljet.core.table.ISqlJetTable
myTable
private static int
REP_CACHE_DB_FORMAT
private static java.lang.String
REP_CACHE_DB_SQL
static java.lang.String
REP_CACHE_TABLE
-
Constructor Summary
Constructors Constructor Description FSRepresentationCacheManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private 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)
FSRepresentation
getRepresentationByHash(java.lang.String hash)
void
insert(FSRepresentation representation, boolean rejectDup)
static IFSRepresentationCacheManager
openRepresentationCache(FSFS fsfs)
void
runReadTransaction(IFSSqlJetTransaction transaction)
void
runWriteTransaction(IFSSqlJetTransaction transaction)
-
-
-
Field Detail
-
REP_CACHE_TABLE
public static final java.lang.String REP_CACHE_TABLE
- See Also:
- Constant Field Values
-
REP_CACHE_DB_FORMAT
private static final int REP_CACHE_DB_FORMAT
- See Also:
- Constant Field Values
-
REP_CACHE_DB_SQL
private static final java.lang.String REP_CACHE_DB_SQL
- See Also:
- Constant Field Values
-
myRepCacheDB
private org.tmatesoft.sqljet.core.table.SqlJetDb myRepCacheDB
-
myTable
private org.tmatesoft.sqljet.core.table.ISqlJetTable myTable
-
myFSFS
private FSFS myFSFS
-
-
Method Detail
-
openRepresentationCache
public static IFSRepresentationCacheManager openRepresentationCache(FSFS fsfs) throws SVNException
- Throws:
SVNException
-
createRepresentationCache
public static void createRepresentationCache(java.io.File path) throws SVNException
- 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
public void insert(FSRepresentation representation, boolean rejectDup) throws SVNException
- Specified by:
insert
in interfaceIFSRepresentationCacheManager
- Throws:
SVNException
-
close
public void close() throws SVNException
- Specified by:
close
in interfaceIFSRepresentationCacheManager
- Throws:
SVNException
-
getRepresentationByHash
public FSRepresentation getRepresentationByHash(java.lang.String hash) throws SVNException
- Specified by:
getRepresentationByHash
in interfaceIFSRepresentationCacheManager
- Throws:
SVNException
-
getByHash
private FSRepresentationCacheRecord getByHash(java.lang.String hash) throws SVNException
- Throws:
SVNException
-
convertError
private static SVNErrorMessage convertError(org.tmatesoft.sqljet.core.SqlJetException e)
-
convertErrorCode
private static SVNErrorCode convertErrorCode(org.tmatesoft.sqljet.core.SqlJetException e)
-
runWriteTransaction
public void runWriteTransaction(IFSSqlJetTransaction transaction) throws SVNException
- Specified by:
runWriteTransaction
in interfaceIFSRepresentationCacheManager
- Throws:
SVNException
-
runReadTransaction
public void runReadTransaction(IFSSqlJetTransaction transaction) throws SVNException
- Specified by:
runReadTransaction
in interfaceIFSRepresentationCacheManager
- Throws:
SVNException
-
-