Removed Whitespace errors in DBClient.java
committer: Markus Bröker <mbroeker@largo.homelinux.org>
--- 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;