Lines 253-258
Link Here
|
253 |
dbconn.addImportantCatalog(importantDatabase); |
253 |
dbconn.addImportantCatalog(importantDatabase); |
254 |
} |
254 |
} |
255 |
dbconn.setSeparateSystemTables(handler.separateSystemTables); |
255 |
dbconn.setSeparateSystemTables(handler.separateSystemTables); |
|
|
256 |
if (handler.useScrollableCursors != null) { |
257 |
dbconn.setUseScrollableCursors(handler.useScrollableCursors); |
258 |
} |
256 |
LOGGER.fine("Created DatabaseConnection[" + dbconn.toString() + "] from file: " + handler.connectionFileName); |
259 |
LOGGER.fine("Created DatabaseConnection[" + dbconn.toString() + "] from file: " + handler.connectionFileName); |
257 |
|
260 |
|
258 |
return dbconn; |
261 |
return dbconn; |
Lines 392-398
Link Here
|
392 |
|
395 |
|
393 |
void write(PrintWriter pw, String name) throws IOException { |
396 |
void write(PrintWriter pw, String name) throws IOException { |
394 |
pw.println("<?xml version='1.0'?>"); //NOI18N |
397 |
pw.println("<?xml version='1.0'?>"); //NOI18N |
395 |
pw.println("<!DOCTYPE connection PUBLIC '-//NetBeans//DTD Database Connection 1.1//EN' 'http://www.netbeans.org/dtds/connection-1_1.dtd'>"); //NOI18N |
398 |
pw.println("<!DOCTYPE connection PUBLIC '-//NetBeans//DTD Database Connection 1.2//EN' 'http://www.netbeans.org/dtds/connection-1_2.dtd'>"); //NOI18N |
396 |
pw.println("<connection>"); //NOI18N |
399 |
pw.println("<connection>"); //NOI18N |
397 |
pw.println(" <driver-class value='" + XMLUtil.toAttributeValue(instance.getDriver()) + "'/>"); //NOI18N |
400 |
pw.println(" <driver-class value='" + XMLUtil.toAttributeValue(instance.getDriver()) + "'/>"); //NOI18N |
398 |
pw.println(" <driver-name value='" + XMLUtil.toAttributeValue(instance.getDriverName()) + "'/>"); // NOI18N |
401 |
pw.println(" <driver-name value='" + XMLUtil.toAttributeValue(instance.getDriverName()) + "'/>"); // NOI18N |
Lines 435-440
Link Here
|
435 |
if (instance.isSeparateSystemTables()) { |
438 |
if (instance.isSeparateSystemTables()) { |
436 |
pw.println(" <separate-system-tables value='true'/>"); //NOI18N |
439 |
pw.println(" <separate-system-tables value='true'/>"); //NOI18N |
437 |
} |
440 |
} |
|
|
441 |
pw.println(" <use-scrollable-cursors value='" + instance.isUseScrollableCursors() + "'/>"); //NOI18N |
438 |
pw.println("</connection>"); //NOI18N |
442 |
pw.println("</connection>"); //NOI18N |
439 |
} |
443 |
} |
440 |
} |
444 |
} |
Lines 455-460
Link Here
|
455 |
private static final String ELEMENT_IMPORTANT_CATALOG = "important-catalog"; //NOI18N |
459 |
private static final String ELEMENT_IMPORTANT_CATALOG = "important-catalog"; //NOI18N |
456 |
private static final String ELEMENT_CONNECTION_PROPERTY = "connection-property"; // NOI18N |
460 |
private static final String ELEMENT_CONNECTION_PROPERTY = "connection-property"; // NOI18N |
457 |
private static final String ELEMENT_SEPARATE_SYS_TABLES = "separate-system-tables"; //NOI18N |
461 |
private static final String ELEMENT_SEPARATE_SYS_TABLES = "separate-system-tables"; //NOI18N |
|
|
462 |
private static final String ELEMENT_USE_SCROLLABLE_CURSORS = "use-scrollable-cursors"; //NOI18N |
458 |
private static final String ELEMENT_CONNECTION_PROPERTY_NAME = "name"; // NOI18N |
463 |
private static final String ELEMENT_CONNECTION_PROPERTY_NAME = "name"; // NOI18N |
459 |
private static final String ELEMENT_CONNECTION_PROPERTY_VALUE = "value"; // NOI18N |
464 |
private static final String ELEMENT_CONNECTION_PROPERTY_VALUE = "value"; // NOI18N |
460 |
private static final String ATTR_PROPERTY_VALUE = "value"; // NOI18N |
465 |
private static final String ATTR_PROPERTY_VALUE = "value"; // NOI18N |
Lines 473-478
Link Here
|
473 |
String displayName; |
478 |
String displayName; |
474 |
Properties connectionProperties; |
479 |
Properties connectionProperties; |
475 |
boolean separateSystemTables = false; |
480 |
boolean separateSystemTables = false; |
|
|
481 |
Boolean useScrollableCursors = null; |
476 |
List<String> importantSchemas = new ArrayList<String>(); |
482 |
List<String> importantSchemas = new ArrayList<String>(); |
477 |
List<String> importantCatalogs = new ArrayList<String>(); |
483 |
List<String> importantCatalogs = new ArrayList<String>(); |
478 |
|
484 |
|
Lines 542-547
Link Here
|
542 |
importantCatalogs.add(value); |
548 |
importantCatalogs.add(value); |
543 |
} else if (ELEMENT_SEPARATE_SYS_TABLES.equals(qName)) { |
549 |
} else if (ELEMENT_SEPARATE_SYS_TABLES.equals(qName)) { |
544 |
separateSystemTables = Boolean.parseBoolean(value); |
550 |
separateSystemTables = Boolean.parseBoolean(value); |
|
|
551 |
} else if (ELEMENT_USE_SCROLLABLE_CURSORS.equals(qName)) { |
552 |
useScrollableCursors = Boolean.parseBoolean(value); |
545 |
} |
553 |
} |
546 |
} |
554 |
} |
547 |
|
555 |
|