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

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

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

Broker.getStoreManager介绍

暂无

代码示例

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

public DelegatingStoreManager getStoreManager() {
  try {
    return _broker.getStoreManager();
  } catch (RuntimeException re) {
    throw translate(re);
  }
}

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

public DelegatingStoreManager getStoreManager() {
  try {
    return _broker.getStoreManager();
  } catch (RuntimeException re) {
    throw translate(re);
  }
}

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

public DelegatingStoreManager getStoreManager() {
  try {
    return _broker.getStoreManager();
  } catch (RuntimeException re) {
    throw translate(re);
  }
}

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

public DelegatingStoreManager getStoreManager() {
  try {
    return _broker.getStoreManager();
  } catch (RuntimeException re) {
    throw translate(re);
  }
}

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

public DelegatingStoreManager getStoreManager() {
  try {
    return _broker.getStoreManager();
  } catch (RuntimeException re) {
    throw translate(re);
  }
}

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

/**
 * Return the current {@link Connection} for this savepoint.
 */
public Connection getConnection() {
  return ((JDBCStoreManager) getBroker().getStoreManager().
    getInnermostDelegate()).getConnection();
}

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

/**
 * Return the current {@link Connection} for this savepoint.
 */
public Connection getConnection() {
  return ((JDBCStoreManager) getBroker().getStoreManager().
    getInnermostDelegate()).getConnection();
}

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

/**
 * Return the current {@link Connection} for this savepoint.
 */
public Connection getConnection() {
  return ((JDBCStoreManager) getBroker().getStoreManager().
    getInnermostDelegate()).getConnection();
}

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

/**
 * Return the current {@link Connection} for this savepoint.
 */
public Connection getConnection() {
  return ((JDBCStoreManager) getBroker().getStoreManager().
    getInnermostDelegate()).getConnection();
}

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

/**
 * Return the current {@link Connection} for this savepoint.
 */
public Connection getConnection() {
  return ((JDBCStoreManager) getBroker().getStoreManager().
    getInnermostDelegate()).getConnection();
}

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

/**
 * Create a store-specific facade for the given fetch configuration.
 * If no facade class exists, we use the default {@link FetchPlan}.
 */
FetchPlan toFetchPlan(Broker broker, FetchConfiguration fetch) {
  if (fetch == null)
    return null;
  if (fetch instanceof DelegatingFetchConfiguration)
    fetch = ((DelegatingFetchConfiguration) fetch).
      getInnermostDelegate();
  try {
    if (_plan == null) {
      Class storeType = (broker == null) ? null : broker.
        getStoreManager().getInnermostDelegate().getClass();
      Class cls = _factory.getConfiguration().
        getStoreFacadeTypeRegistry().
        getImplementation(FetchPlan.class, storeType, 
            FetchPlanImpl.class);
      _plan = cls.getConstructor(FetchConfiguration.class);
    }
    return _plan.newInstance(fetch);
  } catch (InvocationTargetException ite) {
    throw PersistenceExceptions.toPersistenceException
      (ite.getTargetException());
  } catch (Exception e) {
    throw PersistenceExceptions.toPersistenceException(e);
  }
}

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

/**
 * Create a store-specific facade for the given fetch configuration.
 * If no facade class exists, we use the default {@link FetchPlan}.
 */
FetchPlan toFetchPlan(Broker broker, FetchConfiguration fetch) {
  if (fetch == null)
    return null;
  if (fetch instanceof DelegatingFetchConfiguration)
    fetch = ((DelegatingFetchConfiguration) fetch).
      getInnermostDelegate();
  try {
    if (_plan == null) {
      Class storeType = (broker == null) ? null : broker.
        getStoreManager().getInnermostDelegate().getClass();
      Class cls = _factory.getConfiguration().
        getStoreFacadeTypeRegistry().
        getImplementation(FetchPlan.class, storeType, 
            FetchPlanImpl.class);
      _plan = cls.getConstructor(FetchConfiguration.class);
    }
    return _plan.newInstance(fetch);
  } catch (InvocationTargetException ite) {
    throw PersistenceExceptions.toPersistenceException
      (ite.getTargetException());
  } catch (Exception e) {
    throw PersistenceExceptions.toPersistenceException(e);
  }
}

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

if (_plan == null) {
  Class storeType = (broker == null) ? null : broker.
    getStoreManager().getInnermostDelegate().getClass();
  Class cls = _factory.getConfiguration().
    getStoreFacadeTypeRegistry().

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

/**
 * Create a store-specific facade for the given fetch configuration.
 * If no facade class exists, we use the default {@link FetchPlan}.
 */
FetchPlan toFetchPlan(Broker broker, FetchConfiguration fetch) {
  if (fetch == null)
    return null;
  if (fetch instanceof DelegatingFetchConfiguration)
    fetch = ((DelegatingFetchConfiguration) fetch).
      getInnermostDelegate();
  try {
    if (_plan == null) {
      Class storeType = (broker == null) ? null : broker.
        getStoreManager().getInnermostDelegate().getClass();
      Class cls = _factory.getConfiguration().
        getStoreFacadeTypeRegistry().
        getImplementation(FetchPlan.class, storeType, 
            FetchPlanImpl.class);
      _plan = cls.getConstructor(FetchConfiguration.class);
    }
    return _plan.newInstance(fetch);
  } catch (InvocationTargetException ite) {
    throw PersistenceExceptions.toPersistenceException
      (ite.getTargetException());
  } catch (Exception e) {
    throw PersistenceExceptions.toPersistenceException(e);
  }
}

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

/**
 * Create a store-specific facade for the given fetch configuration.
 * If no facade class exists, we use the default {@link FetchPlan}.
 */
FetchPlan toFetchPlan(Broker broker, FetchConfiguration fetch) {
  if (fetch == null)
    return null;
  if (fetch instanceof DelegatingFetchConfiguration)
    fetch = ((DelegatingFetchConfiguration) fetch).
      getInnermostDelegate();
  try {
    if (_plan == null) {
      Class storeType = (broker == null) ? null : broker.
        getStoreManager().getInnermostDelegate().getClass();
      Class cls = _factory.getConfiguration().
        getStoreFacadeTypeRegistry().
        getImplementation(FetchPlan.class, storeType, 
            FetchPlanImpl.class);
      _plan = cls.getConstructor(FetchConfiguration.class);
    }
    return _plan.newInstance(fetch);
  } catch (InvocationTargetException ite) {
    throw PersistenceExceptions.toPersistenceException
      (ite.getTargetException());
  } catch (Exception e) {
    throw PersistenceExceptions.toPersistenceException(e);
  }
}

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

JDBCStore store = (JDBCStore)broker.getStoreManager()
  .getInnermostDelegate();
MappingRepository repos = store.getConfiguration()

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

JDBCStore store = (JDBCStore)broker.getStoreManager()
  .getInnermostDelegate();
MappingRepository repos = store.getConfiguration()

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

JDBCStore store = (JDBCStore)broker.getStoreManager()
  .getInnermostDelegate();
MappingRepository repos = store.getConfiguration()

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

JDBCStore store = (JDBCStore)broker.getStoreManager()
  .getInnermostDelegate();
MappingRepository repos = store.getConfiguration()

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

rop = _broker.getStoreManager().executeExtent(metas[i],
  _subs, _fc);
if (rop != null)

相关文章

微信公众号

最新文章

更多

Broker类方法