Package org.objectweb.speedo.metadata

Examples of org.objectweb.speedo.metadata.SpeedoJoinColumn


                ((SpeedoJoinColumn) sif.join.columns.get(0)).column.name =
                    ((SpeedoJoinColumn) sf.join.columns.get(0)).column.name;
            } else {
                for (Iterator it = sf.moClass.getPKFields().iterator(); it.hasNext();) {
                    SpeedoField pkField = (SpeedoField) it.next();
                    SpeedoJoinColumn parentjc = sf.getFKJoinColumn(pkField.columns[0].name);
                    SpeedoJoinColumn newjc = sif.getFKJoinColumn(pkField.columns[0].name);
                    newjc.column.name = parentjc.column.name;
                }
            }
        }
       
View Full Code Here


     */
    private List getFKJoinColumn(String pk2sfk, SpeedoTable table, SpeedoClass rclass) {
        SpeedoColumn[] cols = getFKColumn(pk2sfk, table, rclass);
        ArrayList res = new ArrayList(cols.length);
        for (int i = 0; i < cols.length; i++) {
            res.add(new SpeedoJoinColumn(cols[i]));
        }
        return res;
    }
View Full Code Here

      si.objectidJClass = null;
      si.sequenceName = null;
      si.strategy = SpeedoIdentity.DATASTORE_LONG;
      si.columns = null;
    } else if (se instanceof SpeedoJoinColumn) {
      SpeedoJoinColumn sjc = (SpeedoJoinColumn) se;
      sjc.column = null;
      sjc.targetColumn = null;
      sjc.targetField = null;
    } else if (se instanceof SpeedoInheritance) {
      SpeedoInheritance si = (SpeedoInheritance) se;
View Full Code Here

      si.objectidJClass = null;
      si.sequenceName = null;
      si.strategy = SpeedoIdentity.NO_ID;
      si.columns = null;
    } else if (se instanceof SpeedoJoinColumn) {
      SpeedoJoinColumn sjc = (SpeedoJoinColumn) se;
      sjc.column = null;
      sjc.targetColumn = null;
      sjc.targetField = null;
    } else if (se instanceof SpeedoInheritance) {
      SpeedoInheritance si = (SpeedoInheritance) se;
View Full Code Here

        j.setUnique(getBooleanAttributeValue(joinNode, "unique", j.getUnique()));
        j.setIndexed(getBooleanAttributeValue(joinNode, "indexed", j.getIndexed()));
        j.setOuter(getBooleanAttributeValue(joinNode, "indexed", j.getOuter()));
        n = joinNode.getAttributes().getNamedItem("column");
        if (n != null) {
          SpeedoJoinColumn sjc = new SpeedoJoinColumn(new SpeedoColumn(n.getNodeValue()));
            j.columns.add(sjc);
        }
        Map joinChildren = groupChildrenByName(joinNode);
        List l = (List) joinChildren.get("column");
        if (l != null) {
            for (int i = 0; i < l.size(); i++) {
                j.columns.add(new SpeedoJoinColumn(getColumn((Node) l.get(i))));
            }
        }
        n = joinNode.getAttributes().getNamedItem("table");
        String tableName = null;
        if (n != null) {
View Full Code Here

        j.setOuter(getBooleanAttributeValue(node, "indexed", j.getOuter()));
        n = node.getAttributes().getNamedItem("column");
        if (n == null) {
            SpeedoColumn col = new SpeedoColumn();
            col.name = n.getNodeValue();
            SpeedoJoinColumn sjc = new SpeedoJoinColumn();
            sjc.column = col;
            j.columns.add(sjc);
        }
        n = node.getAttributes().getNamedItem("table");
        String tableName = null;
View Full Code Here

        if (mo instanceof SpeedoJoin) {
            SpeedoJoin j = (SpeedoJoin) mo;
            if (j.extTable != null) {
                c.table = j.extTable;
            }
            SpeedoJoinColumn sjc = new SpeedoJoinColumn();
            sjc.column = c;
            j.columns.add(sjc);
            logger.log(BasicLevel.DEBUG, "add column " + c.name + " to a join");
        } else if (mo instanceof SpeedoField) { //class.field.column
            SpeedoField f = (SpeedoField) mo;
View Full Code Here

TOP

Related Classes of org.objectweb.speedo.metadata.SpeedoJoinColumn

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.