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.
Java Source Code
package org.devtcg.sqliteserver;
//fromwww.java2s.comimport android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
/**
* Client interface for interacting with a server instance (either
* {@link SQLiteContentProviderServer} or {@link SQLiteServiceServer}).
* <p>
* This API strives to provide all of the same features as
* {@link SQLiteDatabase}, making it a perfect drop-in replacements.
* <p>
* Implementations of this interface are not designed to be thread-safe.
* Each thread must create its own connection!
*/publicinterface SQLiteServerConnection {
/**
* @see SQLiteDatabase#beginTransaction()
*/publicvoid beginTransaction();
/**
* @see SQLiteDatabase#setTransactionSuccessful()
*/publicvoid setTransactionSuccessful();
/**
* @see SQLiteDatabase#endTransaction()
*/publicvoid endTransaction();
/**
* @see SQLiteDatabase#rawQuery(String, String[])
*/public Cursor rawQuery(String sql, String[] selectionArgs);
/**
* @see SQLiteDatabase#execSQL(String)
*/publicvoid execSQL(String sql);
/**
* @see SQLiteDatabase#insert(String, String, android.content.ContentValues)
*/publiclong insert(String table, ContentValues values);
/**
* @see SQLiteDatabase#update(String, android.content.ContentValues, String, String[])
*/publicint update(String table, ContentValues values, String whereClause, String[] whereArgs);
/**
* @see SQLiteDatabase#delete(String, String, String[])
*/publicint delete(String table, String whereClause, String[] whereArgs);
/**
* Close the database connection. Note that this does not necessarily cause the server
* to close its database handle.
*/publicvoid close();
}