Examples of useMapClass()


Examples of org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping.useMapClass()

        queryKeysMapping.setAttributeName("queryKeys");
        queryKeysMapping.setReferenceClass(QueryKey.class);
        queryKeysMapping.setXPath(getPrimaryNamespaceXPath() + "query-keys/" + getPrimaryNamespaceXPath() + "query-key");
        queryKeysMapping.setSetMethodName("setQueryKeys");
        queryKeysMapping.setGetMethodName("getQueryKeys");
        queryKeysMapping.useMapClass(HashMap.class, "getName");
        descriptor.addMapping(queryKeysMapping);

        XMLCompositeObjectMapping cmpPolicyMapping = new XMLCompositeObjectMapping();
        cmpPolicyMapping.setAttributeName("cmpPolicy");
        cmpPolicyMapping.setGetMethodName("getCMPPolicy");
View Full Code Here

Examples of org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping.useMapClass()

        descriptor.addMapping(defaultFetchGroupMapping);

        XMLCompositeCollectionMapping fetchGroupManagerMapping = new XMLCompositeCollectionMapping();
        fetchGroupManagerMapping.setAttributeName("fetchGroups");
        fetchGroupManagerMapping.setReferenceClass(FetchGroup.class);
        fetchGroupManagerMapping.useMapClass(HashMap.class, "getName");
        fetchGroupManagerMapping.setXPath(getPrimaryNamespaceXPath() + "fetch-group");
        descriptor.addMapping(fetchGroupManagerMapping);

        return descriptor;
    }
View Full Code Here

Examples of org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping.useMapClass()

        queryKeysMapping.setAttributeName("queryKeys");
        queryKeysMapping.setReferenceClass(QueryKey.class);
        queryKeysMapping.setXPath(getPrimaryNamespaceXPath() + "query-keys/" + getPrimaryNamespaceXPath() + "query-key");
        queryKeysMapping.setSetMethodName("setQueryKeys");
        queryKeysMapping.setGetMethodName("getQueryKeys");
        queryKeysMapping.useMapClass(HashMap.class, "getName");
        descriptor.addMapping(queryKeysMapping);

        XMLCompositeObjectMapping cmpPolicyMapping = new XMLCompositeObjectMapping();
        cmpPolicyMapping.setAttributeName("cmpPolicy");
        cmpPolicyMapping.setGetMethodName("getCMPPolicy");
View Full Code Here

Examples of org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping.useMapClass()

        descriptor.addMapping(defaultFetchGroupMapping);

        XMLCompositeCollectionMapping fetchGroupManagerMapping = new XMLCompositeCollectionMapping();
        fetchGroupManagerMapping.setAttributeName("fetchGroups");
        fetchGroupManagerMapping.setReferenceClass(FetchGroup.class);
        fetchGroupManagerMapping.useMapClass(HashMap.class, "getName");
        fetchGroupManagerMapping.setXPath(getPrimaryNamespaceXPath() + "fetch-group");
        descriptor.addMapping(fetchGroupManagerMapping);

        return descriptor;
    }
View Full Code Here

Examples of org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping.useMapClass()

        queryKeysMapping.setAttributeName("queryKeys");
        queryKeysMapping.setReferenceClass(QueryKey.class);
        queryKeysMapping.setXPath(getPrimaryNamespaceXPath() + "query-keys/" + getPrimaryNamespaceXPath() + "query-key");
        queryKeysMapping.setSetMethodName("setQueryKeys");
        queryKeysMapping.setGetMethodName("getQueryKeys");
        queryKeysMapping.useMapClass(HashMap.class, "getName");
        descriptor.addMapping(queryKeysMapping);

        XMLCompositeObjectMapping cmpPolicyMapping = new XMLCompositeObjectMapping();
        cmpPolicyMapping.setAttributeName("cmpPolicy");
        cmpPolicyMapping.setGetMethodName("getCMPPolicy");
View Full Code Here

Examples of org.eclipse.persistence.oxm.mappings.XMLCompositeCollectionMapping.useMapClass()

        descriptor.addMapping(defaultFetchGroupMapping);

        XMLCompositeCollectionMapping fetchGroupManagerMapping = new XMLCompositeCollectionMapping();
        fetchGroupManagerMapping.setAttributeName("fetchGroups");
        fetchGroupManagerMapping.setReferenceClass(FetchGroup.class);
        fetchGroupManagerMapping.useMapClass(HashMap.class, "getName");
        fetchGroupManagerMapping.setXPath(getPrimaryNamespaceXPath() + "fetch-group");
        descriptor.addMapping(fetchGroupManagerMapping);

        return descriptor;
    }
View Full Code Here

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

       
        if(property.isMap()){
          JavaClass mapType = property.getType();
          if(mapType.isInterface()){           
            mapping.useMapClass("java.util.HashMap");
          }else{
              mapping.useMapClass(property.getType().getName());
          }
         
        }else{
View Full Code Here

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

        if(property.isMap()){
          JavaClass mapType = property.getType();
          if(mapType.isInterface()){           
            mapping.useMapClass("java.util.HashMap");
          }else{
              mapping.useMapClass(property.getType().getName());
          }
         
        }else{
          collectionType = containerClassImpl(collectionType);
            mapping.useCollectionClass(helper.getClassForJavaClass(collectionType));
View Full Code Here

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

       
        if(property.isMap()){
          JavaClass mapType = property.getType();
          if(mapType.isInterface()){           
            mapping.useMapClass("java.util.HashMap");
          }else{
              mapping.useMapClass(property.getType().getName());
          }
         
        }else{
View Full Code Here

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

        if(property.isMap()){
          JavaClass mapType = property.getType();
          if(mapType.isInterface()){           
            mapping.useMapClass("java.util.HashMap");
          }else{
              mapping.useMapClass(property.getType().getName());
          }
         
        }else{
          collectionType = containerClassImpl(collectionType);
            mapping.useCollectionClass(helper.getClassForJavaClass(collectionType));
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.