public class SVNSqlJetDb
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SVNSqlJetDb.Mode |
| Modifier and Type | Field and Description |
|---|---|
private org.tmatesoft.sqljet.core.table.SqlJetDb |
db |
private static org.tmatesoft.sqljet.core.table.ISqlJetBusyHandler |
DEFAULT_BUSY_HANDLER |
private static boolean |
logTransactions |
private int |
openCount |
private static org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalMode |
ourPagerJournalMode |
private java.util.EnumMap<SVNWCDbStatements,SVNSqlJetStatement> |
statements |
private SVNSqlJetDb |
temporaryDb |
private boolean |
temporaryDbInMemory |
| Modifier | Constructor and Description |
|---|---|
private |
SVNSqlJetDb(org.tmatesoft.sqljet.core.table.SqlJetDb db,
boolean temporaryDbInMemory) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginTransaction(org.tmatesoft.sqljet.core.SqlJetTransactionMode mode) |
void |
close() |
void |
commit() |
static void |
createSqlJetError(org.tmatesoft.sqljet.core.SqlJetException e) |
void |
execStatement(SVNWCDbStatements statementIndex) |
org.tmatesoft.sqljet.core.table.SqlJetDb |
getDb() |
static org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalMode |
getJournalMode() |
int |
getOpenCount() |
SVNSqlJetStatement |
getStatement(SVNWCDbStatements statementIndex) |
SVNSqlJetDb |
getTemporaryDb() |
boolean |
hasTable(java.lang.String tableName) |
private static boolean |
isLogTransactions() |
private boolean |
isNeedStartTransaction(org.tmatesoft.sqljet.core.SqlJetTransactionMode mode) |
private void |
logCall(java.lang.String message,
int count) |
static SVNSqlJetDb |
open(java.io.File sdbAbsPath,
SVNSqlJetDb.Mode mode) |
static SVNSqlJetDb |
open(java.io.File sdbAbsPath,
SVNSqlJetDb.Mode mode,
org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalMode journalMode,
boolean temporaryDbInMemory) |
private SVNSqlJetStatement |
prepareStatement(SVNWCDbStatements statementIndex) |
void |
rollback() |
void |
runTransaction(SVNSqlJetTransaction transaction) |
void |
runTransaction(SVNSqlJetTransaction transaction,
org.tmatesoft.sqljet.core.SqlJetTransactionMode mode) |
static void |
setJournalMode(org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalMode journalMode) |
void |
verifyNoWork() |
private static final org.tmatesoft.sqljet.core.table.ISqlJetBusyHandler DEFAULT_BUSY_HANDLER
private static boolean logTransactions
private static org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalMode ourPagerJournalMode
private org.tmatesoft.sqljet.core.table.SqlJetDb db
private java.util.EnumMap<SVNWCDbStatements,SVNSqlJetStatement> statements
private int openCount
private SVNSqlJetDb temporaryDb
private boolean temporaryDbInMemory
private SVNSqlJetDb(org.tmatesoft.sqljet.core.table.SqlJetDb db,
boolean temporaryDbInMemory)
public org.tmatesoft.sqljet.core.table.SqlJetDb getDb()
public int getOpenCount()
public void close()
throws SVNException
SVNExceptionpublic static void setJournalMode(org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalMode journalMode)
public static org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalMode getJournalMode()
public static SVNSqlJetDb open(java.io.File sdbAbsPath, SVNSqlJetDb.Mode mode) throws SVNException
SVNExceptionpublic static SVNSqlJetDb open(java.io.File sdbAbsPath, SVNSqlJetDb.Mode mode, org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalMode journalMode, boolean temporaryDbInMemory) throws SVNException
SVNExceptionpublic SVNSqlJetDb getTemporaryDb() throws SVNException
SVNExceptionpublic SVNSqlJetStatement getStatement(SVNWCDbStatements statementIndex) throws SVNException
SVNExceptionprivate SVNSqlJetStatement prepareStatement(SVNWCDbStatements statementIndex) throws SVNException
SVNExceptionpublic void execStatement(SVNWCDbStatements statementIndex) throws SVNException
SVNExceptionpublic static void createSqlJetError(org.tmatesoft.sqljet.core.SqlJetException e)
throws SVNException
SVNExceptionpublic void beginTransaction(org.tmatesoft.sqljet.core.SqlJetTransactionMode mode)
throws SVNException
SVNExceptionprivate boolean isNeedStartTransaction(org.tmatesoft.sqljet.core.SqlJetTransactionMode mode)
public void commit()
throws SVNException
SVNExceptionpublic void verifyNoWork()
public void runTransaction(SVNSqlJetTransaction transaction) throws SVNException
SVNExceptionpublic void runTransaction(SVNSqlJetTransaction transaction, org.tmatesoft.sqljet.core.SqlJetTransactionMode mode) throws SVNException
SVNExceptionpublic void rollback()
throws SVNException
SVNExceptionpublic boolean hasTable(java.lang.String tableName)
throws SVNException
SVNExceptionprivate void logCall(java.lang.String message,
int count)
private static boolean isLogTransactions()