Examples of useCollectionClass()


Examples of org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.useCollectionClass()

        xmlDescriptor.addMapping(loggingMapping);

        XMLCompositeDirectCollectionMapping createdMapping = new XMLCompositeDirectCollectionMapping();
        createdMapping.setAttributeName("createdXPaths");
        createdMapping.setXPath("@create");
        createdMapping.useCollectionClass(ArrayList.class);
        ((XMLField)createdMapping.getField()).setUsesSingleNode(true);
        xmlDescriptor.addMapping(createdMapping);

        XMLCompositeDirectCollectionMapping deletedMapping = new XMLCompositeDirectCollectionMapping();
        deletedMapping.setAttributeName("deletedXPaths");
View Full Code Here

Examples of org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.useCollectionClass()

        xmlDescriptor.addMapping(createdMapping);

        XMLCompositeDirectCollectionMapping deletedMapping = new XMLCompositeDirectCollectionMapping();
        deletedMapping.setAttributeName("deletedXPaths");
        deletedMapping.setXPath("@delete");
        deletedMapping.useCollectionClass(ArrayList.class);
        ((XMLField)deletedMapping.getField()).setUsesSingleNode(true);
        xmlDescriptor.addMapping(deletedMapping);

        XMLAnyCollectionMapping aChangeMapping = new XMLAnyCollectionMapping();
        aChangeMapping.setAttributeName("modifiedDoms");
View Full Code Here

Examples of org.eclipse.persistence.oxm.mappings.XMLInverseReferenceMapping.useCollectionClass()

        invMapping.setMappedBy(property.getInverseReferencePropertyName());

        if (isCollection) {
            JavaClass collectionType = property.getType();
            collectionType = containerClassImpl(collectionType);
            invMapping.useCollectionClass(helper.getClassForJavaClass(collectionType));
        }
       
        if(property.isWriteableInverseReference()){
             if(isCollection){            
                 JavaClass descriptorClass = helper.getJavaClass(descriptor.getJavaClassName());
View Full Code Here

Examples of org.eclipse.persistence.oxm.mappings.XMLVariableXPathCollectionMapping.useCollectionClass()

              mapping.useMapClass(property.getType().getName());
          }
         
        }else{
          collectionType = containerClassImpl(collectionType);
            mapping.useCollectionClass(helper.getClassForJavaClass(collectionType));
        }
      
       
        return mapping;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.