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
SVNException
public static void createRepresentationCache(java.io.File path) throws SVNException
SVNException
private static void checkFormat(org.tmatesoft.sqljet.core.table.SqlJetDb db) throws org.tmatesoft.sqljet.core.SqlJetException
org.tmatesoft.sqljet.core.SqlJetException
public void insert(FSRepresentation representation, boolean rejectDup) throws SVNException
insert
in interface IFSRepresentationCacheManager
SVNException
public void close() throws SVNException
close
in interface IFSRepresentationCacheManager
SVNException
public FSRepresentation getRepresentationByHash(java.lang.String hash) throws SVNException
getRepresentationByHash
in interface IFSRepresentationCacheManager
SVNException
private FSRepresentationCacheRecord getByHash(java.lang.String hash) throws SVNException
SVNException
private 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 IFSRepresentationCacheManager
SVNException
public void runReadTransaction(IFSSqlJetTransaction transaction) throws SVNException
runReadTransaction
in interface IFSRepresentationCacheManager
SVNException