public class FSRepresentationCacheManager extends java.lang.Object implements IFSRepresentationCacheManager
| Modifier and Type | Field and 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 and Description |
|---|
FSRepresentationCacheManager() |
| Modifier and Type | Method and 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) |
public static final java.lang.String REP_CACHE_TABLE
private static final int REP_CACHE_DB_FORMAT
private static final java.lang.String REP_CACHE_DB_SQL
private org.tmatesoft.sqljet.core.table.SqlJetDb myRepCacheDB
private org.tmatesoft.sqljet.core.table.ISqlJetTable myTable
private FSFS myFSFS
public static IFSRepresentationCacheManager openRepresentationCache(FSFS fsfs) throws SVNException
SVNExceptionpublic static void createRepresentationCache(java.io.File path)
throws SVNException
SVNExceptionprivate static void checkFormat(org.tmatesoft.sqljet.core.table.SqlJetDb db)
throws org.tmatesoft.sqljet.core.SqlJetException
org.tmatesoft.sqljet.core.SqlJetExceptionpublic void insert(FSRepresentation representation, boolean rejectDup) throws SVNException
insert in interface IFSRepresentationCacheManagerSVNExceptionpublic void close()
throws SVNException
close in interface IFSRepresentationCacheManagerSVNExceptionpublic FSRepresentation getRepresentationByHash(java.lang.String hash) throws SVNException
getRepresentationByHash in interface IFSRepresentationCacheManagerSVNExceptionprivate FSRepresentationCacheRecord getByHash(java.lang.String hash) throws SVNException
SVNExceptionprivate static SVNErrorMessage convertError(org.tmatesoft.sqljet.core.SqlJetException e)
private static SVNErrorCode convertErrorCode(org.tmatesoft.sqljet.core.SqlJetException e)
public void runWriteTransaction(IFSSqlJetTransaction transaction) throws SVNException
runWriteTransaction in interface IFSRepresentationCacheManagerSVNExceptionpublic void runReadTransaction(IFSSqlJetTransaction transaction) throws SVNException
runReadTransaction in interface IFSRepresentationCacheManagerSVNException