gpt4 book ai didi

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

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

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

XMLCompositeDirectCollectionMapping.setAttributeName介绍

暂无

代码示例

代码示例来源: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

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/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: 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: 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

private XMLDescriptor buildUnionDescriptor() {
  XMLDescriptor descriptor = new XMLDescriptor();
  descriptor.setJavaClass(Union.class);
  descriptor.setNamespaceResolver(namespaceResolver);
  XMLCompositeDirectCollectionMapping memberTypeMapping = new XMLCompositeDirectCollectionMapping();
  memberTypeMapping.setAttributeName("memberTypes");
  memberTypeMapping.setXPath("@memberTypes");
  memberTypeMapping.setUsesSingleNode(true);
  descriptor.addMapping(memberTypeMapping);
  XMLCompositeCollectionMapping simpleTypesMapping = new XMLCompositeCollectionMapping();
  simpleTypesMapping.setReferenceClass(SimpleType.class);
  simpleTypesMapping.setAttributeName("simpleTypes");
  simpleTypesMapping.setXPath(Constants.SCHEMA_PREFIX + ":" + "simpleType");
  descriptor.addMapping(simpleTypesMapping);
  return descriptor;
}

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

private XMLDescriptor buildUnionDescriptor() {
  XMLDescriptor descriptor = new XMLDescriptor();
  descriptor.setJavaClass(Union.class);
  descriptor.setNamespaceResolver(namespaceResolver);
  XMLCompositeDirectCollectionMapping memberTypeMapping = new XMLCompositeDirectCollectionMapping();
  memberTypeMapping.setAttributeName("memberTypes");
  memberTypeMapping.setXPath("@memberTypes");
  memberTypeMapping.setUsesSingleNode(true);
  descriptor.addMapping(memberTypeMapping);
  XMLCompositeCollectionMapping simpleTypesMapping = new XMLCompositeCollectionMapping();
  simpleTypesMapping.setReferenceClass(SimpleType.class);
  simpleTypesMapping.setAttributeName("simpleTypes");
  simpleTypesMapping.setXPath(XMLConstants.SCHEMA_PREFIX + ":" + "simpleType");
  descriptor.addMapping(simpleTypesMapping);
  return descriptor;
}

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

private XMLDescriptor buildUnionDescriptor() {
  XMLDescriptor descriptor = new XMLDescriptor();
  descriptor.setJavaClass(Union.class);
  descriptor.setNamespaceResolver(namespaceResolver);
  XMLCompositeDirectCollectionMapping memberTypeMapping = new XMLCompositeDirectCollectionMapping();
  memberTypeMapping.setAttributeName("memberTypes");
  memberTypeMapping.setXPath("@memberTypes");
  memberTypeMapping.setUsesSingleNode(true);
  descriptor.addMapping(memberTypeMapping);
  XMLCompositeCollectionMapping simpleTypesMapping = new XMLCompositeCollectionMapping();
  simpleTypesMapping.setReferenceClass(SimpleType.class);
  simpleTypesMapping.setAttributeName("simpleTypes");
  simpleTypesMapping.setXPath(Constants.SCHEMA_PREFIX + ":" + "simpleType");
  descriptor.addMapping(simpleTypesMapping);
  return descriptor;
}

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

private XMLDescriptor buildAnnotationDescriptor() {
  XMLDescriptor descriptor = new XMLDescriptor();
  descriptor.setJavaClass(Annotation.class);
  descriptor.setNamespaceResolver(namespaceResolver);
  XMLCompositeDirectCollectionMapping documentationMapping = new XMLCompositeDirectCollectionMapping();
  documentationMapping.setAttributeName("documentation");
  documentationMapping.useCollectionClass(ArrayList.class);
  documentationMapping.setXPath(Constants.SCHEMA_PREFIX + ":" + "documentation");
  ((XMLField)documentationMapping.getField()).setUsesSingleNode(false);
  descriptor.addMapping(documentationMapping);
  XMLFragmentCollectionMapping appInfoMapping = new XMLFragmentCollectionMapping();
  appInfoMapping.setAttributeName("appInfo");
  appInfoMapping.setXPath(Constants.SCHEMA_PREFIX + ":" + "appinfo");
  appInfoMapping.useCollectionClass(java.util.ArrayList.class);
  descriptor.addMapping(appInfoMapping);
  return descriptor;
}

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

private XMLDescriptor buildAnnotationDescriptor() {
  XMLDescriptor descriptor = new XMLDescriptor();
  descriptor.setJavaClass(Annotation.class);
  descriptor.setNamespaceResolver(namespaceResolver);
  XMLCompositeDirectCollectionMapping documentationMapping = new XMLCompositeDirectCollectionMapping();
  documentationMapping.setAttributeName("documentation");
  documentationMapping.useCollectionClass(ArrayList.class);
  documentationMapping.setXPath(Constants.SCHEMA_PREFIX + ":" + "documentation");
  ((XMLField)documentationMapping.getField()).setUsesSingleNode(false);
  descriptor.addMapping(documentationMapping);
  XMLFragmentCollectionMapping appInfoMapping = new XMLFragmentCollectionMapping();
  appInfoMapping.setAttributeName("appInfo");
  appInfoMapping.setXPath(Constants.SCHEMA_PREFIX + ":" + "appinfo");
  appInfoMapping.useCollectionClass(java.util.ArrayList.class);
  descriptor.addMapping(appInfoMapping);
  return descriptor;
}

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

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.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 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;
}

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