- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLInverseReferenceMapping.getContainerPolicy()
方法的一些代码示例,展示了XMLInverseReferenceMapping.getContainerPolicy()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLInverseReferenceMapping.getContainerPolicy()
方法的具体详情如下:
包路径:org.eclipse.persistence.oxm.mappings.XMLInverseReferenceMapping
类名称: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());
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLCompositeDirectCollectionMapping.getContainerPolic
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLInverseReferenceMapping.getContainerPolicy()方法的一些代
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLAnyCollectionMapping.getContainerPolicy()方法的一些代码示例
本文整理了Java中org.eclipse.persistence.oxm.mappings.XMLChoiceCollectionMapping.getContainerPolicy()方法的一些代
我是一名优秀的程序员,十分优秀!