Class SVNSqlJetDb
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.db.SVNSqlJetDb
-
public class SVNSqlJetDb extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSVNSqlJetDb.Mode
-
Field Summary
Fields Modifier and Type Field Description private org.tmatesoft.sqljet.core.table.SqlJetDbdbprivate static org.tmatesoft.sqljet.core.table.ISqlJetBusyHandlerDEFAULT_BUSY_HANDLERprivate static booleanlogTransactionsprivate intopenCountprivate static org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalModeourPagerJournalModeprivate java.util.EnumMap<SVNWCDbStatements,SVNSqlJetStatement>statementsprivate SVNSqlJetDbtemporaryDbprivate booleantemporaryDbInMemory
-
Constructor Summary
Constructors Modifier Constructor Description privateSVNSqlJetDb(org.tmatesoft.sqljet.core.table.SqlJetDb db, boolean temporaryDbInMemory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginTransaction(org.tmatesoft.sqljet.core.SqlJetTransactionMode mode)voidclose()voidcommit()static voidcreateSqlJetError(org.tmatesoft.sqljet.core.SqlJetException e)voidexecStatement(SVNWCDbStatements statementIndex)org.tmatesoft.sqljet.core.table.SqlJetDbgetDb()static org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalModegetJournalMode()intgetOpenCount()SVNSqlJetStatementgetStatement(SVNWCDbStatements statementIndex)SVNSqlJetDbgetTemporaryDb()booleanhasTable(java.lang.String tableName)private static booleanisLogTransactions()private booleanisNeedStartTransaction(org.tmatesoft.sqljet.core.SqlJetTransactionMode mode)private voidlogCall(java.lang.String message, int count)static SVNSqlJetDbopen(java.io.File sdbAbsPath, SVNSqlJetDb.Mode mode)static SVNSqlJetDbopen(java.io.File sdbAbsPath, SVNSqlJetDb.Mode mode, org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalMode journalMode, boolean temporaryDbInMemory)private SVNSqlJetStatementprepareStatement(SVNWCDbStatements statementIndex)voidrollback()voidrunTransaction(SVNSqlJetTransaction transaction)voidrunTransaction(SVNSqlJetTransaction transaction, org.tmatesoft.sqljet.core.SqlJetTransactionMode mode)static voidsetJournalMode(org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalMode journalMode)voidverifyNoWork()
-
-
-
Field Detail
-
DEFAULT_BUSY_HANDLER
private static final org.tmatesoft.sqljet.core.table.ISqlJetBusyHandler DEFAULT_BUSY_HANDLER
-
logTransactions
private static boolean logTransactions
-
ourPagerJournalMode
private static org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalMode ourPagerJournalMode
-
db
private org.tmatesoft.sqljet.core.table.SqlJetDb db
-
statements
private java.util.EnumMap<SVNWCDbStatements,SVNSqlJetStatement> statements
-
openCount
private int openCount
-
temporaryDb
private SVNSqlJetDb temporaryDb
-
temporaryDbInMemory
private boolean temporaryDbInMemory
-
-
Method Detail
-
getDb
public org.tmatesoft.sqljet.core.table.SqlJetDb getDb()
-
getOpenCount
public int getOpenCount()
-
close
public void close() throws SVNException- Throws:
SVNException
-
setJournalMode
public static void setJournalMode(org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalMode journalMode)
-
getJournalMode
public static org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalMode getJournalMode()
-
open
public static SVNSqlJetDb open(java.io.File sdbAbsPath, SVNSqlJetDb.Mode mode) throws SVNException
- Throws:
SVNException
-
open
public static SVNSqlJetDb open(java.io.File sdbAbsPath, SVNSqlJetDb.Mode mode, org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalMode journalMode, boolean temporaryDbInMemory) throws SVNException
- Throws:
SVNException
-
getTemporaryDb
public SVNSqlJetDb getTemporaryDb() throws SVNException
- Throws:
SVNException
-
getStatement
public SVNSqlJetStatement getStatement(SVNWCDbStatements statementIndex) throws SVNException
- Throws:
SVNException
-
prepareStatement
private SVNSqlJetStatement prepareStatement(SVNWCDbStatements statementIndex) throws SVNException
- Throws:
SVNException
-
execStatement
public void execStatement(SVNWCDbStatements statementIndex) throws SVNException
- Throws:
SVNException
-
createSqlJetError
public static void createSqlJetError(org.tmatesoft.sqljet.core.SqlJetException e) throws SVNException- Throws:
SVNException
-
beginTransaction
public void beginTransaction(org.tmatesoft.sqljet.core.SqlJetTransactionMode mode) throws SVNException- Throws:
SVNException
-
isNeedStartTransaction
private boolean isNeedStartTransaction(org.tmatesoft.sqljet.core.SqlJetTransactionMode mode)
-
commit
public void commit() throws SVNException- Throws:
SVNException
-
verifyNoWork
public void verifyNoWork()
-
runTransaction
public void runTransaction(SVNSqlJetTransaction transaction) throws SVNException
- Throws:
SVNException
-
runTransaction
public void runTransaction(SVNSqlJetTransaction transaction, org.tmatesoft.sqljet.core.SqlJetTransactionMode mode) throws SVNException
- Throws:
SVNException
-
rollback
public void rollback() throws SVNException- Throws:
SVNException
-
hasTable
public boolean hasTable(java.lang.String tableName) throws SVNException- Throws:
SVNException
-
logCall
private void logCall(java.lang.String message, int count)
-
isLogTransactions
private static boolean isLogTransactions()
-
-