Package org.jitterbit.integration.database.info

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


    @Override
    public DatabaseObject apply(WsJdbcDatabaseObject wsObj) {
        String schema = wsObj.getSchemaName();
        String name = wsObj.getObjectName();
        DatabaseObjectType type = DatabaseObjectType.valueOf(wsObj.getObjectType());
        DatabaseObject table;
        switch (type) {
        case TABLE:
            table = new DatabaseTable(name, schema);
            break;
        case VIEW:
View Full Code Here


        converted = Maps.newLinkedHashMap();
    }
   
    public KList<TableRelationship> convert() {
        for (DbTranRelations.Relation r : serverForm) {
            DatabaseObject parent = getParentObject(r);
            if (parent == null) {
                continue;
            }
            DatabaseObject child = getChildObject(r);
            if (child == null) {
                continue;
            }
            DatabaseColumn parentField = getParentField(parent, r);
            if (parentField == null) {
View Full Code Here

    private List<DatabaseObject> collectTables(DatabaseMetaData metaData) throws SQLException {
        List<DatabaseObject> objs = Lists.newArrayList();
        ResultSet rs = metaData.getTables(null, null, searchFilter.getSearchString(), searchFilter.getObjectTypeNames());
        try {
            while (rs.next()) {
                DatabaseObject o = createTableObject(rs);
                if (o != null) {
                    objs.add(o);
                }
            }
            return objs;
View Full Code Here

TOP

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

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.