renamed demo databases

git-svn-id: https://svn.code.sf.net/p/jailer/code/trunk@900 3dd849cd-670e-4645-a7cd-dd197c8d0e81
This commit is contained in:
rwisser
2011-11-28 07:17:25 +00:00
parent da03003609
commit 4c764ce57c
5 changed files with 19 additions and 4 deletions

BIN
demo-sakila.h2.db Normal file

Binary file not shown.

View File

@@ -539,6 +539,7 @@ public abstract class DataModelManagerDialog extends javax.swing.JFrame {
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
hasSelectedModel = false;
setVisible(false);
dispose();
}//GEN-LAST:event_jButton2ActionPerformed
private void analyzeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_analyzeButtonActionPerformed

View File

@@ -342,6 +342,7 @@ public class DbConnectionDialog extends javax.swing.JDialog {
connectionList = new ArrayList<ConnectionInfo>();
currentConnection = null;
boolean ok = false;
boolean preV4 = true;
try {
File file = new File(CONNECTIONS_FILE);
@@ -354,8 +355,9 @@ public class DbConnectionDialog extends javax.swing.JDialog {
for (int n = 0; n < dma.size(); ++n) {
cis.get(n).dataModelFolder = dma.get(n);
}
preV4 = false;
} catch (Throwable t) {
// ignore. pre 3.8 files do not contain data model assignments.
// ignore. pre 4.0 files do not contain data model assignments.
}
in.close();
connectionList = cis;
@@ -398,13 +400,25 @@ public class DbConnectionDialog extends javax.swing.JDialog {
}
if (connectionList.size() == 0) {
ConnectionInfo ci = new ConnectionInfo();
ci.alias = applicationName + "DemoDatabase";
ci.alias = "Demo Scott";
ci.driverClass = "org.h2.Driver";
ci.jar1 = "lib" + File.separator + "h2-1.3.160.jar";
ci.url = "jdbc:h2:demo";
ci.url = "jdbc:h2:demo-scott";
ci.user = "sa";
ci.password = "";
ci.dataModelFolder = "Demo";
ci.dataModelFolder = "Demo-Scott";
connectionList.add(ci);
store();
}
if (preV4) {
ConnectionInfo ci = new ConnectionInfo();
ci.alias = "Demo Sakila";
ci.driverClass = "org.h2.Driver";
ci.jar1 = "lib" + File.separator + "h2-1.3.160.jar";
ci.url = "jdbc:h2:demo-sakila";
ci.user = "sa";
ci.password = "";
ci.dataModelFolder = "Demo-Sakila";
connectionList.add(ci);
store();
}