# HG changeset patch # User Markus Bröker # Date 1248625450 -7200 # Node ID c19e37122deb88a7015ecdc1f428663f6a74ba88 # Parent b59f1c9895dbeec2e217765a105f1a2520cbaccc Removed Whitespace errors in DBClient.java committer: Markus Bröker diff --git a/javadb/org/homelinux/largo/sql/client/DBClient.java b/javadb/org/homelinux/largo/sql/client/DBClient.java --- a/javadb/org/homelinux/largo/sql/client/DBClient.java +++ b/javadb/org/homelinux/largo/sql/client/DBClient.java @@ -34,7 +34,7 @@ /** * Default Konstruktor to connect to my DataPool - */ + */ public DBClient (String jndiResource) throws Exception { Context ctx = new InitialContext (); DataSource ds = (DataSource) ctx.lookup (jndiResource); @@ -45,7 +45,7 @@ /** * Default Konstruktor to connect to my database with auth-data - */ + */ public DBClient (String driver, String dbURL, String username, String password) throws Exception { this.driver = driver; this.dbURL = dbURL; @@ -56,23 +56,23 @@ Class.forName (driver); connection = DriverManager.getConnection (dbURL, username, password); statement = connection.createStatement (); - } + } public void close () throws Exception { connection.close (); - } + } public String getColumn (int pos) throws Exception { return resultset.getString (pos); - } + } public String getColumn (String name) throws Exception { return resultset.getString (name); - } + } public Connection getConnection () { return connection; - } + } public String getDbURL () { return dbURL; @@ -96,7 +96,7 @@ public void query (String query) throws Exception { resultset = statement.executeQuery (query); - } + } public void setConnection (Connection connection) { this.connection = connection;