Package org.apache.oodt.xmlps.mapping

Examples of org.apache.oodt.xmlps.mapping.MappingField


            List<QueryElement> whereElemNames, List<QueryElement> selectElemNames) {
        Set<DatabaseTable> tables = new HashSet<DatabaseTable>();
        // add tables from where element set
        if (whereElemNames != null) {
            for (QueryElement qe : whereElemNames) {
                MappingField fld = mapping.getFieldByLocalName(qe.getValue());
                if (fld != null) {
                    DatabaseTable t = mapping.getTableByName(fld.getTableName());
                    if (t != null && !tables.contains(t)) {
                        tables.add(t);
                    }
                }
            }
        }
        // add tables from select element set
        if (selectElemNames != null) {
            for (QueryElement qe : selectElemNames) {
                MappingField fld = mapping.getFieldByLocalName(qe.getValue());
                if (fld != null) {
                    DatabaseTable t = mapping.getTableByName(fld.getTableName());
                    if (t != null && !tables.contains(t)) {
                        tables.add(t);
                    }
                }
            }
View Full Code Here

TOP

Related Classes of org.apache.oodt.xmlps.mapping.MappingField

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.