Home | History | Annotate | Download | only in storage

Lines Matching refs:SQLTransaction

30 #include "SQLTransaction.h"
62 PassRefPtr<SQLTransaction> SQLTransaction::create(Database* db, PassRefPtr<SQLTransactionCallback> callback, PassRefPtr<SQLTransactionErrorCallback> errorCallback,
65 return adoptRef(new SQLTransaction(db, callback, errorCallback, successCallback, wrapper, readOnly));
68 SQLTransaction::SQLTransaction(Database* db, PassRefPtr<SQLTransactionCallback> callback, PassRefPtr<SQLTransactionErrorCallback> errorCallback,
70 : m_nextStep(&SQLTransaction::acquireLock)
85 SQLTransaction::~SQLTransaction()
90 void SQLTransaction::executeSQL(const String& sqlStatement, const Vector<SQLValue>& arguments, PassRefPtr<SQLStatementCallback> callback, PassRefPtr<SQLStatementErrorCallback> callbackError, ExceptionCode& e)
114 void SQLTransaction::enqueueStatement(PassRefPtr<SQLStatement> statement)
121 const char* SQLTransaction::debugStepName(SQLTransaction::TransactionStepMethod step)
123 if (step == &SQLTransaction::acquireLock)
125 else if (step == &SQLTransaction::openTransactionAndPreflight)
127 else if (step == &SQLTransaction::runStatements)
129 else if (step == &SQLTransaction::postflightAndCommit)
131 else if (step == &SQLTransaction::cleanupAfterTransactionErrorCallback)
133 else if (step == &SQLTransaction::deliverTransactionCallback)
135 else if (step == &SQLTransaction::deliverTransactionErrorCallback)
137 else if (step == &SQLTransaction::deliverStatementCallback)
139 else if (step == &SQLTransaction::deliverQuotaIncreaseCallback)
141 else if (step == &SQLTransaction::deliverSuccessCallback)
143 else if (step == &SQLTransaction::cleanupAfterSuccessCallback)
150 void SQLTransaction::checkAndHandleClosedOrInterruptedDatabase()
181 bool SQLTransaction::performNextStep()
185 ASSERT(m_nextStep == &SQLTransaction::acquireLock ||
186 m_nextStep == &SQLTransaction::openTransactionAndPreflight ||
187 m_nextStep == &SQLTransaction::runStatements ||
188 m_nextStep == &SQLTransaction::postflightAndCommit ||
189 m_nextStep == &SQLTransaction::cleanupAfterSuccessCallback ||
190 m_nextStep == &SQLTransaction::cleanupAfterTransactionErrorCallback);
201 void SQLTransaction::performPendingCallback()
205 ASSERT(m_nextStep == &SQLTransaction::deliverTransactionCallback ||
206 m_nextStep == &SQLTransaction::deliverTransactionErrorCallback ||
207 m_nextStep == &SQLTransaction::deliverStatementCallback ||
208 m_nextStep == &SQLTransaction::deliverQuotaIncreaseCallback ||
209 m_nextStep == &SQLTransaction::deliverSuccessCallback);
217 void SQLTransaction::notifyDatabaseThreadIsShuttingDown()
227 void SQLTransaction::acquireLock()
232 void SQLTransaction::lockAcquired()
235 m_nextStep = &SQLTransaction::openTransactionAndPreflight;
240 void SQLTransaction::openTransactionAndPreflight()
286 // Transaction Step 4 - Invoke the transaction callback with the new SQLTransaction object
287 m_nextStep = &SQLTransaction::deliverTransactionCallback;
292 void SQLTransaction::deliverTransactionCallback()
311 void SQLTransaction::scheduleToRunStatements()
313 m_nextStep = &SQLTransaction::runStatements;
318 void SQLTransaction::runStatements()
355 void SQLTransaction::getNextStatement()
365 bool SQLTransaction::runCurrentStatement()
381 m_nextStep = &SQLTransaction::deliverStatementCallback;
390 m_nextStep = &SQLTransaction::deliverQuotaIncreaseCallback;
401 void SQLTransaction::handleCurrentStatementError()
406 SQLTransaction::deliverStatementCallback;
417 void SQLTransaction::deliverStatementCallback()
434 void SQLTransaction::deliverQuotaIncreaseCallback()
441 m_nextStep = &SQLTransaction::runStatements;
446 void SQLTransaction::postflightAndCommit()
487 m_nextStep = &SQLTransaction::deliverSuccessCallback;
494 void SQLTransaction::deliverSuccessCallback()
503 m_nextStep = &SQLTransaction::cleanupAfterSuccessCallback;
508 void SQLTransaction::cleanupAfterSuccessCallback()
523 void SQLTransaction::handleTransactionError(bool inCallback)
529 m_nextStep = &SQLTransaction::deliverTransactionErrorCallback;
539 m_nextStep = &SQLTransaction::cleanupAfterTransactionErrorCallback;
547 void SQLTransaction::deliverTransactionErrorCallback()
557 m_nextStep = &SQLTransaction::cleanupAfterTransactionErrorCallback;
562 void SQLTransaction::cleanupAfterTransactionErrorCallback()