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

x33g5p2x  于2022-02-03 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(95)

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

XMLAnyCollectionMapping.setContainerPolicy介绍

暂无

代码示例

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

public void useCollectionClassName(String concreteContainerClassName) {
  this.setContainerPolicy(new CollectionContainerPolicy(concreteContainerClassName));
}

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

public void useListClassName(String concreteContainerClassName) {
  this.setContainerPolicy(new ListContainerPolicy(concreteContainerClassName));
}

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

/**
 * PUBLIC:
 * Configure the mapping to use an instance of the specified container class
 * to hold the target objects.
 * <p>jdk1.2.x: The container class must implement (directly or indirectly) the Collection interface.
 * <p>jdk1.1.x: The container class must be a subclass of Vector.
 */
public void useCollectionClass(Class concreteContainerClass) {
  this.setContainerPolicy(ContainerPolicy.buildPolicyFor(concreteContainerClass));
}

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

/**
 * PUBLIC:
 * Configure the mapping to use an instance of the specified container class
 * to hold the target objects.
 * <p>jdk1.2.x: The container class must implement (directly or indirectly) the Collection interface.
 * <p>jdk1.1.x: The container class must be a subclass of Vector.
 */
public void useCollectionClass(Class concreteContainerClass) {
  this.setContainerPolicy(ContainerPolicy.buildPolicyFor(concreteContainerClass));
}

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

/**
 * PUBLIC:
 * Configure the mapping to use an instance of the specified container class
 * to hold the target objects.
 * <p>jdk1.2.x: The container class must implement (directly or indirectly) the Collection interface.
 * <p>jdk1.1.x: The container class must be a subclass of Vector.
 */
public void useCollectionClass(Class concreteContainerClass) {
  this.setContainerPolicy(ContainerPolicy.buildPolicyFor(concreteContainerClass));
}

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

public void useCollectionClassName(String concreteContainerClassName) {
  this.setContainerPolicy(new CollectionContainerPolicy(concreteContainerClassName));
}

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

public void useListClassName(String concreteContainerClassName) {
  this.setContainerPolicy(new ListContainerPolicy(concreteContainerClassName));
}

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

public Object clone() {
  // Bug 3037701 - clone the AttributeAccessor
  XMLAnyCollectionMapping mapping = null;
  mapping = (XMLAnyCollectionMapping) super.clone();
  mapping.setContainerPolicy(this.getContainerPolicy());
  mapping.setField(this.getField());
  return mapping;
}

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

public Object clone() {
  // Bug 3037701 - clone the AttributeAccessor
  XMLAnyCollectionMapping mapping = null;
  mapping = (XMLAnyCollectionMapping) super.clone();
  mapping.setContainerPolicy(this.getContainerPolicy());
  mapping.setField(this.getField());
  return mapping;
}

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

public Object clone() {
  // Bug 3037701 - clone the AttributeAccessor
  XMLAnyCollectionMapping mapping = null;
  mapping = (XMLAnyCollectionMapping) super.clone();
  mapping.setContainerPolicy(this.getContainerPolicy());
  mapping.setField(this.getField());
  return mapping;
}

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

public Object clone() {
  // Bug 3037701 - clone the AttributeAccessor
  XMLAnyCollectionMapping mapping = null;
  mapping = (XMLAnyCollectionMapping) super.clone();
  mapping.setContainerPolicy(this.getContainerPolicy());
  mapping.setField(this.getField());
  return mapping;
}

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

public Object clone() {
  // Bug 3037701 - clone the AttributeAccessor
  XMLAnyCollectionMapping mapping = null;
  mapping = (XMLAnyCollectionMapping) super.clone();
  mapping.setContainerPolicy(this.getContainerPolicy());
  mapping.setField(this.getField());
  return mapping;
}

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

public Object clone() {
  // Bug 3037701 - clone the AttributeAccessor
  XMLAnyCollectionMapping mapping = null;
  mapping = (XMLAnyCollectionMapping) super.clone();
  mapping.setContainerPolicy(this.getContainerPolicy());
  mapping.setField(this.getField());
  return mapping;
}

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

((XMLAnyCollectionMapping)nextMapping).setContainerPolicy(getContainerPolicy());
if(converter != null && converter instanceof XMLConverter) {
  ((XMLAnyCollectionMapping)nextMapping).setConverter((XMLConverter)converter);

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

((XMLAnyCollectionMapping)nextMapping).setContainerPolicy(getContainerPolicy());
if(converter != null && converter instanceof XMLConverter) {                        		 
  ((XMLAnyCollectionMapping)nextMapping).setConverter((XMLConverter)converter);

相关文章

XMLAnyCollectionMapping类方法