Package org.objectweb.speedo.metadata

Examples of org.objectweb.speedo.metadata.SpeedoInheritance


                + ((SpeedoClass) cl).getFQName());
            continue;
          }
          ((SpeedoClass) cl).mainTable = new SpeedoTable();
          ((SpeedoClass) cl).mainTable.name = "main_table_to_be_defined_later";
          ((SpeedoClass) cl).inheritance = new SpeedoInheritance();
          ((SpeedoClass) cl).inheritance.clazz = null;
          ((SpeedoClass) cl).inheritance.superClassName = null;
          Class superc = clazz.getSuperclass();
          if (superc == null) { // No superclass
            parselist.add((SpeedoClass) cl);
View Full Code Here


    if (a == null) {
      return;
    }
    if (sc.inheritance == null) {
      // This is a root class in an inheritance hierarchy
      sc.inheritance = new SpeedoInheritance();
      sc.inheritance.clazz = sc;
      sc.inheritance.superClassName = null;
      sc.inheritance.discriminator = new SpeedoDiscriminator();
      String cn = a.name();
      if (cn.equals("")) {
View Full Code Here

    if (a == null) {
      return;
    }
    if (sc.inheritance == null) {
      // This is a root class in an inheritance hierarchy
      sc.inheritance = new SpeedoInheritance();
      sc.inheritance.clazz = sc;
      sc.inheritance.superClassName = null;
    }
    switch (a.strategy()) {
    case SINGLE_TABLE: // filtered inheritance mapping
View Full Code Here

                sc.mainTable.schema = null;
            } else if (INHERITANCE_FILTER.equals(se.key)) {
                setDiscriminatorElement(sc, se.value);
            } else if (INHERITANCE_KEY.equals(se.key)) {
                if (sc.inheritance == null) {
                    sc.inheritance = new SpeedoInheritance(sc);
                }
                if (sc.inheritance.discriminatorValues == null) {
                    sc.inheritance.discriminatorValues = new HashMap();
                }
                SpeedoDiscriminator sd = sc.inheritance.discriminator;
View Full Code Here

        }
        return sm.keyColumns;
    }
    private SpeedoDiscriminator setDiscriminatorElement(SpeedoClass sc, String value) {
        if (sc.inheritance == null) {
            sc.inheritance = new SpeedoInheritance();
        }
        if (sc.inheritance.discriminator == null) {
            sc.inheritance.discriminator = new SpeedoDiscriminator();
        }
        SpeedoDiscriminator sd = sc.inheritance.discriminator;
View Full Code Here

      SpeedoJoinColumn sjc = (SpeedoJoinColumn) se;
      sjc.column = null;
      sjc.targetColumn = null;
      sjc.targetField = null;
    } else if (se instanceof SpeedoInheritance) {
      SpeedoInheritance si = (SpeedoInheritance) se;
      si.clazz = null;
      si.discriminator = null;
      si.discriminatorValues = null;
      si.join = null;
      si.remappedInheritedFields = null;
View Full Code Here

      SpeedoJoinColumn sjc = (SpeedoJoinColumn) se;
      sjc.column = null;
      sjc.targetColumn = null;
      sjc.targetField = null;
    } else if (se instanceof SpeedoInheritance) {
      SpeedoInheritance si = (SpeedoInheritance) se;
      si.clazz = null;
      //si.discriminator = ;
      si.discriminatorValues = null;
      si.join = null;
      si.remappedInheritedFields = null;
View Full Code Here

             
        //attribute persistence-capable-superclass
        n = classNode.getAttributes().getNamedItem("persistence-capable-superclass");
        if (n != null) {
            if (c.inheritance == null) {
                c.inheritance = new SpeedoInheritance(c);
            }
            c.inheritance.superClassName = n.getNodeValue();
        }
        //attribute table
        n = classNode.getAttributes().getNamedItem("table");
View Full Code Here

                + "identity=" + ident);
        }
    }
    private void treatInheritance(Node inhNode, SpeedoClass moClass) throws SpeedoException {
        if (moClass.inheritance == null) {
            moClass.inheritance = new SpeedoInheritance(moClass);
        }
        //<!ATTLIST inheritance strategy CDATA #IMPLIED>
        Node n = inhNode.getAttributes().getNamedItem("strategy");
        if (n != null) {
            moClass.inheritance.strategy =
View Full Code Here

             
        //attribute persistence-capable-superclass
        n = node.getAttributes().getNamedItem("persistence-capable-superclass");
        if (n != null) {
            if (c.inheritance == null) {
                c.inheritance = new SpeedoInheritance();
            }
            c.inheritance.superClassName = n.getNodeValue();
        }
        //attribute table
        n = node.getAttributes().getNamedItem("table");
View Full Code Here

TOP

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

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.