|
WebLogic Server 7.0 Code Examples, BEA Systems, Inc. | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Object | +--examples.dbkona.rowid
This example constructs a TableDataSet for inserting, updating, and deleting records from an Oracle database. It illustrates the use of an Oracle ROWID as a unique key for updates and deletes.
To run this example, you must have the Oracle DEMO database running. The connection to the database is made with WebLogic jDriver for Oracle. This example is run from the command line and the results are displayed to standard out. For other examples of how to display query results, check the server-side Java examples that use htmlKona and dbKona in the examples/servlets directories.
If you don't have the Oracle DEMO database, you can use the file utils/ddl/demo.ddl to set it up.
The following section describes how to build and run the examples:
set PATH=%PATH%;C:\bea\weblogic700\server\bin\oci817_8
set CLASSPATH=%CLASSPATH%;C:\bea
Properties props = new Properties();
props.put("user", "scott");
props.put("password", "tiger");
props.put("server", "DEMO");
You may need to replace these values to fit your configuration.
prompt> ant, or
prompt> javac -d %CLIENT_CLASSES% rowid.java
prompt> ant run_rowid
| Constructor Summary | |
rowid()
|
|
| Method Summary | |
static void |
main(java.lang.String[] argv)
First the JDBC connection is configured and made. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public rowid()
| Method Detail |
public static void main(java.lang.String[] argv)
|
Documentation is available at http://e-docs.bea.com/wls/docs70 |
|||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||