本文整理了Java中org.apache.openjpa.kernel.Broker.detachAll()
方法的一些代码示例,展示了Broker.detachAll()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Broker.detachAll()
方法的具体详情如下:
包路径:org.apache.openjpa.kernel.Broker
类名称: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);
}
}
内容来源于网络,如有侵权,请联系作者删除!