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

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

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

Broker.detachAll介绍

[英]Detach the specified objects from the broker. The objects returned can be manipulated and re-attached with #attachAll. The detached instances will be unmanaged copies of the specified parameters, and are suitable for serialization and manipulation outside of a OpenJPA environment. When detaching instances, only fields in the current FetchConfiguration will be traversed. Thus, to detach a graph of objects, relations to other persistent instances must either be in the default-fetch-group, or in the current custom FetchConfiguration.
[中]从代理分离指定的对象。返回的对象可以通过#attachal进行操作和重新附加。分离的实例将是指定参数的非托管副本,适合在OpenJPA环境之外进行序列化和操作。分离实例时,将只遍历当前FetchConfiguration中的字段。因此,要分离对象图,与其他持久实例的关系必须在default-fetch-group中,或者在当前的自定义FetchConfiguration中。

代码示例

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

public void detachAll(OpCallbacks call, boolean flush) {
  try {
    _broker.detachAll(call, flush);
  } catch (RuntimeException re) {
    throw translate(re);
  }
}

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

public void detachAll(OpCallbacks call, boolean flush) {
  try {
    _broker.detachAll(call, flush);
  } catch (RuntimeException re) {
    throw translate(re);
  }
}

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

public void detachAll(OpCallbacks call, boolean flush) {
  try {
    _broker.detachAll(call, flush);
  } catch (RuntimeException re) {
    throw translate(re);
  }
}

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

public void detachAll(OpCallbacks call) {
  try {
    _broker.detachAll(call);
  } catch (RuntimeException re) {
    throw translate(re);
  }
}

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

public void detachAll(OpCallbacks call) {
  try {
    _broker.detachAll(call);
  } catch (RuntimeException re) {
    throw translate(re);
  }
}

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

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

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

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

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

public void detachAll(OpCallbacks call) {
  try {
    _broker.detachAll(call);
  } catch (RuntimeException re) {
    throw translate(re);
  }
}

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

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

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

public void detachAll(OpCallbacks call) {
  try {
    _broker.detachAll(call);
  } catch (RuntimeException re) {
    throw translate(re);
  }
}

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

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

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

public void detachAll(OpCallbacks call, boolean flush) {
  try {
    _broker.detachAll(call, flush);
  } catch (RuntimeException re) {
    throw translate(re);
  }
}

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

public void detachAll(OpCallbacks call) {
  try {
    _broker.detachAll(call);
  } catch (RuntimeException re) {
    throw translate(re);
  }
}

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

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

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

public void detachAll(OpCallbacks call, boolean flush) {
  try {
    _broker.detachAll(call, flush);
  } catch (RuntimeException re) {
    throw translate(re);
  }
}

相关文章

微信公众号

最新文章

更多

Broker类方法