@Override public ClassDescriptor buildDatabaseLoginDescriptor() { XMLDescriptor descriptor = (XMLDescriptor)super.buildDatabaseLoginDescriptor(); XMLDirectMapping shouldBindAllParametersMapping = (XMLDirectMapping)descriptor.getMappingForAttributeName("shouldBindAllParameters"); shouldBindAllParametersMapping.setNullValue(Boolean.TRUE); return descriptor; }
@Override public ClassDescriptor buildDatabaseLoginDescriptor() { XMLDescriptor descriptor = (XMLDescriptor)super.buildDatabaseLoginDescriptor(); XMLDirectMapping shouldBindAllParametersMapping = (XMLDirectMapping)descriptor.getMappingForAttributeName("shouldBindAllParameters"); shouldBindAllParametersMapping.setNullValue(Boolean.TRUE); return descriptor; }
public ClassDescriptor buildCommandsConfigDescriptor() { XMLDescriptor descriptor = new XMLDescriptor(); descriptor.setJavaClass(CommandsConfig.class); XMLDirectMapping cacheSyncMapping = new XMLDirectMapping(); cacheSyncMapping.setAttributeName("m_cacheSync"); cacheSyncMapping.setGetMethodName("getCacheSync"); cacheSyncMapping.setSetMethodName("setCacheSync"); cacheSyncMapping.setXPath("cache-sync/text()"); cacheSyncMapping.setNullValue(Boolean.valueOf(CACHE_SYNC_DEFAULT)); descriptor.addMapping(cacheSyncMapping); return descriptor; }
public ClassDescriptor buildCommandsConfigDescriptor() { XMLDescriptor descriptor = new XMLDescriptor(); descriptor.setJavaClass(CommandsConfig.class); XMLDirectMapping cacheSyncMapping = new XMLDirectMapping(); cacheSyncMapping.setAttributeName("m_cacheSync"); cacheSyncMapping.setGetMethodName("getCacheSync"); cacheSyncMapping.setSetMethodName("setCacheSync"); cacheSyncMapping.setXPath("cache-sync/text()"); cacheSyncMapping.setNullValue(new Boolean(CACHE_SYNC_DEFAULT)); descriptor.addMapping(cacheSyncMapping); return descriptor; }
public ClassDescriptor buildCommandsConfigDescriptor() { XMLDescriptor descriptor = new XMLDescriptor(); descriptor.setJavaClass(CommandsConfig.class); XMLDirectMapping cacheSyncMapping = new XMLDirectMapping(); cacheSyncMapping.setAttributeName("m_cacheSync"); cacheSyncMapping.setGetMethodName("getCacheSync"); cacheSyncMapping.setSetMethodName("setCacheSync"); cacheSyncMapping.setXPath("cache-sync/text()"); cacheSyncMapping.setNullValue(Boolean.valueOf(CACHE_SYNC_DEFAULT)); descriptor.addMapping(cacheSyncMapping); return descriptor; }
protected ClassDescriptor buildOXXMLDescriptorDescriptor() { ClassDescriptor descriptor = super.buildOXXMLDescriptorDescriptor(); XMLDirectMapping alwaysXMLRootMapping = new XMLDirectMapping(); alwaysXMLRootMapping.setAttributeName("resultAlwaysXMLRoot"); alwaysXMLRootMapping.setGetMethodName("isResultAlwaysXMLRoot"); alwaysXMLRootMapping.setSetMethodName("setResultAlwaysXMLRoot"); alwaysXMLRootMapping.setNullValue(Boolean.FALSE); alwaysXMLRootMapping.setXPath(getPrimaryNamespaceXPath() + "result-always-xml-root/text()"); descriptor.addMapping(alwaysXMLRootMapping); return descriptor; }
@Override protected ClassDescriptor buildXMLAnyCollectionMappingDescriptor() { XMLDescriptor descriptor = (XMLDescriptor) super.buildXMLAnyCollectionMappingDescriptor(); XMLDirectMapping reuseContainerMapping = new XMLDirectMapping(); reuseContainerMapping.setAttributeName("reuseContainer"); reuseContainerMapping.setGetMethodName("getReuseContainer"); reuseContainerMapping.setSetMethodName("setReuseContainer"); reuseContainerMapping.setXPath(getPrimaryNamespaceXPath() + "reuse-container/text()"); reuseContainerMapping.setNullValue(Boolean.FALSE); descriptor.addMapping(reuseContainerMapping); return descriptor; }
@Override protected ClassDescriptor buildXMLChoiceCollectionMappingDescriptor() { XMLDescriptor descriptor = (XMLDescriptor) super.buildXMLChoiceCollectionMappingDescriptor(); XMLDirectMapping reuseContainerMapping = new XMLDirectMapping(); reuseContainerMapping.setAttributeName("reuseContainer"); reuseContainerMapping.setGetMethodName("getReuseContainer"); reuseContainerMapping.setSetMethodName("setReuseContainer"); reuseContainerMapping.setXPath(getPrimaryNamespaceXPath() + "reuse-container/text()"); reuseContainerMapping.setNullValue(Boolean.FALSE); descriptor.addMapping(reuseContainerMapping); return descriptor; }
@Override protected ClassDescriptor buildXMLAnyObjectMappingDescriptor() { XMLDescriptor descriptor = (XMLDescriptor)super.buildXMLAnyObjectMappingDescriptor(); XMLDirectMapping xmlRootMapping = new XMLDirectMapping(); xmlRootMapping.setAttributeName("useXMLRoot"); xmlRootMapping.setGetMethodName("usesXMLRoot"); xmlRootMapping.setSetMethodName("setUseXMLRoot"); xmlRootMapping.setXPath(getPrimaryNamespaceXPath() + "use-xml-root/text()"); xmlRootMapping.setNullValue(Boolean.FALSE); descriptor.addMapping(xmlRootMapping); return descriptor; }
@Override protected ClassDescriptor buildXMLFragmentCollectionMappingDescriptor() { XMLDescriptor descriptor = (XMLDescriptor) super.buildXMLFragmentCollectionMappingDescriptor(); XMLDirectMapping reuseContainerMapping = new XMLDirectMapping(); reuseContainerMapping.setAttributeName("reuseContainer"); reuseContainerMapping.setGetMethodName("getReuseContainer"); reuseContainerMapping.setSetMethodName("setReuseContainer"); reuseContainerMapping.setXPath(getPrimaryNamespaceXPath() + "reuse-container/text()"); reuseContainerMapping.setNullValue(Boolean.FALSE); descriptor.addMapping(reuseContainerMapping); return descriptor; }
@Override protected ClassDescriptor buildXMLFieldDescriptor() { XMLDescriptor descriptor = (XMLDescriptor) super.buildXMLFieldDescriptor(); XMLDirectMapping isRequiredMapping = new XMLDirectMapping(); isRequiredMapping.setAttributeName("isRequired"); isRequiredMapping.setGetMethodName("isRequired"); isRequiredMapping.setSetMethodName("setRequired"); isRequiredMapping.setXPath(getPrimaryNamespaceXPath() + "@is-required"); isRequiredMapping.setNullValue(Boolean.FALSE); descriptor.addMapping(isRequiredMapping); return descriptor; }
@Override protected ClassDescriptor buildXMLAnyCollectionMappingDescriptor() { XMLDescriptor descriptor = (XMLDescriptor) super.buildXMLAnyCollectionMappingDescriptor(); XMLDirectMapping reuseContainerMapping = new XMLDirectMapping(); reuseContainerMapping.setAttributeName("reuseContainer"); reuseContainerMapping.setGetMethodName("getReuseContainer"); reuseContainerMapping.setSetMethodName("setReuseContainer"); reuseContainerMapping.setXPath(getPrimaryNamespaceXPath() + "reuse-container/text()"); reuseContainerMapping.setNullValue(Boolean.FALSE); descriptor.addMapping(reuseContainerMapping); return descriptor; }
@Override protected ClassDescriptor buildXMLAnyObjectMappingDescriptor() { XMLDescriptor descriptor = (XMLDescriptor)super.buildXMLAnyObjectMappingDescriptor(); XMLDirectMapping xmlRootMapping = new XMLDirectMapping(); xmlRootMapping.setAttributeName("useXMLRoot"); xmlRootMapping.setGetMethodName("usesXMLRoot"); xmlRootMapping.setSetMethodName("setUseXMLRoot"); xmlRootMapping.setXPath(getPrimaryNamespaceXPath() + "use-xml-root/text()"); xmlRootMapping.setNullValue(Boolean.FALSE); descriptor.addMapping(xmlRootMapping); return descriptor; }
@Override protected ClassDescriptor buildXMLChoiceCollectionMappingDescriptor() { XMLDescriptor descriptor = (XMLDescriptor) super.buildXMLChoiceCollectionMappingDescriptor(); XMLDirectMapping reuseContainerMapping = new XMLDirectMapping(); reuseContainerMapping.setAttributeName("reuseContainer"); reuseContainerMapping.setGetMethodName("getReuseContainer"); reuseContainerMapping.setSetMethodName("setReuseContainer"); reuseContainerMapping.setXPath(getPrimaryNamespaceXPath() + "reuse-container/text()"); reuseContainerMapping.setNullValue(Boolean.FALSE); descriptor.addMapping(reuseContainerMapping); return descriptor; }
@Override protected ClassDescriptor buildXMLFragmentCollectionMappingDescriptor() { XMLDescriptor descriptor = (XMLDescriptor) super.buildXMLFragmentCollectionMappingDescriptor(); XMLDirectMapping reuseContainerMapping = new XMLDirectMapping(); reuseContainerMapping.setAttributeName("reuseContainer"); reuseContainerMapping.setGetMethodName("getReuseContainer"); reuseContainerMapping.setSetMethodName("setReuseContainer"); reuseContainerMapping.setXPath(getPrimaryNamespaceXPath() + "reuse-container/text()"); reuseContainerMapping.setNullValue(Boolean.FALSE); descriptor.addMapping(reuseContainerMapping); return descriptor; }
protected ClassDescriptor buildOXXMLDescriptorDescriptor() { ClassDescriptor descriptor = super.buildOXXMLDescriptorDescriptor(); XMLDirectMapping alwaysXMLRootMapping = new XMLDirectMapping(); alwaysXMLRootMapping.setAttributeName("resultAlwaysXMLRoot"); alwaysXMLRootMapping.setGetMethodName("isResultAlwaysXMLRoot"); alwaysXMLRootMapping.setSetMethodName("setResultAlwaysXMLRoot"); alwaysXMLRootMapping.setNullValue(Boolean.FALSE); alwaysXMLRootMapping.setXPath(getPrimaryNamespaceXPath() + "result-always-xml-root/text()"); descriptor.addMapping(alwaysXMLRootMapping); return descriptor; }
@Override protected ClassDescriptor buildXMLCompositeDirectCollectionMappingDescriptor() { XMLDescriptor descriptor = (XMLDescriptor)super.buildXMLCompositeDirectCollectionMappingDescriptor(); XMLDirectMapping isCDATAMapping = new XMLDirectMapping(); isCDATAMapping.setAttributeName("isCDATA"); isCDATAMapping.setGetMethodName("isCDATA"); isCDATAMapping.setSetMethodName("setIsCDATA"); isCDATAMapping.setXPath(getPrimaryNamespaceXPath() + "is-cdata/text()"); isCDATAMapping.setNullValue(Boolean.FALSE); descriptor.addMapping(isCDATAMapping); return descriptor; }
@Override protected ClassDescriptor buildXMLCompositeDirectCollectionMappingDescriptor() { XMLDescriptor descriptor = (XMLDescriptor)super.buildXMLCompositeDirectCollectionMappingDescriptor(); XMLDirectMapping isCDATAMapping = new XMLDirectMapping(); isCDATAMapping.setAttributeName("isCDATA"); isCDATAMapping.setGetMethodName("isCDATA"); isCDATAMapping.setSetMethodName("setIsCDATA"); isCDATAMapping.setXPath(getPrimaryNamespaceXPath() + "is-cdata/text()"); isCDATAMapping.setNullValue(Boolean.FALSE); descriptor.addMapping(isCDATAMapping); return descriptor; }
protected ClassDescriptor buildOXXMLDescriptorDescriptor() { ClassDescriptor descriptor = super.buildOXXMLDescriptorDescriptor(); XMLDirectMapping alwaysXMLRootMapping = new XMLDirectMapping(); alwaysXMLRootMapping.setAttributeName("resultAlwaysXMLRoot"); alwaysXMLRootMapping.setGetMethodName("isResultAlwaysXMLRoot"); alwaysXMLRootMapping.setSetMethodName("setResultAlwaysXMLRoot"); alwaysXMLRootMapping.setNullValue(Boolean.FALSE); alwaysXMLRootMapping.setXPath(getPrimaryNamespaceXPath() + "result-always-xml-root/text()"); descriptor.addMapping(alwaysXMLRootMapping); return descriptor; }
protected ClassDescriptor buildNullPolicyDescriptor() { XMLDescriptor aDescriptor = new XMLDescriptor(); aDescriptor.setJavaClass(NullPolicy.class); aDescriptor.getInheritancePolicy().setParentClass(AbstractNullPolicy.class); // This boolean can only be set on the NullPolicy implementation even though the field is on the abstract class XMLDirectMapping xnranMapping = new XMLDirectMapping(); xnranMapping.setAttributeName("isSetPerformedForAbsentNode"); xnranMapping.setXPath(getPrimaryNamespaceXPath() + "is-set-performed-for-absent-node/text()"); xnranMapping.setNullValue(Boolean.TRUE); aDescriptor.addMapping(xnranMapping); return aDescriptor; }