To make it easily for every java developer, from version 6.2, you can define a DemoDefinition class for your database. You can see such class for a Firebird connection, where you define database name, report /chart name, map of parameters and database connection:
import java.sql.Connection;You just have to add your definition to DemoDefinitionFactory class and inside DemoUtil class change your NextReports home and your definition:
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
public class FirebirdDemoDefinition implements DemoDefinition {
@Override
public String getDatabaseName() {
return "Firebird Test";
}
@Override
public String getReportName() {
return "Projects.report";
}
@Override
public Connection createDemoConnection() throws ClassNotFoundException, SQLException {
Class.forName("org.firebirdsql.jdbc.FBDriver");
String url = "jdbc:firebirdsql:192.168.16.32/3050:employee.fdb";
System.out.println("Connect to '" + url + "'");
return DriverManager.getConnection(url, "SYSDBA", "sysdba");
}
@Override
public Map<String, Object> createDemoParameterValues() {
Map<String, Object> parameterValues = new HashMap<String, Object>();
return parameterValues;
}
@Override
public String getChartName() {
return null;
}
}
public static final String NEXTREPORTS_HOME = "D:\\Programs\\NextReports 6.2";This will help to test faster your JDBC driver compliance with NextReports.
public static DemoDefinition def = DemoDefinitionFactory.get(DemoDefinitionFactory.FIREBIRD_DB);
Interaction of data with certain processes and representation of data through various program forms the study area of computer science. data science course syllabus
ReplyDeleteThanks for sharing this, I actually appreciate you taking the time to share with everybody.
ReplyDeleteBest Data Science Training In Hyderabad
i have to thank you for the time i spent on this especially great reading !! i really liked each part and also bookmarked you for new information on your site.
ReplyDeleteData Science Training in Hyderabad
I was just examining through the web looking for certain information and ran over your blog.It shows how well you understand this subject. Bookmarked this page, will return for extra. data science course in vadodara
ReplyDelete