protected int getIntegerValue(final Config config, final String propertyName, final int defaultValue) { if (config == null) { return defaultValue; } return config.getIntegerValue(propertyName, defaultValue); }
@Override public void loadConfig() throws SchemaCrawlerException { super.loadConfig(); if (config.hasValue(HOST)) { config.put(HOST, config.getStringValue(HOST, "")); } if (config.hasValue(PORT)) { config.put(PORT, String.valueOf(config.getIntegerValue(PORT, 0))); } if (config.hasValue(DATABASE)) { config.put(DATABASE, config.getStringValue(DATABASE, "")); } if (config.hasValue(URLX)) { config.put(URLX, config.getStringValue(URLX, "")); } }
@Override public void loadConfig() throws SchemaCrawlerException { super.loadConfig(); if (config.hasValue(HOST)) { config.put(HOST, config.getStringValue(HOST, "")); } if (config.hasValue(PORT)) { config.put(PORT, String.valueOf(config.getIntegerValue(PORT, 0))); } if (config.hasValue(DATABASE)) { config.put(DATABASE, config.getStringValue(DATABASE, "")); } if (config.hasValue(URLX)) { config.put(URLX, config.getStringValue(URLX, "")); } }
final int parentTableFilterDepth = config.getIntegerValue("parents", 0); optionsBuilder.parentTableFilterDepth(parentTableFilterDepth); consumeOption("parents"); final int childTableFilterDepth = config.getIntegerValue("children", 0); optionsBuilder.childTableFilterDepth(childTableFilterDepth); consumeOption("children");
final int parentTableFilterDepth = config.getIntegerValue("parents", 0); optionsBuilder.parentTableFilterDepth(parentTableFilterDepth); consumeOption("parents"); final int childTableFilterDepth = config.getIntegerValue("children", 0); optionsBuilder.childTableFilterDepth(childTableFilterDepth); consumeOption("children");
@Override public void loadConfig() throws SchemaCrawlerException { super.loadConfig(); if (config.hasValue(HOST)) { config.put(HOST, config.getStringValue(HOST, "")); } if (config.hasValue(PORT)) { config.put(PORT, String.valueOf(config.getIntegerValue(PORT, 0))); } if (config.hasValue(DATABASE)) { config.put(DATABASE, config.getStringValue(DATABASE, "")); } if (config.hasValue(URLX)) { config.put(URLX, config.getStringValue(URLX, "")); } }
@Override public void loadConfig() throws SchemaCrawlerException { super.loadConfig(); if (config.hasValue(HOST)) { config.put(HOST, config.getStringValue(HOST, "")); } if (config.hasValue(PORT)) { config.put(PORT, String.valueOf(config.getIntegerValue(PORT, 0))); } if (config.hasValue(DATABASE)) { config.put(DATABASE, config.getStringValue(DATABASE, "")); } if (config.hasValue(URLX)) { config.put(URLX, config.getStringValue(URLX, "")); } }
final int parentTableFilterDepth = config.getIntegerValue("parents", 0); optionsBuilder.parentTableFilterDepth(parentTableFilterDepth); consumeOption("parents"); final int childTableFilterDepth = config.getIntegerValue("children", 0); optionsBuilder.childTableFilterDepth(childTableFilterDepth); consumeOption("children");
final int parentTableFilterDepth = config.getIntegerValue("parents", 0); optionsBuilder.parentTableFilterDepth(parentTableFilterDepth); consumeOption("parents"); final int childTableFilterDepth = config.getIntegerValue("children", 0); optionsBuilder.childTableFilterDepth(childTableFilterDepth); consumeOption("children");