javadb/org/homelinux/largo/app/App.java
author Markus Bröker <mbroeker@largo.dyndns.tv>
Sun, 26 Jul 2009 18:24:10 +0200
changeset 105 c19e37122deb
parent 100 a6d2add085d7
child 123 07b2c0b991af
permissions -rw-r--r--
Removed Whitespace errors in DBClient.java committer: Markus Bröker <mbroeker@largo.homelinux.org>

package org.homelinux.largo.app;

import org.homelinux.largo.sql.client.DBClient;

public class App {
	public static void main (String args[]) {
		try {
			DBClient db = new DBClient (
					"org.apache.derby.jdbc.EmbeddedDriver",
					"jdbc:derby:clubstatistik",
					null, null
			);

			db.query ("select * from euroleague order by team");

			while (db.hasNext ()) {
				System.out.println (db.getColumn (1));
			}

			db.close ();
		} catch (Exception e) {
			e.printStackTrace ();
		}
	}
}