Package oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors

Examples of oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ManyToManyAccessor


        String nodeName = node.getLocalName();
       
        if (nodeName.equals(XMLConstants.ONE_TO_ONE)) {
            return new XMLOneToOneAccessor(accessibleObject, node, this);
        } else if (nodeName.equals(XMLConstants.MANY_TO_ONE)) {
            return new XMLManyToOneAccessor(accessibleObject, node, this);
        } else if (nodeName.equals(XMLConstants.ONE_TO_MANY)) {
            if (MetadataHelper.isSupportedCollectionClass(accessibleObject.getRawClass())) {
                return new XMLOneToManyAccessor(accessibleObject, node, this);       
            } else {
                m_validator.throwInvalidCollectionTypeForRelationship(getJavaClass(), accessibleObject.getRawClass(), getAttributeName());
View Full Code Here


                    // us before the next entity in the hierarchy.
                    break;
                } else if (m_project.hasMappedSuperclass(parent)) {
                    Node node = m_project.getMappedSuperclassNode(parent);
                    XMLHelper helper = m_project.getMappedSuperclassHelper(parent);                   
                    m_mappedSuperclasses.add(new XMLMappedSuperclassAccessor(new MetadataClass(parent), node, helper, m_processor, m_descriptor));
                } else if (isAnnotationPresent(MappedSuperclass.class, parent)) {
                    m_mappedSuperclasses.add(new MappedSuperclassAccessor(new MetadataClass(parent), m_processor, m_descriptor));
                }
               
                parent = parent.getSuperclass();
View Full Code Here

            return new XMLOneToOneAccessor(accessibleObject, node, this);
        } else if (nodeName.equals(XMLConstants.MANY_TO_ONE)) {
            return new XMLManyToOneAccessor(accessibleObject, node, this);
        } else if (nodeName.equals(XMLConstants.ONE_TO_MANY)) {
            if (MetadataHelper.isSupportedCollectionClass(accessibleObject.getRawClass())) {
                return new XMLOneToManyAccessor(accessibleObject, node, this);       
            } else {
                m_validator.throwInvalidCollectionTypeForRelationship(getJavaClass(), accessibleObject.getRawClass(), getAttributeName());
                return null;
            }
        } else if (nodeName.equals(XMLConstants.MANY_TO_MANY)) {
View Full Code Here

        }
       
        String nodeName = node.getLocalName();
       
        if (nodeName.equals(XMLConstants.ONE_TO_ONE)) {
            return new XMLOneToOneAccessor(accessibleObject, node, this);
        } else if (nodeName.equals(XMLConstants.MANY_TO_ONE)) {
            return new XMLManyToOneAccessor(accessibleObject, node, this);
        } else if (nodeName.equals(XMLConstants.ONE_TO_MANY)) {
            if (MetadataHelper.isSupportedCollectionClass(accessibleObject.getRawClass())) {
                return new XMLOneToManyAccessor(accessibleObject, node, this);       
View Full Code Here

        } else if (nodeName.equals(XMLConstants.EMBEDDED)) {
            return new XMLEmbeddedAccessor(accessibleObject, node, this);
        } else if (nodeName.equals(XMLConstants.EMBEDDED_ID)) {
            return new XMLEmbeddedIdAccessor(accessibleObject, node, this);
        } else if (nodeName.equals(XMLConstants.TRANSIENT)) {
            return new XMLTransientAccessor(accessibleObject, node, this);
        } else {
            return new XMLBasicAccessor(accessibleObject, node, this);
        }
    }
View Full Code Here

     */
    protected MetadataColumn getColumn(String loggingCtx) {
        Node node = m_helper.getNode(m_node, XMLConstants.COLUMN);
       
        if (node != null) {
            return new XMLColumn(node, m_helper, this);
        } else {
            return super.getColumn(loggingCtx);
        }
    }
View Full Code Here

    protected void processAttributeOverrides(AggregateObjectMapping mapping) {
        NodeList nodes = m_helper.getNodes(m_node, XMLConstants.ATTRIBUTE_OVERRIDE);
       
      if (nodes != null) {
        for (int i = 0; i < nodes.getLength(); i++) {
                processAttributeOverride(mapping, new XMLColumn(nodes.item(i), m_helper, getAnnotatedElement()));
        }
      }
    }
View Full Code Here

    protected void processAttributeOverrides(AggregateObjectMapping mapping) {
        NodeList nodes = m_helper.getNodes(m_node, XMLConstants.ATTRIBUTE_OVERRIDE);
       
      if (nodes != null) {
        for (int i = 0; i < nodes.getLength(); i++) {
                processAttributeOverride(mapping, new XMLColumn(nodes.item(i), m_helper, getAnnotatedElement()));
        }
      }
    }
View Full Code Here

    protected void processAttributeOverrides() {
        NodeList nodes = m_helper.getNodes(m_node, XMLConstants.ATTRIBUTE_OVERRIDE);
       
        if (nodes != null) {
            for (int i = 0; i < nodes.getLength(); i++) {
                processAttributeOverride(new XMLColumn(nodes.item(i), m_helper, getAnnotatedElement()));
            }
        }
       
       
        // Now, Process the attribute override annotations second.
View Full Code Here

        Node node = m_helper.getNode(m_node, XMLConstants.DISCRIMINATOR_COLUMN);
       
        if (node == null) {
            super.processDiscriminatorColumn();
        } else {
            processDiscriminatorColumn(new XMLDiscriminatorColumn(node, m_helper));
        }
    }
View Full Code Here

TOP

Related Classes of oracle.toplink.essentials.internal.ejb.cmp3.metadata.accessors.ManyToManyAccessor

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.