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 FSFSmyFSFSprivate org.tmatesoft.sqljet.core.table.SqlJetDbmyRepCacheDBprivate org.tmatesoft.sqljet.core.table.ISqlJetTablemyTableprivate static intREP_CACHE_DB_FORMATprivate static java.lang.StringREP_CACHE_DB_SQLstatic java.lang.StringREP_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 voidcheckFormat(org.tmatesoft.sqljet.core.table.SqlJetDb db)voidclose()private static SVNErrorMessageconvertError(org.tmatesoft.sqljet.core.SqlJetException e)private static SVNErrorCodeconvertErrorCode(org.tmatesoft.sqljet.core.SqlJetException e)static voidcreateRepresentationCache(java.io.File path)private FSRepresentationCacheRecordgetByHash(java.lang.String hash)FSRepresentationgetRepresentationByHash(java.lang.String hash)voidinsert(FSRepresentation representation, boolean rejectDup)static IFSRepresentationCacheManageropenRepresentationCache(FSFS fsfs)voidrunReadTransaction(IFSSqlJetTransaction transaction)voidrunWriteTransaction(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:
insertin interfaceIFSRepresentationCacheManager- Throws:
SVNException
-
close
public void close() throws SVNException- Specified by:
closein interfaceIFSRepresentationCacheManager- Throws:
SVNException
-
getRepresentationByHash
public FSRepresentation getRepresentationByHash(java.lang.String hash) throws SVNException
- Specified by:
getRepresentationByHashin 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:
runWriteTransactionin interfaceIFSRepresentationCacheManager- Throws:
SVNException
-
runReadTransaction
public void runReadTransaction(IFSSqlJetTransaction transaction) throws SVNException
- Specified by:
runReadTransactionin interfaceIFSRepresentationCacheManager- Throws:
SVNException
-
-