SQL Zone is brought to you in partnership with:

Founder & CEO of KawanSoft. We are a french privately held company located in Paris and specialize in Swing, Java EE and client-server developments. We developp and support the OSS Awake Framework that allows file tranfers and JDBC calls through HTTP. Nicolas has posted 5 posts at DZone. You can read more from them at their website. View Full User Profile

Awake SQL 1.2 Android Edition released: JDBC Access to Your Remote SQL Data on Android

  • submit to reddit

Tired of writing/deploying/debugging Web Services for your Android applications? Access SQL data directly from Android without writing code on the server side!

Awake SQL 1.2 Android Edition is a virtual JDBC Driver for Android: you can now access your usual remote databases using JDBC from your Android applications. Just include your existing & non-modified JDBC calls in your Android application to read or write SQL data:

      "WHERE CUSTOMER_ID = ?";
  PreparedStatement prepStatement = connection.prepareStatement(sql);
  prepStatement.setInt(1, 1);

  ResultSet rs = prepStatement.executeQuery();
  while (rs.next()) {
      String customerId = rs.getString("customer_id");
      String fname = rs.getString("fname");
      String lname = rs.getString("lname");
      // Etc.

The software library comes with a complete set of features: main data types are implemented, including blobs/clobs, and transactions are supported.

Major databases are supported:

  • DB2.
  • H2.
  • HSQLDB (HyperSQL Database).
  • Informix.
  • Ingres.
  • MySQL / MariaDB.
  • Oracle Database.
  • PostgreSQL.
  • SQL Server.
  • Sybase ASE.
  • Sybase SQL Anywhere.
  • Teradata Database.

Security was a major element as we designed this solution.  The remote databases are not accessed directly: all calls are filtered on the server side by authentication mechanisms and security rules.

Awake SQL Android Edition is licensed through the GNU Lesser General Public License (LGPL v2.1):

For more information, please visit http://www.awake-sql.org.

Published at DZone with permission of its author, Nicolas De Pomereu.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)