Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-07-19 08:22:04 +0000
committerEike Stepper2012-07-19 08:22:04 +0000
commit1460904fd3c193ffaf809913b2983a400fce9d94 (patch)
tree72f3a17b75fedba3ae1060df1d32c9c7889be954 /plugins/org.eclipse.net4j.db.db2/src
parent5f360965ae87478e0681899bf310a210cafc2c44 (diff)
downloadcdo-1460904fd3c193ffaf809913b2983a400fce9d94.tar.gz
cdo-1460904fd3c193ffaf809913b2983a400fce9d94.tar.xz
cdo-1460904fd3c193ffaf809913b2983a400fce9d94.zip
Fix line endings in master (dos2unix)
Diffstat (limited to 'plugins/org.eclipse.net4j.db.db2/src')
-rw-r--r--plugins/org.eclipse.net4j.db.db2/src/org/eclipse/net4j/db/db2/DB2SchemaDataSource.java152
-rw-r--r--plugins/org.eclipse.net4j.db.db2/src/org/eclipse/net4j/db/internal/db2/bundle/OM.java92
2 files changed, 122 insertions, 122 deletions
diff --git a/plugins/org.eclipse.net4j.db.db2/src/org/eclipse/net4j/db/db2/DB2SchemaDataSource.java b/plugins/org.eclipse.net4j.db.db2/src/org/eclipse/net4j/db/db2/DB2SchemaDataSource.java
index 8b217b7f65..181806a7fc 100644
--- a/plugins/org.eclipse.net4j.db.db2/src/org/eclipse/net4j/db/db2/DB2SchemaDataSource.java
+++ b/plugins/org.eclipse.net4j.db.db2/src/org/eclipse/net4j/db/db2/DB2SchemaDataSource.java
@@ -1,76 +1,76 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.net4j.db.db2;
-
-import org.eclipse.net4j.db.DBUtil;
-
-import java.sql.Connection;
-import java.sql.SQLException;
-import java.sql.Statement;
-
-/**
- * @author Eike Stepper
- */
-public final class DB2SchemaDataSource extends com.ibm.db2.jcc.DB2SimpleDataSource
-{
- private static final long serialVersionUID = 1L;
-
- private String schemaName;
-
- public DB2SchemaDataSource(String schemaName)
- {
- this.schemaName = schemaName;
- }
-
- public String getSchemaName()
- {
- return schemaName;
- }
-
- @Override
- public Connection getConnection() throws SQLException
- {
- Connection connection = super.getConnection();
- setSchema(connection);
- return connection;
- }
-
- @Override
- public Connection getConnection(Object arg0) throws SQLException
- {
- Connection connection = super.getConnection(arg0);
- setSchema(connection);
- return connection;
- }
-
- @Override
- public Connection getConnection(String arg0, String arg1) throws SQLException
- {
- Connection connection = super.getConnection(arg0, arg1);
- setSchema(connection);
- return connection;
- }
-
- private void setSchema(Connection connection) throws SQLException
- {
- Statement stmt = null;
-
- try
- {
- stmt = connection.createStatement();
- stmt.execute("SET CURRENT SCHEMA " + schemaName); //$NON-NLS-1$
- }
- finally
- {
- DBUtil.close(stmt);
- }
- }
-}
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.net4j.db.db2;
+
+import org.eclipse.net4j.db.DBUtil;
+
+import java.sql.Connection;
+import java.sql.SQLException;
+import java.sql.Statement;
+
+/**
+ * @author Eike Stepper
+ */
+public final class DB2SchemaDataSource extends com.ibm.db2.jcc.DB2SimpleDataSource
+{
+ private static final long serialVersionUID = 1L;
+
+ private String schemaName;
+
+ public DB2SchemaDataSource(String schemaName)
+ {
+ this.schemaName = schemaName;
+ }
+
+ public String getSchemaName()
+ {
+ return schemaName;
+ }
+
+ @Override
+ public Connection getConnection() throws SQLException
+ {
+ Connection connection = super.getConnection();
+ setSchema(connection);
+ return connection;
+ }
+
+ @Override
+ public Connection getConnection(Object arg0) throws SQLException
+ {
+ Connection connection = super.getConnection(arg0);
+ setSchema(connection);
+ return connection;
+ }
+
+ @Override
+ public Connection getConnection(String arg0, String arg1) throws SQLException
+ {
+ Connection connection = super.getConnection(arg0, arg1);
+ setSchema(connection);
+ return connection;
+ }
+
+ private void setSchema(Connection connection) throws SQLException
+ {
+ Statement stmt = null;
+
+ try
+ {
+ stmt = connection.createStatement();
+ stmt.execute("SET CURRENT SCHEMA " + schemaName); //$NON-NLS-1$
+ }
+ finally
+ {
+ DBUtil.close(stmt);
+ }
+ }
+}
diff --git a/plugins/org.eclipse.net4j.db.db2/src/org/eclipse/net4j/db/internal/db2/bundle/OM.java b/plugins/org.eclipse.net4j.db.db2/src/org/eclipse/net4j/db/internal/db2/bundle/OM.java
index 76acdfa667..8e24fcf791 100644
--- a/plugins/org.eclipse.net4j.db.db2/src/org/eclipse/net4j/db/internal/db2/bundle/OM.java
+++ b/plugins/org.eclipse.net4j.db.db2/src/org/eclipse/net4j/db/internal/db2/bundle/OM.java
@@ -1,46 +1,46 @@
-/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.net4j.db.internal.db2.bundle;
-
-import org.eclipse.net4j.util.om.OMBundle;
-import org.eclipse.net4j.util.om.OMPlatform;
-import org.eclipse.net4j.util.om.OSGiActivator;
-import org.eclipse.net4j.util.om.log.OMLogger;
-import org.eclipse.net4j.util.om.trace.OMTracer;
-
-/**
- * The <em>Operations & Maintenance</em> class of this bundle.
- *
- * @author Eike Stepper
- */
-public abstract class OM
-{
- public static final String BUNDLE_ID = "org.eclipse.net4j.db.db2"; //$NON-NLS-1$
-
- public static final OMBundle BUNDLE = OMPlatform.INSTANCE.bundle(BUNDLE_ID, OM.class);
-
- public static final OMTracer DEBUG = BUNDLE.tracer("debug"); //$NON-NLS-1$
-
- public static final OMTracer DEBUG_SQL = DEBUG.tracer("sql"); //$NON-NLS-1$
-
- public static final OMLogger LOG = BUNDLE.logger();
-
- /**
- * @author Eike Stepper
- */
- public static final class Activator extends OSGiActivator
- {
- public Activator()
- {
- super(BUNDLE);
- }
- }
-}
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.net4j.db.internal.db2.bundle;
+
+import org.eclipse.net4j.util.om.OMBundle;
+import org.eclipse.net4j.util.om.OMPlatform;
+import org.eclipse.net4j.util.om.OSGiActivator;
+import org.eclipse.net4j.util.om.log.OMLogger;
+import org.eclipse.net4j.util.om.trace.OMTracer;
+
+/**
+ * The <em>Operations & Maintenance</em> class of this bundle.
+ *
+ * @author Eike Stepper
+ */
+public abstract class OM
+{
+ public static final String BUNDLE_ID = "org.eclipse.net4j.db.db2"; //$NON-NLS-1$
+
+ public static final OMBundle BUNDLE = OMPlatform.INSTANCE.bundle(BUNDLE_ID, OM.class);
+
+ public static final OMTracer DEBUG = BUNDLE.tracer("debug"); //$NON-NLS-1$
+
+ public static final OMTracer DEBUG_SQL = DEBUG.tracer("sql"); //$NON-NLS-1$
+
+ public static final OMLogger LOG = BUNDLE.logger();
+
+ /**
+ * @author Eike Stepper
+ */
+ public static final class Activator extends OSGiActivator
+ {
+ public Activator()
+ {
+ super(BUNDLE);
+ }
+ }
+}

Back to the top