gpt4 book ai didi

org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.setSetMethodName()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-27 14:53:05 27 4
gpt4 key购买 nike

本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.setSetMethodName()方法的一些代码示例,展示了XMLCompositeDirectCollectionMapping.setSetMethodName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLCompositeDirectCollectionMapping.setSetMethodName()方法的具体详情如下:
包路径:org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping
类名称:XMLCompositeDirectCollectionMapping
方法名:setSetMethodName

XMLCompositeDirectCollectionMapping.setSetMethodName介绍

暂无

代码示例

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
protected XMLCompositeDirectCollectionMapping getResultClasses() {
  XMLCompositeDirectCollectionMapping mapping = new XMLCompositeDirectCollectionMapping();
  mapping.setAttributeName("m_resultClassNames");
  mapping.setGetMethodName("getResultClassNames");
  mapping.setSetMethodName("setResultClassNames");
  mapping.setXPath("orm:result-class");
  return mapping;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
protected XMLCompositeDirectCollectionMapping getConnectionPoolsMapping() {
  XMLCompositeDirectCollectionMapping mapping = new XMLCompositeDirectCollectionMapping();
  mapping.setAttributeName("connectionPools");
  mapping.setGetMethodName("getConnectionPools");
  mapping.setSetMethodName("setConnectionPools");
  mapping.setXPath("orm:connection-pool");
  return mapping;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
protected XMLCompositeDirectCollectionMapping getColumnNamesMapping() {
  XMLCompositeDirectCollectionMapping columnNamesMapping = new XMLCompositeDirectCollectionMapping();
  columnNamesMapping.setAttributeName("m_columnNames");
  columnNamesMapping.setGetMethodName("getColumnNames");
  columnNamesMapping.setSetMethodName("setColumnNames");
  columnNamesMapping.setXPath("orm:column-name");
  return columnNamesMapping;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 */
protected XMLCompositeDirectCollectionMapping getResultSetMappings() {
  XMLCompositeDirectCollectionMapping mapping = new XMLCompositeDirectCollectionMapping();
  mapping.setAttributeName("m_resultSetMappings");
  mapping.setGetMethodName("getResultSetMappings");
  mapping.setSetMethodName("setResultSetMappings");
  mapping.setXPath("orm:result-set-mapping");
  return mapping;
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

protected ClassDescriptor buildInterfacePolicyDescriptor() {
  ClassDescriptor descriptor = super.buildInterfacePolicyDescriptor();
  XMLCompositeDirectCollectionMapping referenceClassMapping =
    (XMLCompositeDirectCollectionMapping)descriptor.getMappingForAttributeName("parentInterfaces");
  referenceClassMapping.setGetMethodName("getParentInterfaceNames");
  referenceClassMapping.setSetMethodName("setParentInterfaceNames");
  XMLDirectMapping implementorDescriptorMapping =
    (XMLDirectMapping)descriptor.getMappingForAttributeName("implementorDescriptor");
  implementorDescriptorMapping.setGetMethodName("getImplementorDescriptorClassName");
  implementorDescriptorMapping.setSetMethodName("setImplementorDescriptorClassName");
  return descriptor;
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

protected ClassDescriptor buildInterfacePolicyDescriptor() {
  ClassDescriptor descriptor = super.buildInterfacePolicyDescriptor();
  XMLCompositeDirectCollectionMapping referenceClassMapping = 
    (XMLCompositeDirectCollectionMapping)descriptor.getMappingForAttributeName("parentInterfaces");
  referenceClassMapping.setGetMethodName("getParentInterfaceNames");
  referenceClassMapping.setSetMethodName("setParentInterfaceNames");
  XMLDirectMapping implementorDescriptorMapping = 
    (XMLDirectMapping)descriptor.getMappingForAttributeName("implementorDescriptor");
  implementorDescriptorMapping.setGetMethodName("getImplementorDescriptorClassName");
  implementorDescriptorMapping.setSetMethodName("setImplementorDescriptorClassName");
      
  return descriptor;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

protected ClassDescriptor buildInterfacePolicyDescriptor() {
  ClassDescriptor descriptor = super.buildInterfacePolicyDescriptor();
  XMLCompositeDirectCollectionMapping referenceClassMapping = 
    (XMLCompositeDirectCollectionMapping)descriptor.getMappingForAttributeName("parentInterfaces");
  referenceClassMapping.setGetMethodName("getParentInterfaceNames");
  referenceClassMapping.setSetMethodName("setParentInterfaceNames");
  XMLDirectMapping implementorDescriptorMapping = 
    (XMLDirectMapping)descriptor.getMappingForAttributeName("implementorDescriptor");
  implementorDescriptorMapping.setGetMethodName("getImplementorDescriptorClassName");
  implementorDescriptorMapping.setSetMethodName("setImplementorDescriptorClassName");
      
  return descriptor;
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

public ClassDescriptor buildSessionEventManagerConfigDescriptor() {
  XMLDescriptor descriptor = new XMLDescriptor();
  descriptor.setJavaClass(SessionEventManagerConfig.class);
  XMLCompositeDirectCollectionMapping sessionEventListenersMapping = new XMLCompositeDirectCollectionMapping();
  sessionEventListenersMapping.setAttributeName("m_sessionEventListeners");
  sessionEventListenersMapping.setGetMethodName("getSessionEventListeners");
  sessionEventListenersMapping.setSetMethodName("setSessionEventListeners");
  sessionEventListenersMapping.setXPath("event-listener-class/text()");
  descriptor.addMapping(sessionEventListenersMapping);
  return descriptor;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

public ClassDescriptor buildSessionEventManagerConfigDescriptor() {
  XMLDescriptor descriptor = new XMLDescriptor();
  descriptor.setJavaClass(SessionEventManagerConfig.class);
  XMLCompositeDirectCollectionMapping sessionEventListenersMapping = new XMLCompositeDirectCollectionMapping();
  sessionEventListenersMapping.setAttributeName("m_sessionEventListeners");
  sessionEventListenersMapping.setGetMethodName("getSessionEventListeners");
  sessionEventListenersMapping.setSetMethodName("setSessionEventListeners");
  sessionEventListenersMapping.setXPath("event-listener-class/text()");
  descriptor.addMapping(sessionEventListenersMapping);
  return descriptor;
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public ClassDescriptor buildStructConverterConfigDescriptor() {
  XMLDescriptor descriptor = new XMLDescriptor();
  descriptor.setJavaClass(StructConverterConfig.class);
  XMLCompositeDirectCollectionMapping convertersMapping = new XMLCompositeDirectCollectionMapping();
  convertersMapping.setAttributeName("m_structConverterClasses");
  convertersMapping.setGetMethodName("getStructConverterClasses");
  convertersMapping.setSetMethodName("setStructConverterClasses");
  convertersMapping.setXPath("struct-converter/text()");
  descriptor.addMapping(convertersMapping);
  return descriptor;
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

public ClassDescriptor buildStructConverterConfigDescriptor() {
  XMLDescriptor descriptor = new XMLDescriptor();
  descriptor.setJavaClass(StructConverterConfig.class);
  XMLCompositeDirectCollectionMapping convertersMapping = new XMLCompositeDirectCollectionMapping();
  convertersMapping.setAttributeName("m_structConverterClasses");
  convertersMapping.setGetMethodName("getStructConverterClasses");
  convertersMapping.setSetMethodName("setStructConverterClasses");
  convertersMapping.setXPath("struct-converter/text()");
  descriptor.addMapping(convertersMapping);
  return descriptor;
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public ClassDescriptor buildSessionEventManagerConfigDescriptor() {
  XMLDescriptor descriptor = new XMLDescriptor();
  descriptor.setJavaClass(SessionEventManagerConfig.class);
  XMLCompositeDirectCollectionMapping sessionEventListenersMapping = new XMLCompositeDirectCollectionMapping();
  sessionEventListenersMapping.setAttributeName("m_sessionEventListeners");
  sessionEventListenersMapping.setGetMethodName("getSessionEventListeners");
  sessionEventListenersMapping.setSetMethodName("setSessionEventListeners");
  sessionEventListenersMapping.setXPath("event-listener-class/text()");
  descriptor.addMapping(sessionEventListenersMapping);
  return descriptor;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

public ClassDescriptor buildStructConverterConfigDescriptor() {
  XMLDescriptor descriptor = new XMLDescriptor();
  descriptor.setJavaClass(StructConverterConfig.class);
  XMLCompositeDirectCollectionMapping convertersMapping = new XMLCompositeDirectCollectionMapping();
  convertersMapping.setAttributeName("m_structConverterClasses");
  convertersMapping.setGetMethodName("getStructConverterClasses");
  convertersMapping.setSetMethodName("setStructConverterClasses");
  convertersMapping.setXPath("struct-converter/text()");
  descriptor.addMapping(convertersMapping);
  return descriptor;
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

public ClassDescriptor buildSessionBrokerConfigDescriptor() {
  XMLDescriptor descriptor = new XMLDescriptor();
  descriptor.setJavaClass(SessionBrokerConfig.class);
  descriptor.getInheritancePolicy().setParentClass(SessionConfig.class);
  XMLCompositeDirectCollectionMapping sessionNamesMapping = new XMLCompositeDirectCollectionMapping();
  sessionNamesMapping.setAttributeName("m_sessionNames");
  sessionNamesMapping.setGetMethodName("getSessionNames");
  sessionNamesMapping.setSetMethodName("setSessionNames");
  sessionNamesMapping.setXPath("session-name/text()");
  descriptor.addMapping(sessionNamesMapping);
  return descriptor;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

public ClassDescriptor buildSessionBrokerConfigDescriptor() {
  XMLDescriptor descriptor = new XMLDescriptor();
  descriptor.setJavaClass(SessionBrokerConfig.class);
  descriptor.getInheritancePolicy().setParentClass(SessionConfig.class);
  XMLCompositeDirectCollectionMapping sessionNamesMapping = new XMLCompositeDirectCollectionMapping();
  sessionNamesMapping.setAttributeName("m_sessionNames");
  sessionNamesMapping.setGetMethodName("getSessionNames");
  sessionNamesMapping.setSetMethodName("setSessionNames");
  sessionNamesMapping.setXPath("session-name/text()");
  descriptor.addMapping(sessionNamesMapping);
  return descriptor;
}

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public ClassDescriptor buildSessionBrokerConfigDescriptor() {
  XMLDescriptor descriptor = new XMLDescriptor();
  descriptor.setJavaClass(SessionBrokerConfig.class);
  descriptor.getInheritancePolicy().setParentClass(SessionConfig.class);
  XMLCompositeDirectCollectionMapping sessionNamesMapping = new XMLCompositeDirectCollectionMapping();
  sessionNamesMapping.setAttributeName("m_sessionNames");
  sessionNamesMapping.setGetMethodName("getSessionNames");
  sessionNamesMapping.setSetMethodName("setSessionNames");
  sessionNamesMapping.setXPath("session-name/text()");
  descriptor.addMapping(sessionNamesMapping);
  return descriptor;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

/**
 * INTERNAL:
 * XSD: struct
 */
protected ClassDescriptor buildStructDescriptor() {
  XMLDescriptor descriptor = new XMLDescriptor();
  descriptor.setJavaClass(StructMetadata.class);
  
  // Element mappings - must remain in order of definition in XML.
  XMLCompositeDirectCollectionMapping fieldsMapping = new XMLCompositeDirectCollectionMapping();
  fieldsMapping.setAttributeName("m_fields");
  fieldsMapping.setGetMethodName("getFields");
  fieldsMapping.setSetMethodName("setFields");
  fieldsMapping.setXPath("orm:field");
  descriptor.addMapping(fieldsMapping);
  
  // Attribute mappings.
  descriptor.addMapping(getNameAttributeMapping());
  
  return descriptor;
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

protected ClassDescriptor buildFetchGroupDescriptor() {
  XMLDescriptor descriptor = new XMLDescriptor();
  descriptor.setJavaClass(FetchGroup.class);
  descriptor.setDefaultRootElement("fetch-group");
  XMLDirectMapping fetchGroupNameMapping = new XMLDirectMapping();
  fetchGroupNameMapping.setAttributeName("name");
  fetchGroupNameMapping.setXPath(getPrimaryNamespaceXPath() + "name");
  descriptor.addMapping(fetchGroupNameMapping);
  XMLCompositeDirectCollectionMapping fetchGroupAttributeMapping = new XMLCompositeDirectCollectionMapping();
  CollectionContainerPolicy containerPolicy = new CollectionContainerPolicy(TreeSet.class);
  fetchGroupAttributeMapping.setContainerPolicy(containerPolicy);
  fetchGroupAttributeMapping.setAttributeName("attributes");
  fetchGroupAttributeMapping.setGetMethodName("getAttributeNames");
  fetchGroupAttributeMapping.setSetMethodName("setAttributeNames");
  fetchGroupAttributeMapping.setXPath(getPrimaryNamespaceXPath() + "fetch-group-attributes/" + getPrimaryNamespaceXPath() + "fetch-group-attribute/text()");
  descriptor.addMapping(fetchGroupAttributeMapping);
  return descriptor;
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

protected ClassDescriptor buildFetchGroupDescriptor() {
  XMLDescriptor descriptor = new XMLDescriptor();
  descriptor.setJavaClass(FetchGroup.class);
  descriptor.setDefaultRootElement("fetch-group");
  XMLDirectMapping fetchGroupNameMapping = new XMLDirectMapping();
  fetchGroupNameMapping.setAttributeName("name");
  fetchGroupNameMapping.setXPath(getPrimaryNamespaceXPath() + "name");
  descriptor.addMapping(fetchGroupNameMapping);
  XMLCompositeDirectCollectionMapping fetchGroupAttributeMapping = new XMLCompositeDirectCollectionMapping();
  CollectionContainerPolicy containerPolicy = new CollectionContainerPolicy(TreeSet.class);
  fetchGroupAttributeMapping.setContainerPolicy(containerPolicy);
  fetchGroupAttributeMapping.setAttributeName("attributes");
  fetchGroupAttributeMapping.setGetMethodName("getAttributeNames");
  fetchGroupAttributeMapping.setSetMethodName("setAttributeNames");
  fetchGroupAttributeMapping.setXPath(getPrimaryNamespaceXPath() + "fetch-group-attributes/" + getPrimaryNamespaceXPath() + "fetch-group-attribute/text()");
  descriptor.addMapping(fetchGroupAttributeMapping);
  return descriptor;
}

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

protected ClassDescriptor buildInterfacePolicyDescriptor() {
  XMLDescriptor descriptor = new XMLDescriptor();
  descriptor.setJavaClass(InterfacePolicy.class);
  descriptor.setDefaultRootElement("interfaces");
  XMLCompositeDirectCollectionMapping parentInterfacesMapping = new XMLCompositeDirectCollectionMapping();
  parentInterfacesMapping.setAttributeElementClass(Class.class);
  parentInterfacesMapping.setAttributeName("parentInterfaces");
  parentInterfacesMapping.setGetMethodName("getParentInterfaces");
  parentInterfacesMapping.setSetMethodName("setParentInterfaces");
  parentInterfacesMapping.setXPath(getPrimaryNamespaceXPath() + "interface/text()");
  descriptor.addMapping(parentInterfacesMapping);
  XMLDirectMapping implementorDescriptorMapping = new XMLDirectMapping();
  implementorDescriptorMapping.setAttributeName("implementorDescriptor");
  implementorDescriptorMapping.setGetMethodName("getImplementorDescriptor");
  implementorDescriptorMapping.setSetMethodName("setImplementorDescriptor");
  implementorDescriptorMapping.setXPath(getPrimaryNamespaceXPath() + "implementor-descriptor/text()");
  descriptor.addMapping(implementorDescriptorMapping);
  return descriptor;
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com