Back to project page android-sqlite-server.
The source code is released under:
Apache License
If you think the Android project android-sqlite-server listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.devtcg.sqliteserver.impl.binder.protocol; //from w w w . j a v a2 s .co m import android.os.Bundle; import org.devtcg.sqliteserver.impl.SQLiteExecutor; import org.devtcg.sqliteserver.impl.binder.ClientTransactor; import org.devtcg.sqliteserver.impl.binder.ServerImpl; public class BeginTransactionCommand { public static class BeginTransactionMessage extends AbstractCommandMessage { public BeginTransactionMessage(ClientTransactor transactor) { super(transactor, MethodName.BEGIN_TRANSACTION); } @Override protected Bundle onBuildRequest(Bundle request) { return request; } @Override protected void onParseResponse(Bundle response) { // Nothing to do. } } public static class BeginTransactionHandler extends AbstractCommandHandler { public BeginTransactionHandler(ServerImpl serverImpl) { super(serverImpl); } @Override protected Bundle onHandle(Bundle request) { getExecutor().beginTransaction(); getServerState().numTransactions++; return null; } } }