Skip to content

Commit

Permalink
order by "nachname"
Browse files Browse the repository at this point in the history
code for  test and for real database
  • Loading branch information
donald committed Oct 18, 2014
1 parent c5868e8 commit ee297a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/de/mpg/molgen/buczek/portifix/Gui.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,17 @@ public class Gui extends javax.swing.JFrame {
Connection connection;
TableModel tableModel;

private static final boolean useTestDatabase=true;
private static final String connectString=
useTestDatabase
? "jdbc:firebirdsql://portier-db//project/portier/firebird/data/x.fdb?encoding=UTF8"
: "jdbc:firebirdsql://portier-db/portiervision.fdb?encoding=UTF8";


private void filltable() {
try {
if (connection == null) {
connection = DriverManager.getConnection("jdbc:firebirdsql://portier-db//project/portier/firebird/data/x.fdb?encoding=UTF8", "sysdba", "***REMOVED***");
connection = DriverManager.getConnection(connectString, "sysdba", "***REMOVED***");
tableModel.setConnection(connection);
}
tableModel.populate();
Expand Down
2 changes: 1 addition & 1 deletion src/de/mpg/molgen/buczek/portifix/TableModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public class TableModel extends AbstractTableModel {
+ " from AUSGABE,PERSONAL,EXEMPLAR"
+ " where AUSGABE.PERSONAL_ID=PERSONAL.PERSONAL_ID"
+ " and AUSGABE.EXEMPLAR_ID=EXEMPLAR.EXEMPLAR_ID"
+ " order by NAME_2";
+ " order by NAME_1";

protected ArrayList<Object[]> row = new ArrayList(100);

Expand Down

0 comments on commit ee297a8

Please sign in to comment.