public DistributedQueryImpl(Broker broker, String language, StoreQuery storeQuery) { super(broker, language, storeQuery); _lock = new ReentrantSliceLock(); _conf = (DistributedConfiguration)broker.getConfiguration(); }
public OpenJPAConfiguration getConfiguration() { try { return _broker.getConfiguration(); } catch (RuntimeException re) { throw translate(re); } }
public DistributedQueryImpl(Broker broker, String language, StoreQuery storeQuery) { super(broker, language, storeQuery); _lock = new ReentrantSliceLock(); _conf = (DistributedConfiguration)broker.getConfiguration(); }
public OpenJPAConfiguration getConfiguration() { try { return _broker.getConfiguration(); } catch (RuntimeException re) { throw translate(re); } }
public DistributedQueryImpl(Broker broker, String language, StoreQuery storeQuery) { super(broker, language, storeQuery); _lock = new ReentrantSliceLock(); _conf = (DistributedConfiguration)broker.getConfiguration(); }
public OpenJPAConfiguration getConfiguration() { try { return _broker.getConfiguration(); } catch (RuntimeException re) { throw translate(re); } }
public OpenJPAConfiguration getConfiguration() { try { return _broker.getConfiguration(); } catch (RuntimeException re) { throw translate(re); } }
public OpenJPAConfiguration getConfiguration() { try { return _broker.getConfiguration(); } catch (RuntimeException re) { throw translate(re); } }
/** * 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 Object getDetachedObjectId(AttachManager manager, Object toAttach) { Broker broker = manager.getBroker(); ClassMetaData meta = broker.getConfiguration(). getMetaDataRepositoryInstance().getMetaData( ImplHelper.getManagedInstance(toAttach).getClass(), broker.getClassLoader(), true); return ApplicationIds.create(ImplHelper.toPersistenceCapable(toAttach, broker.getConfiguration()), meta); }
/** * 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 Object getDetachedObjectId(AttachManager manager, Object toAttach) { Broker broker = manager.getBroker(); ClassMetaData meta = broker.getConfiguration(). getMetaDataRepositoryInstance().getMetaData( ImplHelper.getManagedInstance(toAttach).getClass(), broker.getClassLoader(), true); return ApplicationIds.create(ImplHelper.toPersistenceCapable(toAttach, broker.getConfiguration()), meta); }
/** * 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 Object getDetachedObjectId(AttachManager manager, Object toAttach) { Broker broker = manager.getBroker(); ClassMetaData meta = broker.getConfiguration(). getMetaDataRepositoryInstance().getMetaData( ImplHelper.getManagedInstance(toAttach).getClass(), broker.getClassLoader(), true); return ApplicationIds.create(ImplHelper.toPersistenceCapable(toAttach, broker.getConfiguration()), meta); }
/** * 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); } }
final PersistenceCapable pc = ((PersistenceCapable) detachedEntity); final Object[] state = (Object[]) pc.pcGetDetachedState(); final BitSet loadedFieldsOnDetach = (BitSet) state[1]; final OpenJPAEntityManager oem = getEntityManager(); final Broker _broker = ((EntityManagerImpl) oem).getBroker(); final ClassMetaData meta = _broker.getConfiguration().getMetaDataRepositoryInstance() .getMetaData(ImplHelper.getManagedInstance(detachedEntity).getClass(), _broker.getClassLoader(), true); for (final FieldMetaData fmd : meta.getDefinedFields()) { if (loadedFieldsOnDetach.get(fmd.getIndex())) { System.out.println(fmd.getName() + " was loaded on detach."); } }
protected Object getDetachedObjectId(AttachManager manager, Object toAttach) { Broker broker = manager.getBroker(); ClassMetaData meta = broker.getConfiguration(). getMetaDataRepositoryInstance().getMetaData( ImplHelper.getManagedInstance(toAttach).getClass(), broker.getClassLoader(), true); return ApplicationIds.create(ImplHelper.toPersistenceCapable(toAttach, broker.getConfiguration()), meta); }
protected Object getDetachedObjectId(AttachManager manager, Object toAttach) { Broker broker = manager.getBroker(); ClassMetaData meta = broker.getConfiguration(). getMetaDataRepositoryInstance().getMetaData( ImplHelper.getManagedInstance(toAttach).getClass(), broker.getClassLoader(), true); return ApplicationIds.create(ImplHelper.toPersistenceCapable(toAttach, broker.getConfiguration()), meta); }
/** * Construct a query managed by the given broker. */ public QueryImpl(Broker broker, String language, StoreQuery storeQuery) { _broker = (BrokerImpl) broker; _language = language; _storeQuery = storeQuery; _fc = (FetchConfiguration) broker.getFetchConfiguration().clone(); _log = broker.getConfiguration().getLog(OpenJPAConfiguration.LOG_QUERY); _storeQuery.setContext(this); _printParameters = _broker.getPrintParameters(); if (_broker != null && _broker.getMultithreaded()) _lock = new ReentrantLock(); }