14.2 The Oracle J2ME SQL SDKThe Oracle J2ME SDK (beta) enables mobile clients to access backend databases through the Oracle9i Mobile Application Server. It works on all J2ME profiles. There are only four classes in the oracle.wireless.me.sql package: DriverManager, Connection, Statement, and ResultSet. Their use is very similar to that of their JDBC counterparts. Those classes contain only very simple and lightweight methods. For example the query results can be retrieved only as string objects.The SDK connects to a special gateway servlet, J2MEJDBC. The backend database URL and authentication information are stored in the gateway servlet's configuration file. Oracle runs a demo servlet for public testing. A simple example of database query using the SDK is shown in Listing 14.1. Listing 14.1. Usage of the Oracle J2ME SDK
|