Java JDBC sample.