/** * @deprecated use {@link JPAFacadeHelper} instead. This method pierces * the published-API boundary, as does the JPAFacadeHelper utilization. */ public static Broker toBroker(EntityManager em) { return JPAFacadeHelper.toBroker(em); }
/** * @deprecated use {@link JPAFacadeHelper} instead. This method pierces * the published-API boundary, as does the JPAFacadeHelper utilization. */ public static Broker toBroker(EntityManager em) { return JPAFacadeHelper.toBroker(em); }
/** * @deprecated use {@link JPAFacadeHelper} instead. This method pierces * the published-API boundary, as does the JPAFacadeHelper utilization. */ public static Broker toBroker(EntityManager em) { return JPAFacadeHelper.toBroker(em); }
/** * @deprecated use {@link JPAFacadeHelper} instead. This method pierces * the published-API boundary, as does the JPAFacadeHelper utilization. */ public static Broker toBroker(EntityManager em) { return JPAFacadeHelper.toBroker(em); }
/** * @deprecated use {@link JPAFacadeHelper} instead. This method pierces * the published-API boundary, as does the JPAFacadeHelper utilization. */ public static Broker toBroker(EntityManager em) { return JPAFacadeHelper.toBroker(em); }
/** * Returns true if the specified class is an entity or embeddable type. */ public static boolean isManagedType(EntityManager em, Class cls) { try { return ImplHelper.isManagedType( JPAFacadeHelper.toBroker(em).getConfiguration(), cls); } catch (Exception e) { throw PersistenceExceptions.toPersistenceException(e); } }
/** * Returns true if the specified class is an entity or embeddable type. */ public static boolean isManagedType(EntityManager em, Class cls) { try { return ImplHelper.isManagedType( JPAFacadeHelper.toBroker(em).getConfiguration(), cls); } catch (Exception e) { throw PersistenceExceptions.toPersistenceException(e); } }
/** * Returns true if the specified class is an entity or embeddable type. */ public static boolean isManagedType(EntityManager em, Class cls) { try { return ImplHelper.isManagedType( JPAFacadeHelper.toBroker(em).getConfiguration(), cls); } catch (Exception e) { throw PersistenceExceptions.toPersistenceException(e); } }
/** * Returns true if the specified class is an entity or embeddable type. */ public static boolean isManagedType(EntityManager em, Class cls) { try { return ImplHelper.isManagedType( JPAFacadeHelper.toBroker(em).getConfiguration(), cls); } catch (Exception e) { throw PersistenceExceptions.toPersistenceException(e); } }
/** * Returns true if the specified class is an entity or embeddable type. */ public static boolean isManagedType(EntityManager em, Class cls) { try { return ImplHelper.isManagedType( JPAFacadeHelper.toBroker(em).getConfiguration(), cls); } catch (Exception e) { throw PersistenceExceptions.toPersistenceException(e); } }
protected void popFetchPlan(boolean finder) { if (!hasQualifier(QUALIFIER_PLAN)) return; OpenJPAEntityManager em = _ctx.getPersistenceContext(); BrokerImpl broker = (BrokerImpl)JPAFacadeHelper.toBroker(em); if (finder) { broker.setCacheFinderQuery(false); } else { broker.setCachePreparedQuery(false); } }
protected void pushFetchPlan(Object target) { if (!hasQualifier(QUALIFIER_PLAN)) return; OpenJPAEntityManager em = _ctx.getPersistenceContext(); FetchPlan plan = em.pushFetchPlan(); BrokerImpl broker = (BrokerImpl)JPAFacadeHelper.toBroker(em); if (target instanceof OpenJPAEntityManager) { broker.setCacheFinderQuery(false); } else if (target instanceof OpenJPAQuery) { broker.setCachePreparedQuery(false); } String[] plans = getQualifier(QUALIFIER_PLAN).split(","); for (String p : plans) { p = p.trim(); if (p.charAt(0) == '-') { plan.removeFetchGroup(p.substring(1)); } else { plan.addFetchGroup(p); } } }