gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-20 00:07:40 26 4
gpt4 key购买 nike

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

XMLInverseReferenceMapping.getAttributeAccessor介绍

暂无

代码示例

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

/**
 * Gets the AttributeAccessor that is used to get and set the value of the
 * container on the target object.
 * @deprecated Replaced by getInverseReferenceMapping().getAttributeAccessor()
 */
@Deprecated
public AttributeAccessor getContainerAccessor() {
  if (this.inverseReferenceMapping == null) {
    return null;
  }
  return this.inverseReferenceMapping.getAttributeAccessor();
}

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

/**
 * Gets the AttributeAccessor that is used to get and set the value of the
 * container on the target object.
 * @deprecated Replaced by getInverseReferenceMapping().getAttributeAccessor()
 */
@Deprecated
public AttributeAccessor getContainerAccessor() {
  if (this.inverseReferenceMapping == null) {
    return null;
  }
  return this.inverseReferenceMapping.getAttributeAccessor();
}

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

/**
 * Gets the AttributeAccessor that is used to get and set the value of the
 * container on the target object.
 * @deprecated Replaced by getInverseReferenceMapping().getAttributeAccessor()
 */
@Deprecated
public AttributeAccessor getContainerAccessor() {
  if (this.inverseReferenceMapping == null) {
    return null;
  }
  return this.inverseReferenceMapping.getAttributeAccessor();
}

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

/**
 * Gets the AttributeAccessor that is used to get and set the value of the
 * container on the target object.
 * @deprecated Replaced by getInverseReferenceMapping().getAttributeAccessor()
 */
@Deprecated
public AttributeAccessor getContainerAccessor() {
  if (this.inverseReferenceMapping == null) {
    return null;
  }
  return this.inverseReferenceMapping.getAttributeAccessor();
}

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

/**
 * Gets the AttributeAccessor that is used to get and set the value of the
 * container on the target object.
 * @deprecated Replaced by getInverseReferenceMapping().getAttributeAccessor()
 */
@Deprecated
public AttributeAccessor getContainerAccessor() {
  if (this.inverseReferenceMapping == null) {
    return null;
  }
  return this.inverseReferenceMapping.getAttributeAccessor();
}

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

/**
 * Gets the AttributeAccessor that is used to get and set the value of the
 * container on the target object.
 * @deprecated Replaced by getInverseReferenceMapping().getAttributeAccessor()
 */
@Deprecated
public AttributeAccessor getContainerAccessor() {
  if (this.inverseReferenceMapping == null) {
    return null;
  }
  return this.inverseReferenceMapping.getAttributeAccessor();
}

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

if (null != this.inverseReferenceMapping.getAttributeAccessor()) {
  this.inverseReferenceMapping.getAttributeAccessor().initializeAttributes(this.referenceClass);

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

if (null != this.inverseReferenceMapping.getAttributeAccessor()) {
  this.inverseReferenceMapping.getAttributeAccessor().initializeAttributes(this.referenceClass);

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

if (null != this.inverseReferenceMapping.getAttributeAccessor()) {
  this.inverseReferenceMapping.getAttributeAccessor().initializeAttributes(this.referenceClass);

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

xmlCompositeObjectMapping.getInverseReferenceMapping().getAttributeAccessor().setAttributeValueInObject(unmarshalRecord.getCurrentObject(), valueToSet);

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

Class containerClass = null;
  if(oxmMapping instanceof XMLCompositeObjectMapping) {
    containerAccessor = ((XMLCompositeObjectMapping)oxmMapping).getInverseReferenceMapping().getAttributeAccessor();
    containerClass = ((XMLCompositeObjectMapping)oxmMapping).getReferenceClass();
  } else if(oxmMapping instanceof XMLCompositeCollectionMapping) {
    containerAccessor = ((XMLCompositeCollectionMapping)oxmMapping).getInverseReferenceMapping().getAttributeAccessor();
    containerClass = ((XMLCompositeCollectionMapping)oxmMapping).getReferenceClass();
if(nextMapping instanceof XMLObjectReferenceMapping) {
  XMLObjectReferenceMapping refMapping = (XMLObjectReferenceMapping)nextMapping;
  if(refMapping.getInverseReferenceMapping().getAttributeAccessor() != null && refMapping.getInverseReferenceMapping().getContainerPolicy() != null) {
    ClassDescriptor refDescriptor = ormSession.getClassDescriptor(refMapping.getReferenceClass());
    if(refDescriptor != null) {

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

Object next = cPolicy.next(iterator, session);
  if(mapping.getInverseReferenceMapping().getContainerPolicy() == null) {
    mapping.getInverseReferenceMapping().getAttributeAccessor().setAttributeValueInObject(next, currentObject);
  } else {
    Object backpointerContainer = mapping.getInverseReferenceMapping().getAttributeAccessor().getAttributeValueFromObject(next);
    if(backpointerContainer == null) {
      backpointerContainer = mapping.getInverseReferenceMapping().getContainerPolicy().containerInstance();
      mapping.getInverseReferenceMapping().getAttributeAccessor().setAttributeValueInObject(next, backpointerContainer);
AttributeAccessor backpointerAccessor = mapping.getInverseReferenceMapping().getAttributeAccessor();                    
if(mapping.getInverseReferenceMapping().getContainerPolicy() == null) {
  backpointerAccessor.setAttributeValueInObject(value, reference.getSourceObject());

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

xmlCompositeCollectionMapping.getInverseReferenceMapping().getAttributeAccessor().setAttributeValueInObject(objectValue, unmarshalRecord.getCurrentObject());
} else {
  Object backpointerContainer = xmlCompositeCollectionMapping.getInverseReferenceMapping().getAttributeAccessor().getAttributeValueFromObject(objectValue);
  if(backpointerContainer == null) {
    backpointerContainer = xmlCompositeCollectionMapping.getInverseReferenceMapping().getContainerPolicy().containerInstance();
    xmlCompositeCollectionMapping.getInverseReferenceMapping().getAttributeAccessor().setAttributeValueInObject(objectValue, backpointerContainer);

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

if(xmlCompositeObjectMapping.getInverseReferenceMapping() != null) {
  if(xmlCompositeObjectMapping.getInverseReferenceMapping().getContainerPolicy() == null) {
    xmlCompositeObjectMapping.getInverseReferenceMapping().getAttributeAccessor().setAttributeValueInObject(object, unmarshalRecord.getCurrentObject());
  } else {
    Object backpointerContainer = xmlCompositeObjectMapping.getInverseReferenceMapping().getAttributeAccessor().getAttributeValueFromObject(object);
    if(backpointerContainer == null) {
      backpointerContainer = xmlCompositeObjectMapping.getInverseReferenceMapping().getContainerPolicy().containerInstance();
      xmlCompositeObjectMapping.getInverseReferenceMapping().getAttributeAccessor().setAttributeValueInObject(object, backpointerContainer);

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