- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping.setXPath()
方法的一些代码示例,展示了XMLCompositeObjectMapping.setXPath()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLCompositeObjectMapping.setXPath()
方法的具体详情如下:
包路径:org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping
类名称:XMLCompositeObjectMapping
方法名:setXPath
[英]Set the Mapping field name attribute to the given XPath String
[中]将映射字段名属性设置为给定的XPath字符串
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLCompositeObjectMapping getAccessMethodsMapping() {
XMLCompositeObjectMapping accessMethodsMapping = new XMLCompositeObjectMapping();
accessMethodsMapping.setAttributeName("m_accessMethods");
accessMethodsMapping.setGetMethodName("getAccessMethods");
accessMethodsMapping.setSetMethodName("setAccessMethods");
accessMethodsMapping.setReferenceClass(AccessMethodsMetadata.class);
accessMethodsMapping.setXPath("orm:access-methods");
return accessMethodsMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLCompositeObjectMapping getAttributesMapping() {
XMLCompositeObjectMapping attributesMapping = new XMLCompositeObjectMapping();
attributesMapping.setAttributeName("m_attributes");
attributesMapping.setGetMethodName("getAttributes");
attributesMapping.setSetMethodName("setAttributes");
attributesMapping.setReferenceClass(XMLAttributes.class);
attributesMapping.setXPath("orm:attributes");
return attributesMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLCompositeObjectMapping getCacheInterceptorMapping() {
XMLCompositeObjectMapping cacheMapping = new XMLCompositeObjectMapping();
cacheMapping.setAttributeName("m_cacheInterceptor");
cacheMapping.setGetMethodName("getCacheInterceptor");
cacheMapping.setSetMethodName("setCacheInterceptor");
cacheMapping.setReferenceClass(CacheInterceptorMetadata.class);
cacheMapping.setXPath("orm:cache-interceptor");
return cacheMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLCompositeObjectMapping getEnumeratedMapping() {
XMLCompositeObjectMapping enumeratedMapping = new XMLCompositeObjectMapping();
enumeratedMapping.setAttributeName("m_enumerated");
enumeratedMapping.setGetMethodName("getEnumerated");
enumeratedMapping.setSetMethodName("setEnumerated");
enumeratedMapping.setReferenceClass(EnumeratedMetadata.class);
enumeratedMapping.setXPath("orm:enumerated");
return enumeratedMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLCompositeObjectMapping getMultitenantMapping() {
XMLCompositeObjectMapping multitenantMapping = new XMLCompositeObjectMapping();
multitenantMapping.setAttributeName("m_multitenant");
multitenantMapping.setGetMethodName("getMultitenant");
multitenantMapping.setSetMethodName("setMultitenant");
multitenantMapping.setReferenceClass(MultitenantMetadata.class);
multitenantMapping.setXPath("orm:multitenant");
return multitenantMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLCompositeObjectMapping getReturnInsertMapping() {
XMLCompositeObjectMapping mapping = new XMLCompositeObjectMapping();
mapping.setAttributeName("m_returnInsert");
mapping.setGetMethodName("getReturnInsert");
mapping.setSetMethodName("setReturnInsert");
mapping.setReferenceClass(ReturnInsertMetadata.class);
mapping.setXPath("orm:return-insert");
return mapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLCompositeObjectMapping getUuidGeneratorMapping() {
XMLCompositeObjectMapping uuidGeneratorMapping = new XMLCompositeObjectMapping();
uuidGeneratorMapping.setAttributeName("m_uuidGenerator");
uuidGeneratorMapping.setGetMethodName("getUuidGenerator");
uuidGeneratorMapping.setSetMethodName("setUuidGenerator");
uuidGeneratorMapping.setReferenceClass(UuidGeneratorMetadata.class);
uuidGeneratorMapping.setXPath("orm:uuid-generator");
return uuidGeneratorMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLCompositeObjectMapping getAdditionalCriteriaMapping() {
XMLCompositeObjectMapping additionalCriteriaMapping = new XMLCompositeObjectMapping();
additionalCriteriaMapping.setAttributeName("m_additionalCriteria");
additionalCriteriaMapping.setGetMethodName("getAdditionalCriteria");
additionalCriteriaMapping.setSetMethodName("setAdditionalCriteria");
additionalCriteriaMapping.setReferenceClass(AdditionalCriteriaMetadata.class);
additionalCriteriaMapping.setXPath("orm:additional-criteria");
return additionalCriteriaMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLCompositeObjectMapping getCacheIndexMapping() {
XMLCompositeObjectMapping indexMapping = new XMLCompositeObjectMapping();
indexMapping.setAttributeName("m_cacheIndex");
indexMapping.setGetMethodName("getCacheIndex");
indexMapping.setSetMethodName("setCacheIndex");
indexMapping.setReferenceClass(CacheIndexMetadata.class);
indexMapping.setXPath("orm:cache-index");
return indexMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLCompositeObjectMapping getJoinTableMapping() {
XMLCompositeObjectMapping joinTableMapping = new XMLCompositeObjectMapping();
joinTableMapping.setAttributeName("m_joinTable");
joinTableMapping.setGetMethodName("getJoinTable");
joinTableMapping.setSetMethodName("setJoinTable");
joinTableMapping.setReferenceClass(JoinTableMetadata.class);
joinTableMapping.setXPath("orm:join-table");
return joinTableMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLCompositeObjectMapping getMapKeyEnumeratedMapping() {
XMLCompositeObjectMapping mapKeyEnumeratedMapping = new XMLCompositeObjectMapping();
mapKeyEnumeratedMapping.setAttributeName("m_mapKeyEnumerated");
mapKeyEnumeratedMapping.setGetMethodName("getMapKeyEnumerated");
mapKeyEnumeratedMapping.setSetMethodName("setMapKeyEnumerated");
mapKeyEnumeratedMapping.setReferenceClass(EnumeratedMetadata.class);
mapKeyEnumeratedMapping.setXPath("orm:map-key-enumerated");
return mapKeyEnumeratedMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLCompositeObjectMapping getTableGeneratorMapping() {
XMLCompositeObjectMapping tableGeneratorMapping = new XMLCompositeObjectMapping();
tableGeneratorMapping.setAttributeName("m_tableGenerator");
tableGeneratorMapping.setGetMethodName("getTableGenerator");
tableGeneratorMapping.setSetMethodName("setTableGenerator");
tableGeneratorMapping.setReferenceClass(TableGeneratorMetadata.class);
tableGeneratorMapping.setXPath("orm:table-generator");
return tableGeneratorMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLCompositeObjectMapping getTenantTableDiscriminatorMapping() {
XMLCompositeObjectMapping tenantTableDiscriminatorMapping = new XMLCompositeObjectMapping();
tenantTableDiscriminatorMapping.setAttributeName("m_tenantTableDiscriminator");
tenantTableDiscriminatorMapping.setGetMethodName("getTenantTableDiscriminator");
tenantTableDiscriminatorMapping.setSetMethodName("setTenantTableDiscriminator");
tenantTableDiscriminatorMapping.setReferenceClass(TenantTableDiscriminatorMetadata.class);
tenantTableDiscriminatorMapping.setXPath("orm:tenant-table-discriminator");
return tenantTableDiscriminatorMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLCompositeObjectMapping getUnionPartitioningMapping() {
XMLCompositeObjectMapping mapping = new XMLCompositeObjectMapping();
mapping.setAttributeName("m_unionPartitioning");
mapping.setGetMethodName("getUnionPartitioning");
mapping.setSetMethodName("setUnionPartitioning");
mapping.setReferenceClass(UnionPartitioningMetadata.class);
mapping.setXPath("orm:union-partitioning");
return mapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLCompositeObjectMapping getCollectionTableMapping() {
XMLCompositeObjectMapping collectionTableMapping = new XMLCompositeObjectMapping();
collectionTableMapping.setAttributeName("m_collectionTable");
collectionTableMapping.setGetMethodName("getCollectionTable");
collectionTableMapping.setSetMethodName("setCollectionTable");
collectionTableMapping.setReferenceClass(CollectionTableMetadata.class);
collectionTableMapping.setXPath("orm:collection-table");
return collectionTableMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLCompositeObjectMapping getPrimaryKeyForeignKeyMapping() {
XMLCompositeObjectMapping mapping = new XMLCompositeObjectMapping();
mapping.setAttributeName("m_primaryKeyForeignKey");
mapping.setGetMethodName("getPrimaryKeyForeignKey");
mapping.setSetMethodName("setPrimaryKeyForeignKey");
mapping.setReferenceClass(PrimaryKeyForeignKeyMetadata.class);
mapping.setXPath("orm:primary-key-foreign-key");
return mapping;
}
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
protected ClassDescriptor buildXMLChoiceFieldToClassAssociationDescriptor() {
ClassDescriptor descriptor = super.buildXMLChoiceFieldToClassAssociationDescriptor();
XMLCompositeObjectMapping converterMapping = new XMLCompositeObjectMapping();
converterMapping.setAttributeName("converter");
converterMapping.setXPath(getPrimaryNamespacePrefix() + "value-converter");
converterMapping.setReferenceClass(Converter.class);
descriptor.addMapping(converterMapping);
return descriptor;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
protected ClassDescriptor buildXMLChoiceFieldToClassAssociationDescriptor() {
ClassDescriptor descriptor = super.buildXMLChoiceFieldToClassAssociationDescriptor();
XMLCompositeObjectMapping converterMapping = new XMLCompositeObjectMapping();
converterMapping.setAttributeName("converter");
converterMapping.setXPath(getPrimaryNamespacePrefix() + "value-converter");
converterMapping.setReferenceClass(Converter.class);
descriptor.addMapping(converterMapping);
return descriptor;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
protected ClassDescriptor buildPLSQLCollectionWrapperDescriptor() {
XMLDescriptor descriptor = new XMLDescriptor();
descriptor.setJavaClass(PLSQLCollectionWrapper.class);
descriptor.getInheritancePolicy().setParentClass(DatabaseTypeWrapper.class);
XMLCompositeObjectMapping wrappedDatabaseTypeMapping = new XMLCompositeObjectMapping();
wrappedDatabaseTypeMapping.setAttributeName("wrappedDatabaseType");
wrappedDatabaseTypeMapping.setXPath(".");
wrappedDatabaseTypeMapping.setReferenceClass(PLSQLCollection.class);
descriptor.addMapping(wrappedDatabaseTypeMapping);
return descriptor;
}
protected ClassDescriptor buildPLSQLCursorWrapperDescriptor() {
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
protected ClassDescriptor buildObjectRelationalDatabaseFieldDescriptor() {
XMLDescriptor descriptor = new XMLDescriptor();
descriptor.setJavaClass(ObjectRelationalDatabaseField.class);
descriptor.getInheritancePolicy().setParentClass(DatabaseField.class);
descriptor.setInstantiationPolicy(new ObjectRelationalDatabaseFieldInstantiationPolicy());
XMLCompositeObjectMapping nestedFieldMapping = new XMLCompositeObjectMapping();
nestedFieldMapping.setAttributeName("nestedTypeField");
nestedFieldMapping.setXPath(getPrimaryNamespaceXPath() + "nested-type-field");
nestedFieldMapping.setReferenceClass(DatabaseField.class);
descriptor.addMapping(nestedFieldMapping);
return descriptor;
}
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.setXPath()方法的一些代码
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.setXPath()方法的一些代码示例,展示了XPathFragment.se
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeObjectMapping.setXPath()方法的一些代码示例,展示了XMLC
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLBinaryDataMapping.setXPath()方法的一些代码示例,展示了XMLBinary
我是一名优秀的程序员,十分优秀!