gpt4 book ai didi

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

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

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

XMLInverseReferenceMapping.getContainerPolicy介绍

暂无

代码示例

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

setAttributeValueInObject(targetObject, attributeValue);
if(null != getContainerAccessor()) {
  if(this.inverseReferenceMapping.getContainerPolicy() == null) {
    getContainerAccessor().setAttributeValueInObject(attributeValue, targetObject);
  } else {
    Object backpointerContainer = getContainerAccessor().getAttributeValueFromObject(attributeValue);
    if(backpointerContainer == null) {
      backpointerContainer = this.inverseReferenceMapping.getContainerPolicy().containerInstance();
      getContainerAccessor().setAttributeValueInObject(attributeValue, backpointerContainer);
    this.inverseReferenceMapping.getContainerPolicy().addInto(targetObject, backpointerContainer, executionSession);

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

setAttributeValueInObject(targetObject, attributeValue);
if(null != getContainerAccessor()) {
  if(this.inverseReferenceMapping.getContainerPolicy() == null) {
    getContainerAccessor().setAttributeValueInObject(attributeValue, targetObject);
  } else {
    Object backpointerContainer = getContainerAccessor().getAttributeValueFromObject(attributeValue);
    if(backpointerContainer == null) {
      backpointerContainer = this.inverseReferenceMapping.getContainerPolicy().containerInstance();
      getContainerAccessor().setAttributeValueInObject(attributeValue, backpointerContainer);
    this.inverseReferenceMapping.getContainerPolicy().addInto(targetObject, backpointerContainer, executionSession);

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

setAttributeValueInObject(targetObject, attributeValue);
if(null != getContainerAccessor()) {
  if(this.inverseReferenceMapping.getContainerPolicy() == null) {
    getContainerAccessor().setAttributeValueInObject(attributeValue, targetObject);
  } else {
    Object backpointerContainer = getContainerAccessor().getAttributeValueFromObject(attributeValue);
    if(backpointerContainer == null) {
      backpointerContainer = this.inverseReferenceMapping.getContainerPolicy().containerInstance();
      getContainerAccessor().setAttributeValueInObject(attributeValue, backpointerContainer);
    this.inverseReferenceMapping.getContainerPolicy().addInto(targetObject, backpointerContainer, executionSession);

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

if(null != getContainerAccessor()) {
  Object currentObject = ((XMLRecord)row).getCurrentObject();
  if(this.inverseReferenceMapping.getContainerPolicy() == null) {
    getContainerAccessor().setAttributeValueInObject(objectToAdd, currentObject);
  } else {
    Object backpointerContainer = getContainerAccessor().getAttributeValueFromObject(objectToAdd);
    if(backpointerContainer == null) {
      backpointerContainer = this.inverseReferenceMapping.getContainerPolicy().containerInstance();
      getContainerAccessor().setAttributeValueInObject(objectToAdd, backpointerContainer);
    this.inverseReferenceMapping.getContainerPolicy().addInto(currentObject, backpointerContainer, executionSession);

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

while(cPolicy.hasNext(iterator)) {
  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);
    mapping.getInverseReferenceMapping().getContainerPolicy().addInto(currentObject, backpointerContainer, session);
if(mapping.getInverseReferenceMapping().getContainerPolicy() == null) {
  backpointerAccessor.setAttributeValueInObject(value, reference.getSourceObject());
} else {
  Object backpointerContainer = backpointerAccessor.getAttributeValueFromObject(value);
  if(backpointerContainer == null) {
    backpointerContainer = mapping.getInverseReferenceMapping().getContainerPolicy().containerInstance();
    backpointerAccessor.setAttributeValueInObject(value, backpointerContainer);
  mapping.getInverseReferenceMapping().getContainerPolicy().addInto(reference.getSourceObject(), backpointerContainer, session);

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

if(null != getContainerAccessor()) {
  Object currentObject = ((XMLRecord)row).getCurrentObject();
  if(this.inverseReferenceMapping.getContainerPolicy() == null) {
    getContainerAccessor().setAttributeValueInObject(objectToAdd, currentObject);
  } else {
    Object backpointerContainer = getContainerAccessor().getAttributeValueFromObject(objectToAdd);
    if(backpointerContainer == null) {
      backpointerContainer = this.inverseReferenceMapping.getContainerPolicy().containerInstance();
      getContainerAccessor().setAttributeValueInObject(objectToAdd, backpointerContainer);
    this.inverseReferenceMapping.getContainerPolicy().addInto(currentObject, backpointerContainer, executionSession);

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

if(null != getContainerAccessor()) {
  Object currentObject = ((XMLRecord)row).getCurrentObject();
  if(this.inverseReferenceMapping.getContainerPolicy() == null) {
    getContainerAccessor().setAttributeValueInObject(objectToAdd, currentObject);
  } else {
    Object backpointerContainer = getContainerAccessor().getAttributeValueFromObject(objectToAdd);
    if(backpointerContainer == null) {
      backpointerContainer = this.inverseReferenceMapping.getContainerPolicy().containerInstance();
      getContainerAccessor().setAttributeValueInObject(objectToAdd, backpointerContainer);
    this.inverseReferenceMapping.getContainerPolicy().addInto(currentObject, backpointerContainer, executionSession);

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

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) {
      DatabaseMapping backpointerMapping =refDescriptor.getMappingForAttributeName(refMapping.getInverseReferenceMapping().getAttributeName());
      if(backpointerMapping != null && backpointerMapping.isCollectionMapping()) {
        refMapping.getInverseReferenceMapping().getContainerPolicy().setContainerClass(((CollectionMapping)backpointerMapping).getContainerPolicy().getContainerClass());

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

if(xmlCompositeCollectionMapping.getInverseReferenceMapping().getContainerPolicy() == null) {
  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);
  xmlCompositeCollectionMapping.getInverseReferenceMapping().getContainerPolicy().addInto(unmarshalRecord.getCurrentObject(), backpointerContainer, unmarshalRecord.getSession());

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

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);
  xmlCompositeObjectMapping.getInverseReferenceMapping().getContainerPolicy().addInto(unmarshalRecord.getCurrentObject(), backpointerContainer, unmarshalRecord.getSession());

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