Class SVNSqlJetDb
java.lang.Object
org.tmatesoft.svn.core.internal.db.SVNSqlJetDb
public class SVNSqlJetDb
extends java.lang.Object
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.tmatesoft.sqljet.core.table.SqlJetDb
private static final org.tmatesoft.sqljet.core.table.ISqlJetBusyHandler
private static boolean
private int
private static org.tmatesoft.sqljet.core.internal.SqlJetPagerJournalMode
private java.util.EnumMap<SVNWCDbStatements,
SVNSqlJetStatement> private SVNSqlJetDb
private boolean
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SVNSqlJetDb
(org.tmatesoft.sqljet.core.table.SqlJetDb db, boolean temporaryDbInMemory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
int
getStatement
(SVNWCDbStatements statementIndex) boolean
hasTable
(java.lang.String tableName) private static boolean
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
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
-
openCount
private int openCount -
temporaryDb
-
temporaryDbInMemory
private boolean temporaryDbInMemory
-
-
Constructor Details
-
SVNSqlJetDb
private SVNSqlJetDb(org.tmatesoft.sqljet.core.table.SqlJetDb db, boolean temporaryDbInMemory)
-
-
Method Details
-
getDb
public org.tmatesoft.sqljet.core.table.SqlJetDb getDb() -
getOpenCount
public int getOpenCount() -
close
- 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
- 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
- Throws:
SVNException
-
getStatement
- Throws:
SVNException
-
prepareStatement
- Throws:
SVNException
-
execStatement
- 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
- Throws:
SVNException
-
verifyNoWork
public void verifyNoWork() -
runTransaction
- Throws:
SVNException
-
runTransaction
public void runTransaction(SVNSqlJetTransaction transaction, org.tmatesoft.sqljet.core.SqlJetTransactionMode mode) throws SVNException - Throws:
SVNException
-
rollback
- Throws:
SVNException
-
hasTable
- Throws:
SVNException
-
logCall
private void logCall(java.lang.String message, int count) -
isLogTransactions
private static boolean isLogTransactions()
-