DBConnection
It implements two Design-Patterns:
getInstance()
27282930313233343536373839404142
.getValueOptional("Base", "Journal", "DBConnection"); if (dbConnectionName == null) { dbConnectionName = DBConnection.UNNAMED; } DBConnection dbcon = DBConnection.getInstance(dbConnectionName); if ((dbcon.getUrl() != null) && (dbcon.getUrl().startsWith("jdbc:hsqldb"))) { dbcon.executeUpdate("shutdown compact"); } } catch (XException e) { System.exit(1);
359360361362363364365366367368369370371
.getValueOptional("Base", "Journal", "DBConnection"); if (dbConnectionName == null) { dbConnectionName = DBConnection.UNNAMED; } DBConnection dbCon = DBConnection.getInstance(dbConnectionName); ResultSet result = dbCon.executeRead(sqlBefehl); Vector list = new Vector(); while (result.next()) { ReadJournal journal = new ReadJournal();