* Path to the database files
* @return
*/
private String getConnectionString(IPath dbPath) {
IPreferencesService preferencesService = Platform
.getPreferencesService();
StringBuilder buf = new StringBuilder("jdbc:h2:").append(dbPath.append(
DB_NAME).toOSString());
buf.append(";UNDO_LOG=0");
buf.append(";LOCK_MODE=").append(
preferencesService.getInt(SymfonyIndex.PLUGIN_ID,
SymfonyIndexPreferences.DB_LOCK_MODE, 0, null));
buf.append(";CACHE_TYPE=").append(
preferencesService.getString(SymfonyIndex.PLUGIN_ID,
SymfonyIndexPreferences.DB_CACHE_TYPE, null, null));
buf.append(";CACHE_SIZE=").append(
preferencesService.getInt(SymfonyIndex.PLUGIN_ID,
SymfonyIndexPreferences.DB_CACHE_SIZE, 0, null));
return buf.toString();
}