this.getLogger().trace("EXIT!");
}
- /**
- * Initialize backend
- *
- * @throws org.mxchange.jcore.exceptions.UnsupportedDatabaseBackendException If the backend is not supported
- * @throws java.sql.SQLException If a SQL database backend fails to connect
- */
- protected void initBackend () throws UnsupportedDatabaseBackendException, SQLException {
- // Trace message
- this.getLogger().trace("CALLED!"); //NOI18N
-
- // Try it
- try {
- // Try to get get instance from factory
- DatabaseBackend backend = BackendFactory.createInstance(this);
-
- // Try to run a connect on it
- backend.connectToDatabase();
-
- // All fine so far, then set it here
- this.setBackend(backend);
- } catch (final ClassNotFoundException | NoSuchMethodException | InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException ex) {
- // Continue to throw
- throw new UnsupportedDatabaseBackendException(ex);
- }
-
- // Trace message
- this.getLogger().trace("EXIT!"); //NOI18N
- }
-
/**
* Inserts currently filled dataset and returns the result of the operation.
* This may return no rows, but the affectedRows field may have been
// Return it
return result;
}
+
+ /**
+ * Initialize backend
+ *
+ * @throws org.mxchange.jcore.exceptions.UnsupportedDatabaseBackendException If the backend is not supported
+ * @throws java.sql.SQLException If a SQL database backend fails to connect
+ */
+ protected void initBackend () throws UnsupportedDatabaseBackendException, SQLException {
+ // Trace message
+ this.getLogger().trace("CALLED!"); //NOI18N
+
+ // Try it
+ try {
+ // Try to get get instance from factory
+ DatabaseBackend backend = BackendFactory.createInstance(this);
+
+ // Try to run a connect on it
+ backend.connectToDatabase();
+
+ // All fine so far, then set it here
+ this.setBackend(backend);
+ } catch (final ClassNotFoundException | NoSuchMethodException | InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException ex) {
+ // Continue to throw
+ throw new UnsupportedDatabaseBackendException(ex);
+ }
+
+ // Trace message
+ this.getLogger().trace("EXIT!"); //NOI18N
+ }
}