org.apache.openjpa.kernel.Broker.attachAll()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(72)

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

Broker.attachAll介绍

[英]Import the specified objects into the broker. Instances that were previously detached from this or another broker will have their changed merged into the persistent instances. Instances that are new will be persisted as new instances.
[中]将指定的对象导入代理。以前从该代理或其他代理分离的实例将其更改合并到持久实例中。新实例将作为新实例持久化。

代码示例

代码示例来源:origin: org.apache.openejb.patch/openjpa-kernel

public Object[] attachAll(Collection objs, boolean copyNew,
  OpCallbacks call) {
  try {
    return _broker.attachAll(objs, copyNew, call);
  } catch (RuntimeException re) {
    throw translate(re, objs);
  }
}

代码示例来源:origin: org.apache.openejb.patch/openjpa

public Object[] attachAll(Collection objs, boolean copyNew,
  OpCallbacks call) {
  try {
    return _broker.attachAll(objs, copyNew, call);
  } catch (RuntimeException re) {
    throw translate(re, objs);
  }
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

public Object[] attachAll(Collection objs, boolean copyNew,
  OpCallbacks call) {
  try {
    return _broker.attachAll(objs, copyNew, call);
  } catch (RuntimeException re) {
    throw translate(re, objs);
  }
}

代码示例来源:origin: org.apache.openjpa/openjpa-kernel

public Object[] attachAll(Collection objs, boolean copyNew,
  OpCallbacks call) {
  try {
    return _broker.attachAll(objs, copyNew, call);
  } catch (RuntimeException re) {
    throw translate(re, objs);
  }
}

代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa

public Object[] attachAll(Collection objs, boolean copyNew,
  OpCallbacks call) {
  try {
    return _broker.attachAll(objs, copyNew, call);
  } catch (RuntimeException re) {
    throw translate(re);
  }
}

相关文章

微信公众号

最新文章

更多

Broker类方法