Package org.jitterbit.integration.database.info

Examples of org.jitterbit.integration.database.info.DatabaseView


    }

    private static List<DatabaseView> createViews() {
        List<DatabaseView> views = new ArrayList<DatabaseView>();
        for (int n = 0; n < VIEW_NAMES.length; ++n) {
            DatabaseView v = new DatabaseView(VIEW_NAMES[n], "");
            for (DatabaseColumn c : createColumns(v, (n % 2) == 0)) {
                v.addColumn(c);
            }
            views.add(v);
        }
        return views;
    }
View Full Code Here


        switch (type) {
        case TABLE:
            table = new DatabaseTable(name, schema);
            break;
        case VIEW:
            table = new DatabaseView(name, schema);
            break;
        case MANUAL_SQL:
            //String manualSql = deResolver.resolve(name);
            String manualSql=name;
            table = new ManualSqlStatement(manualSql);
View Full Code Here

        String name = rs.getString(3);
        String type = rs.getString(4);
        if (TABLE.equals(type)) {
            return new DatabaseTable(name, schema);
        } else if (VIEW.equals(type)) {
            return new DatabaseView(name, schema);
        }
        // XXX: I'd like to throw a RuntimeException here, but that would change the behavior
        // of the code and I don't want to do that so close to release.
        // When (if...) we make that change we can get rid of the check-for-null in the calling
        // method.
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.database.info.DatabaseView

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.