- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.<init>()
方法的一些代码示例,展示了XMLCompositeDirectCollectionMapping.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLCompositeDirectCollectionMapping.<init>()
方法的具体详情如下:
包路径:org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping
类名称:XMLCompositeDirectCollectionMapping
方法名:<init>
暂无
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
/**
* Return a new direct collection/element collection mapping for this type of descriptor.
*/
@Override
public DatabaseMapping newDirectCollectionMapping() {
return new XMLCompositeDirectCollectionMapping();
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* Return a new direct collection/element collection mapping for this type of descriptor.
*/
@Override
public DatabaseMapping newDirectCollectionMapping() {
return new XMLCompositeDirectCollectionMapping();
}
代码示例来源: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: 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;
}
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.isWriteOnly()方法的一
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.setSetMethodName(
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.getDescriptor()方法
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.setAttributeAcces
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.setGetMethodName(
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.getAttributeEleme
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.getAttributeAcces
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.getAttributeValue
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.getContainerPolic
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.getValueConverter
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.hasValueConverter
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.isReadOnly()方法的一些
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.usesSingleNode()方
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.convertDataValueT
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.isCDATA()方法的一些代码示
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.setXPath()方法的一些代码
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.setAttributeEleme
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.useCollectionClas
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.getNullPolicy()方法
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.setField()方法的一些代码
我是一名优秀的程序员,十分优秀!