Package org.integratedmodelling.riskwiz.learning.data

Examples of org.integratedmodelling.riskwiz.learning.data.Option


            if (m_query.equals("Select * from Results0")) {
                text.append("\n\nDatabaseLoader options:\n");
                Enumeration enumi = listOptions();

                while (enumi.hasMoreElements()) {
                    Option option = (Option) enumi.nextElement();

                    text.append(option.synopsis() + '\n');
                    text.append(option.description() + '\n');
                }
                System.out.println(text);
            }
        }
        // System.out.println(result);
View Full Code Here


  public java.util.Enumeration listOptions() {
     
        FastVector newVector = new FastVector();

        newVector.addElement(
                new Option(
                        "\tThe JDBC URL to connect to.\n"
                                + "\t(default: from DatabaseUtils.props file)",
                                "url",
                                1,
                                "-url <JDBC URL>"));
    
        newVector.addElement(
                new Option(
                        "\tThe user to connect with to the database.\n"
                                + "\t(default: none)",
                                "user",
                                1,
                                "-user <name>"));
    
        newVector.addElement(
                new Option(
                        "\tThe password to connect with to the database.\n"
                                + "\t(default: none)",
                                "password",
                                1,
                                "-password <password>"));
    
        newVector.addElement(
                new Option(
                        "\tSQL query of the form\n"
                                + "\t\tSELECT <list of columns>|* FROM <table> [WHERE]\n"
                                + "\tto execute.\n"
                                + "\t(default: Select * From Results0)",
                                "Q",
                                1,
                                "-Q <query>"));
    
        newVector.addElement(
                new Option(
                        "\tList of column names uniquely defining a DB row\n"
                                + "\t(separated by ', ').\n"
                                + "\tUsed for incremental loading.\n"
                                + "\tIf not specified, the key will be determined automatically,\n"
                                + "\tif possible with the used JDBC driver.\n"
                                + "\tThe auto ID column created by the DatabaseSaver won't be loaded.",
                                "P",
                                1,
                                "-P <list of column names>"));

        newVector.addElement(
                new Option("\tSets incremental loading", "I", 0, "-I"));
    
        return  newVector.elements();
    }
View Full Code Here

TOP

Related Classes of org.integratedmodelling.riskwiz.learning.data.Option

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.