本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLDirectMapping.setAttributeName()
方法的一些代码示例,展示了XMLDirectMapping.setAttributeName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLDirectMapping.setAttributeName()
方法的具体详情如下:
包路径:org.eclipse.persistence.oxm.mappings.XMLDirectMapping
类名称:XMLDirectMapping
方法名:setAttributeName
暂无
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLDirectMapping getCatalogAttributeMapping() {
XMLDirectMapping catalogMapping = new XMLDirectMapping();
catalogMapping.setAttributeName("m_catalog");
catalogMapping.setGetMethodName("getCatalog");
catalogMapping.setSetMethodName("setCatalog");
catalogMapping.setXPath("@catalog");
return catalogMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLDirectMapping getMetadataCompleteAttributeMapping() {
XMLDirectMapping metadataCompleteMapping = new XMLDirectMapping();
metadataCompleteMapping.setAttributeName("m_metadataComplete");
metadataCompleteMapping.setGetMethodName("getMetadataComplete");
metadataCompleteMapping.setSetMethodName("setMetadataComplete");
metadataCompleteMapping.setXPath("@metadata-complete");
return metadataCompleteMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLDirectMapping getOptionalAttributeMapping() {
XMLDirectMapping optionalMapping = new XMLDirectMapping();
optionalMapping.setAttributeName("m_optional");
optionalMapping.setGetMethodName("getOptional");
optionalMapping.setSetMethodName("setOptional");
optionalMapping.setXPath("@optional");
return optionalMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLDirectMapping getOrphanRemovalAttributeMapping() {
XMLDirectMapping orphanRemovalMapping = new XMLDirectMapping();
orphanRemovalMapping.setAttributeName("m_orphanRemoval");
orphanRemovalMapping.setGetMethodName("getOrphanRemoval");
orphanRemovalMapping.setSetMethodName("setOrphanRemoval");
orphanRemovalMapping.setXPath("@orphan-removal");
return orphanRemovalMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLDirectMapping getPostUpdateMapping() {
XMLDirectMapping postUpdateMapping = new XMLDirectMapping();
postUpdateMapping.setAttributeName("m_postUpdate");
postUpdateMapping.setGetMethodName("getPostUpdate");
postUpdateMapping.setSetMethodName("setPostUpdate");
postUpdateMapping.setXPath("orm:post-update/@method-name");
return postUpdateMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLDirectMapping getPreRemoveMapping() {
XMLDirectMapping preRemoveMapping = new XMLDirectMapping();
preRemoveMapping.setAttributeName("m_preRemove");
preRemoveMapping.setGetMethodName("getPreRemove");
preRemoveMapping.setSetMethodName("setPreRemove");
preRemoveMapping.setXPath("orm:pre-remove/@method-name");
return preRemoveMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLDirectMapping getPrimaryKeyAttributeMapping() {
XMLDirectMapping primaryKeyMapping = new XMLDirectMapping();
primaryKeyMapping.setAttributeName("m_primaryKey");
primaryKeyMapping.setGetMethodName("getPrimaryKey");
primaryKeyMapping.setSetMethodName("setPrimaryKey");
primaryKeyMapping.setXPath("@primary-key");
return primaryKeyMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLDirectMapping getProcedureNameAttributeMapping() {
XMLDirectMapping procedureNameMapping = new XMLDirectMapping();
procedureNameMapping.setAttributeName("m_procedureName");
procedureNameMapping.setGetMethodName("getProcedureName");
procedureNameMapping.setSetMethodName("setProcedureName");
procedureNameMapping.setXPath("@procedure-name");
return procedureNameMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLDirectMapping getQueryMapping() {
XMLDirectMapping queryMapping = new XMLDirectMapping();
queryMapping.setAttributeName("m_query");
queryMapping.setGetMethodName("getQuery");
queryMapping.setSetMethodName("setQuery");
queryMapping.setXPath("orm:query");
return queryMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLDirectMapping getQueryParameterAttributeMapping() {
XMLDirectMapping queryParameterMapping = new XMLDirectMapping();
queryParameterMapping.setAttributeName("m_queryParameter");
queryParameterMapping.setGetMethodName("getQueryParameter");
queryParameterMapping.setSetMethodName("setQueryParameter");
queryParameterMapping.setXPath("@query-parameter");
return queryParameterMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLDirectMapping getResultSetMappingAttributeMapping() {
XMLDirectMapping resultSetMappingMapping = new XMLDirectMapping();
resultSetMappingMapping.setAttributeName("m_resultSetMapping");
resultSetMappingMapping.setGetMethodName("getResultSetMapping");
resultSetMappingMapping.setSetMethodName("setResultSetMapping");
resultSetMappingMapping.setXPath("@result-set-mapping");
return resultSetMappingMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLDirectMapping getSizeAttributeMapping() {
XMLDirectMapping sizeMapping = new XMLDirectMapping();
sizeMapping.setAttributeName("m_size");
sizeMapping.setGetMethodName("getSize");
sizeMapping.setSetMethodName("setSize");
sizeMapping.setXPath("@size");
return sizeMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL
*/
protected XMLDirectMapping getUniqueAttributeMapping() {
XMLDirectMapping uniqueMapping = new XMLDirectMapping();
uniqueMapping.setAttributeName("m_unique");
uniqueMapping.setGetMethodName("getUnique");
uniqueMapping.setSetMethodName("setUnique");
uniqueMapping.setXPath("@unique");
return uniqueMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
/**
* INTERNAL:
*/
protected XMLDirectMapping getValueAttributeMapping() {
XMLDirectMapping valueMapping = new XMLDirectMapping();
valueMapping.setAttributeName("m_value");
valueMapping.setGetMethodName("getValue");
valueMapping.setSetMethodName("setValue");
valueMapping.setXPath("@value");
return valueMapping;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
protected XMLDescriptor buildAttachmentDescriptor() {
XMLDescriptor descriptor = new XMLDescriptor();
descriptor.setJavaClass(Attachment.class);
XMLDirectMapping mimeType = new XMLDirectMapping();
mimeType.setAttributeName("mimeType");
mimeType.setXPath("mime-type/text()");
descriptor.addMapping(mimeType);
return descriptor;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
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;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
@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;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
protected ClassDescriptor buildTimeToLiveCacheInvalidationPolicyDescriptor() {
XMLDescriptor descriptor = new XMLDescriptor();
descriptor.setJavaClass(TimeToLiveCacheInvalidationPolicy.class);
descriptor.getInheritancePolicy().setParentClass(CacheInvalidationPolicy.class);
XMLDirectMapping timeToLiveMapping = new XMLDirectMapping();
timeToLiveMapping.setAttributeName("timeToLive");
timeToLiveMapping.setXPath(getPrimaryNamespaceXPath() + "time-to-live/text()");
descriptor.addMapping(timeToLiveMapping);
return descriptor;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
@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;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
protected ClassDescriptor buildTransformerBasedFieldTransformationDescriptor() {
XMLDescriptor descriptor = new XMLDescriptor();
descriptor.setJavaClass(TransformerBasedFieldTransformation.class);
descriptor.getInheritancePolicy().setParentClass(FieldTransformation.class);
XMLDirectMapping methodNameMapping = new XMLDirectMapping();
methodNameMapping.setAttributeName("transformerClass");
methodNameMapping.setXPath(getPrimaryNamespaceXPath() + "transformer-class/text()");
methodNameMapping.setGetMethodName("getTransformerClass");
methodNameMapping.setSetMethodName("setTransformerClass");
descriptor.addMapping(methodNameMapping);
return descriptor;
}
内容来源于网络,如有侵权,请联系作者删除!