本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLDirectMapping.setGetMethodName()
方法的一些代码示例,展示了XMLDirectMapping.setGetMethodName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLDirectMapping.setGetMethodName()
方法的具体详情如下:
包路径:org.eclipse.persistence.oxm.mappings.XMLDirectMapping
类名称:XMLDirectMapping
方法名:setGetMethodName
暂无
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
protected ClassDescriptor buildClassDescriptorDescriptor() {
ClassDescriptor descriptor = super.buildClassDescriptorDescriptor();
XMLDirectMapping referenceClassMapping =
(XMLDirectMapping)descriptor.getMappingForAttributeName("javaClass");
referenceClassMapping.setGetMethodName("getJavaClassName");
referenceClassMapping.setSetMethodName("setJavaClassName");
XMLDirectMapping amendmentClassMapping =
(XMLDirectMapping)descriptor.getMappingForAttributeName("amendmentClass");
amendmentClassMapping.setGetMethodName("getAmendmentClassName");
amendmentClassMapping.setSetMethodName("setAmendmentClassName");
return descriptor;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
protected ClassDescriptor buildInterfaceContainerPolicyDescriptor() {
ClassDescriptor descriptor = super.buildInterfaceContainerPolicyDescriptor();
XMLDirectMapping referenceClassMapping =
(XMLDirectMapping)descriptor.getMappingForAttributeName("containerClass");
referenceClassMapping.setGetMethodName("getContainerClassName");
referenceClassMapping.setSetMethodName("setContainerClassName");
return descriptor;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
protected ClassDescriptor buildSortedCollectionContainerPolicyDescriptor() {
ClassDescriptor descriptor = super.buildSortedCollectionContainerPolicyDescriptor();
XMLDirectMapping referenceClassMapping =
(XMLDirectMapping)descriptor.getMappingForAttributeName("comparatorClass");
referenceClassMapping.setGetMethodName("getComparatorClassName");
referenceClassMapping.setSetMethodName("setComparatorClassName");
return descriptor;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
protected ClassDescriptor buildObjectLevelReadQueryDescriptor() {
ClassDescriptor descriptor = super.buildObjectLevelReadQueryDescriptor();
XMLDirectMapping referenceClassMapping =
(XMLDirectMapping)descriptor.getMappingForAttributeName("referenceClass");
referenceClassMapping.setGetMethodName("getReferenceClassName");
referenceClassMapping.setSetMethodName("setReferenceClassName");
return descriptor;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
protected ClassDescriptor buildInstantiationPolicyDescriptor() {
ClassDescriptor descriptor = super.buildInstantiationPolicyDescriptor();
XMLDirectMapping referenceClassMapping =
(XMLDirectMapping)descriptor.getMappingForAttributeName("factoryClass");
referenceClassMapping.setGetMethodName("getFactoryClassName");
referenceClassMapping.setSetMethodName("setFactoryClassName");
return descriptor;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
protected ClassDescriptor buildMethodBaseQueryRedirectorDescriptor() {
ClassDescriptor descriptor = super.buildMethodBaseQueryRedirectorDescriptor();
XMLDirectMapping referenceClassMapping =
(XMLDirectMapping)descriptor.getMappingForAttributeName("methodClass");
referenceClassMapping.setGetMethodName("getMethodClassName");
referenceClassMapping.setSetMethodName("setMethodClassName");
return descriptor;
}
代码示例来源: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 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 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 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: 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: 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;
}
内容来源于网络,如有侵权,请联系作者删除!