Browse Source

rt

release/10.0
zack 4 years ago
parent
commit
471a43570c
  1. 6
      src/main/java/com/fr/data/ParamTableDataDemo.java
  2. 5
      src/main/java/com/fr/data/SimpleParamTableDataDemo.java

6
src/main/java/com/fr/data/ParamTableDataDemo.java

@ -2,6 +2,7 @@ package com.fr.data;
import com.fr.base.FRContext; import com.fr.base.FRContext;
import com.fr.file.DatasourceManager; import com.fr.file.DatasourceManager;
import com.fr.log.FineLoggerFactory;
import com.fr.stable.ParameterProvider; import com.fr.stable.ParameterProvider;
import java.sql.Connection; import java.sql.Connection;
import java.sql.DriverManager; import java.sql.DriverManager;
@ -133,14 +134,13 @@ public class ParamTableDataDemo extends AbstractTableData {
String url = "jdbc:sqlite:////Applications//FineReport10_325//webapps//webroot//help//FRDemo.db"; String url = "jdbc:sqlite:////Applications//FineReport10_325//webapps//webroot//help//FRDemo.db";
String username = ""; String username = "";
String password = ""; String password = "";
Connection con; Connection con = null;
try { try {
Class.forName(driverName); Class.forName(driverName);
con = DriverManager.getConnection(url, username, password); con = DriverManager.getConnection(url, username, password);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); FineLoggerFactory.getLogger().error(e.getMessage(), e);
return null;
} }
return con; return con;
} }

5
src/main/java/com/fr/data/SimpleParamTableDataDemo.java

@ -83,14 +83,13 @@ public class SimpleParamTableDataDemo extends SimpleTableData {
String url = "jdbc:sqlite:////Applications//FineReport10_325//webapps//webroot//help//FRDemo.db"; String url = "jdbc:sqlite:////Applications//FineReport10_325//webapps//webroot//help//FRDemo.db";
String username = ""; String username = "";
String password = ""; String password = "";
Connection con; Connection con = null;
try { try {
Class.forName(driverName); Class.forName(driverName);
con = DriverManager.getConnection(url, username, password); con = DriverManager.getConnection(url, username, password);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); FineLoggerFactory.getLogger().error(e.getMessage(), e);
return null;
} }
return con; return con;
} }

Loading…
Cancel
Save