if (!argsMap.isEmpty())
if (!argsMap.isEmpty())
public SchemaCrawlerCommandLine(final Config argsMap) throws SchemaCrawlerException { if (argsMap == null || argsMap.isEmpty()) { throw new SchemaCrawlerCommandLineException("Please provide command-line arguments"); } // Match the database connector in the best possible way, using the // server argument, or the JDBC connection URL final DatabaseServerTypeParser dbServerTypeParser = new DatabaseServerTypeParser(argsMap); databaseConnector = dbServerTypeParser.getOptions(); LOGGER.log(Level.INFO, new StringFormat("Using database plugin <%s>", databaseConnector.getDatabaseServerType())); config = loadConfig(argsMap); final CommandParser commandParser = new CommandParser(config); command = commandParser.getOptions().toString(); final SchemaCrawlerOptionsParser schemaCrawlerOptionsParser = new SchemaCrawlerOptionsParser(config); schemaCrawlerOptions = schemaCrawlerOptionsParser.getOptions(); final OutputOptionsParser outputOptionsParser = new OutputOptionsParser(config); outputOptions = outputOptionsParser.getOptions(); final AdditionalConfigOptionsParser additionalConfigOptionsParser = new AdditionalConfigOptionsParser(config); additionalConfigOptionsParser.loadConfig(); final UserCredentials userCredentials = parseConnectionOptions(); // Connect using connection options provided from the command-line, // provided configuration, and bundled configuration connectionOptions = databaseConnector .newDatabaseConnectionOptions(userCredentials, config); }
public SchemaCrawlerCommandLine(final Config argsMap) throws SchemaCrawlerException { if (argsMap == null || argsMap.isEmpty()) { throw new SchemaCrawlerCommandLineException("Please provide command-line arguments"); } // Match the database connector in the best possible way, using the // server argument, or the JDBC connection URL final DatabaseServerTypeParser dbServerTypeParser = new DatabaseServerTypeParser(argsMap); databaseConnector = dbServerTypeParser.getOptions(); LOGGER.log(Level.INFO, new StringFormat("Using database plugin <%s>", databaseConnector.getDatabaseServerType())); config = loadConfig(argsMap); final CommandParser commandParser = new CommandParser(config); command = commandParser.getOptions().toString(); final SchemaCrawlerOptionsParser schemaCrawlerOptionsParser = new SchemaCrawlerOptionsParser(config); schemaCrawlerOptions = schemaCrawlerOptionsParser.getOptions(); final OutputOptionsParser outputOptionsParser = new OutputOptionsParser(config); outputOptions = outputOptionsParser.getOptions(); final AdditionalConfigOptionsParser additionalConfigOptionsParser = new AdditionalConfigOptionsParser(config); additionalConfigOptionsParser.loadConfig(); final UserCredentials userCredentials = parseConnectionOptions(); // Connect using connection options provided from the command-line, // provided configuration, and bundled configuration connectionOptions = databaseConnector .newDatabaseConnectionOptions(userCredentials, config); }
if (!argsMap.isEmpty())
if (!argsMap.isEmpty())
public SchemaCrawlerCommandLine(final Config argsMap) throws SchemaCrawlerException { if (argsMap == null || argsMap.isEmpty()) { throw new SchemaCrawlerCommandLineException("Please provide command-line arguments"); } // Match the database connector in the best possible way, using the // server argument, or the JDBC connection URL final DatabaseServerTypeParser dbServerTypeParser = new DatabaseServerTypeParser(argsMap); databaseConnector = dbServerTypeParser.getOptions(); LOGGER.log(Level.INFO, new StringFormat("Using database plugin <%s>", databaseConnector.getDatabaseServerType())); config = loadConfig(argsMap); final CommandParser commandParser = new CommandParser(config); command = commandParser.getOptions().toString(); final SchemaCrawlerOptionsParser schemaCrawlerOptionsParser = new SchemaCrawlerOptionsParser(config); schemaCrawlerOptions = schemaCrawlerOptionsParser.getOptions(); final OutputOptionsParser outputOptionsParser = new OutputOptionsParser(config); outputOptions = outputOptionsParser.getOptions(); final AdditionalConfigOptionsParser additionalConfigOptionsParser = new AdditionalConfigOptionsParser(config); additionalConfigOptionsParser.loadConfig(); final UserCredentials userCredentials = parseConnectionOptions(); // Connect using connection options provided from the command-line, // provided configuration, and bundled configuration connectionOptions = databaseConnector .newDatabaseConnectionOptions(userCredentials, config); }
public SchemaCrawlerCommandLine(final Config argsMap) throws SchemaCrawlerException { if (argsMap == null || argsMap.isEmpty()) { throw new SchemaCrawlerCommandLineException("Please provide command-line arguments"); } // Match the database connector in the best possible way, using the // server argument, or the JDBC connection URL final DatabaseServerTypeParser dbServerTypeParser = new DatabaseServerTypeParser(argsMap); databaseConnector = dbServerTypeParser.getOptions(); LOGGER.log(Level.INFO, new StringFormat("Using database plugin <%s>", databaseConnector.getDatabaseServerType())); config = loadConfig(argsMap); final CommandParser commandParser = new CommandParser(config); command = commandParser.getOptions().toString(); final SchemaCrawlerOptionsParser schemaCrawlerOptionsParser = new SchemaCrawlerOptionsParser(config); schemaCrawlerOptions = schemaCrawlerOptionsParser.getOptions(); final OutputOptionsParser outputOptionsParser = new OutputOptionsParser(config); outputOptions = outputOptionsParser.getOptions(); final AdditionalConfigOptionsParser additionalConfigOptionsParser = new AdditionalConfigOptionsParser(config); additionalConfigOptionsParser.loadConfig(); final UserCredentials userCredentials = parseConnectionOptions(); // Connect using connection options provided from the command-line, // provided configuration, and bundled configuration connectionOptions = databaseConnector .newDatabaseConnectionOptions(userCredentials, config); }