Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/DBConnection.java @ 89:d348fe1fd822
More javadoc (fixes small glitches, too).
artifacts/trunk@845 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 26 Mar 2010 16:16:32 +0000 |
parents | 0f48188a6e02 |
children | 730ff077a58c |
comparison
equal
deleted
inserted
replaced
88:69c84cf7c5d7 | 89:d348fe1fd822 |
---|---|
73 | 73 |
74 /** | 74 /** |
75 * Constructs the default databse URL. It concats the | 75 * Constructs the default databse URL. It concats the |
76 * config directory and the #DEFAULT_DATABASE_FILE | 76 * config directory and the #DEFAULT_DATABASE_FILE |
77 * to the string with is needed to access H2 databases. | 77 * to the string with is needed to access H2 databases. |
78 * @return | 78 * @return The default URL. |
79 */ | 79 */ |
80 public static final String getDefaultURL() { | 80 public static final String getDefaultURL() { |
81 File configDir = Config.getConfigDirectory(); | 81 File configDir = Config.getConfigDirectory(); |
82 File databaseFile = new File(configDir, DEFAULT_DATABASE_FILE); | 82 File databaseFile = new File(configDir, DEFAULT_DATABASE_FILE); |
83 return "jdbc:h2:" + databaseFile; | 83 return "jdbc:h2:" + databaseFile; |