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
SVNException
public 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
SVNException
public static SVNSqlJetDb open(java.io.File sdbAbsPath, SVNSqlJetDb.Mode mode, org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalMode journalMode, boolean temporaryDbInMemory) throws SVNException
SVNException
public SVNSqlJetDb getTemporaryDb() throws SVNException
SVNException
public SVNSqlJetStatement getStatement(SVNWCDbStatements statementIndex) throws SVNException
SVNException
private SVNSqlJetStatement prepareStatement(SVNWCDbStatements statementIndex) throws SVNException
SVNException
public void execStatement(SVNWCDbStatements statementIndex) throws SVNException
SVNException
public static void createSqlJetError(org.tmatesoft.sqljet.core.SqlJetException e) throws SVNException
SVNException
public void beginTransaction(org.tmatesoft.sqljet.core.SqlJetTransactionMode mode) throws SVNException
SVNException
private boolean isNeedStartTransaction(org.tmatesoft.sqljet.core.SqlJetTransactionMode mode)
public void commit() throws SVNException
SVNException
public void verifyNoWork()
public void runTransaction(SVNSqlJetTransaction transaction) throws SVNException
SVNException
public void runTransaction(SVNSqlJetTransaction transaction, org.tmatesoft.sqljet.core.SqlJetTransactionMode mode) throws SVNException
SVNException
public void rollback() throws SVNException
SVNException
public boolean hasTable(java.lang.String tableName) throws SVNException
SVNException
private void logCall(java.lang.String message, int count)
private static boolean isLogTransactions()