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

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

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

Broker.getMultithreaded介绍

[英]Whether the broker or its managed instances are used in a multithreaded environment.
[中]是否在多线程环境中使用代理或其托管实例。

代码示例

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

public boolean getMultithreaded() {
  try {
    return _broker.getMultithreaded();
  } catch (RuntimeException re) {
    throw translate(re);
  }
}

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

public boolean getMultithreaded() {
  try {
    return _broker.getMultithreaded();
  } catch (RuntimeException re) {
    throw translate(re);
  }
}

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

public boolean getMultithreaded() {
  try {
    return _broker.getMultithreaded();
  } catch (RuntimeException re) {
    throw translate(re);
  }
}

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

public boolean getMultithreaded() {
  try {
    return _broker.getMultithreaded();
  } catch (RuntimeException re) {
    throw translate(re);
  }
}

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

public boolean getMultithreaded() {
  try {
    return _broker.getMultithreaded();
  } catch (RuntimeException re) {
    throw translate(re);
  }
}

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

/**
 * Constructor.
 *
 * @param broker the owning broker
 * @param type the candidate class
 * @param subs whether subclasses are included in the extent
 */
ExtentImpl(Broker broker, Class<T> type, boolean subs,
  FetchConfiguration fetch) {
  _broker = broker;
  _type = type;
  _subs = subs;
  if (fetch != null)
    _fc = fetch;
  else
    _fc = (FetchConfiguration) broker.getFetchConfiguration().clone();
  _ignore = broker.getIgnoreChanges();
  if (broker.getMultithreaded())
    _lock = new ReentrantLock();
  else
    _lock = null;
}

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

/**
 * Constructor.
 *
 * @param broker the owning broker
 * @param type the candidate class
 * @param subs whether subclasses are included in the extent
 */
ExtentImpl(Broker broker, Class<T> type, boolean subs,
  FetchConfiguration fetch) {
  _broker = broker;
  _type = type;
  _subs = subs;
  if (fetch != null)
    _fc = fetch;
  else
    _fc = (FetchConfiguration) broker.getFetchConfiguration().clone();
  _ignore = broker.getIgnoreChanges();
  if (broker.getMultithreaded())
    _lock = new ReentrantLock();
  else
    _lock = null;
}

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

/**
 * Constructor.
 *
 * @param broker the owning broker
 * @param type the candidate class
 * @param subs whether subclasses are included in the extent
 */
ExtentImpl(Broker broker, Class<T> type, boolean subs,
  FetchConfiguration fetch) {
  _broker = broker;
  _type = type;
  _subs = subs;
  if (fetch != null)
    _fc = fetch;
  else
    _fc = (FetchConfiguration) broker.getFetchConfiguration().clone();
  _ignore = broker.getIgnoreChanges();
  if (broker.getMultithreaded())
    _lock = new ReentrantLock();
  else
    _lock = null;
}

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

/**
 * Constructor.
 *
 * @param broker the owning broker
 * @param type the candidate class
 * @param subs whether subclasses are included in the extent
 */
ExtentImpl(Broker broker, Class type, boolean subs,
  FetchConfiguration fetch) {
  _broker = broker;
  _type = type;
  _subs = subs;
  if (fetch != null)
    _fc = fetch;
  else
    _fc = (FetchConfiguration) broker.getFetchConfiguration().clone();
  _ignore = broker.getIgnoreChanges();
  if (broker.getMultithreaded())
    _lock = new ReentrantLock();
  else
    _lock = null;
}

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

/**
 * Constructor.
 *
 * @param broker the owning broker
 * @param type the candidate class
 * @param subs whether subclasses are included in the extent
 */
ExtentImpl(Broker broker, Class<T> type, boolean subs,
  FetchConfiguration fetch) {
  _broker = broker;
  _type = type;
  _subs = subs;
  if (fetch != null)
    _fc = fetch;
  else
    _fc = (FetchConfiguration) broker.getFetchConfiguration().clone();
  _ignore = broker.getIgnoreChanges();
  if (broker.getMultithreaded())
    _lock = new ReentrantLock();
  else
    _lock = null;
}

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

sm, idxs, opts.getAccessUnloaded(), broker.getMultithreaded()));
return true;

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

sm, idxs, opts.getAccessUnloaded(), broker.getMultithreaded()));
return true;

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

sm, idxs, opts.getAccessUnloaded(), broker.getMultithreaded()));
return true;

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

sm, idxs, opts.getAccessUnloaded(), broker.getMultithreaded()));
return true;

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

public Executor newDataStoreExecutor(ClassMetaData meta, boolean subs) {
  boolean parallel = !getContext().getStoreContext().getBroker()
    .getMultithreaded();
  ParallelExecutor ex = new ParallelExecutor(this, meta, parallel);
  for (StoreQuery q : _queries) {
    ex.addExecutor(q.newDataStoreExecutor(meta, subs));
  }
  return ex;
}

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

public Executor newDataStoreExecutor(ClassMetaData meta, boolean subs) {
  boolean parallel = !getContext().getStoreContext().getBroker()
    .getMultithreaded();
  ParallelExecutor ex = new ParallelExecutor(this, meta, parallel);
  for (StoreQuery q : _queries) {
    ex.addExecutor(q.newDataStoreExecutor(meta, subs));
  }
  return ex;
}

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

public Executor newDataStoreExecutor(ClassMetaData meta, boolean subs) {
  boolean parallel = !getContext().getStoreContext().getBroker()
    .getMultithreaded();
  ParallelExecutor ex = new ParallelExecutor(this, meta, parallel);
  for (StoreQuery q : _queries) {
    ex.addExecutor(q.newDataStoreExecutor(meta, subs));
  }
  return ex;
}

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

public Executor newDataStoreExecutor(ClassMetaData meta, boolean subs) {
  boolean parallel = !getContext().getStoreContext().getBroker()
    .getMultithreaded();
  ParallelExecutor ex = new ParallelExecutor(this, meta, subs, _parser,
    ctx.getCompilation(), parallel);
  for (StoreQuery q : _queries) {
    ex.addExecutor(q.newDataStoreExecutor(meta, subs));
  }
  return ex;
}

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

public Executor newDataStoreExecutor(ClassMetaData meta, boolean subs) {
  boolean parallel = !getContext().getStoreContext().getBroker()
    .getMultithreaded();
  ParallelExecutor ex = new ParallelExecutor(this, meta, subs, _parser,
    ctx.getCompilation(), parallel);
  for (StoreQuery q : _queries) {
    ex.addExecutor(q.newDataStoreExecutor(meta, subs));
  }
  return ex;
}

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

public Executor newDataStoreExecutor(ClassMetaData meta, boolean subs) {
  boolean parallel = !getContext().getStoreContext().getBroker()
    .getMultithreaded();
  ParallelExecutor ex = new ParallelExecutor(this, meta, subs, _parser,
    ctx.getCompilation(), parallel);
  for (StoreQuery q : _queries) {
    ex.addExecutor(q.newDataStoreExecutor(meta, subs));
  }
  return ex;
}

相关文章

微信公众号

最新文章

更多

Broker类方法