public OpenJPAConfiguration getConfiguration() { try { return _factory.getConfiguration(); } catch (RuntimeException re) { throw translate(re); } }
public OpenJPAConfiguration getConfiguration() { try { return _factory.getConfiguration(); } catch (RuntimeException re) { throw translate(re); } }
/** * @param factory The {@link BrokerFactory} for which cached metadata * should be built. * @param devpath Whether or not to scan the development environment paths * to find persistent types to store. */ public MetaDataCacheMaintenance(BrokerFactory factory, boolean devpath) { this.factory = factory; this.conf = factory.getConfiguration(); this.devpath = devpath; this.log = conf.getLog(OpenJPAConfiguration.LOG_TOOL); }
public OpenJPAConfiguration getConfiguration() { try { return _factory.getConfiguration(); } catch (RuntimeException re) { throw translate(re); } }
public OpenJPAConfiguration getConfiguration() { try { return _factory.getConfiguration(); } catch (RuntimeException re) { throw translate(re); } }
/** * @param factory The {@link BrokerFactory} for which cached metadata * should be built. * @param devpath Whether or not to scan the development environment paths * to find persistent types to store. */ public MetaDataCacheMaintenance(BrokerFactory factory, boolean devpath) { this.factory = factory; this.conf = factory.getConfiguration(); this.devpath = devpath; this.log = conf.getLog(OpenJPAConfiguration.LOG_TOOL); }
public OpenJPAConfiguration getConfiguration() { try { return _factory.getConfiguration(); } catch (RuntimeException re) { throw translate(re); } }
/** * @param factory The {@link BrokerFactory} for which cached metadata * should be built. * @param devpath Whether or not to scan the development environment paths * to find persistent types to store. */ public MetaDataCacheMaintenance(BrokerFactory factory, boolean devpath) { this.factory = factory; this.conf = factory.getConfiguration(); this.devpath = devpath; this.log = conf.getLog(OpenJPAConfiguration.LOG_TOOL); }
/** * @param factory The {@link BrokerFactory} for which cached metadata * should be built. * @param devpath Whether or not to scan the development environment paths * to find persistent types to store. */ public MetaDataCacheMaintenance(BrokerFactory factory, boolean devpath) { this.factory = factory; this.conf = factory.getConfiguration(); this.devpath = devpath; this.log = conf.getLog(OpenJPAConfiguration.LOG_TOOL); }
/** * @param factory The {@link BrokerFactory} for which cached metadata * should be built. * @param devpath Whether or not to scan the development environment paths * to find persistent types to store. */ public MetaDataCacheMaintenance(BrokerFactory factory, boolean devpath) { this.factory = factory; this.conf = factory.getConfiguration(); this.devpath = devpath; this.log = conf.getLog(OpenJPAConfiguration.LOG_TOOL); }
/** * @deprecated This is only needed for pre-1.0 versions of OpenJPA. */ public static void installCompass(BrokerFactory factory) { if (factory.getUserObject(COMPASS_USER_OBJECT_KEY) != null) return; CompassProductDerivation derivation = derivations.get(factory.getConfiguration()); if (derivation == null) throw new IllegalStateException("no CompassProductDerivation instance registered for this configuration"); derivation.installIntoFactory(factory); }
/** * Create a new factory of the configured type. */ public static OpenJPAEntityManagerFactory newFactory(BrokerFactory bf) { OpenJPAConfiguration conf = bf.getConfiguration(); PluginValue val = (PluginValue) conf.getValue(KEY); if (val == null) return null; EntityManagerFactoryImpl emf = (EntityManagerFactoryImpl) val. instantiate(EntityManagerFactoryImpl.class, conf, true); emf.setBrokerFactory(bf); return emf; }
/** * Create a new factory of the configured type. */ public static OpenJPAEntityManagerFactory newFactory(BrokerFactory bf) { OpenJPAConfiguration conf = bf.getConfiguration(); PluginValue val = (PluginValue) conf.getValue(KEY); if (val == null) return null; EntityManagerFactoryImpl emf = (EntityManagerFactoryImpl) val. instantiate(EntityManagerFactoryImpl.class, conf, true); emf.setBrokerFactory(bf); return emf; }
/** * Create a new factory of the configured type. */ public static OpenJPAEntityManagerFactory newFactory(BrokerFactory bf) { OpenJPAConfiguration conf = bf.getConfiguration(); PluginValue val = (PluginValue) conf.getValue(KEY); if (val == null) return null; EntityManagerFactoryImpl emf = (EntityManagerFactoryImpl) val. instantiate(EntityManagerFactoryImpl.class, conf, true); emf.setBrokerFactory(bf); return emf; }
/** * Create a new factory of the configured type. */ public static OpenJPAEntityManagerFactory newFactory(BrokerFactory bf) { OpenJPAConfiguration conf = bf.getConfiguration(); PluginValue val = (PluginValue) conf.getValue(KEY); if (val == null) return null; EntityManagerFactoryImpl emf = (EntityManagerFactoryImpl) val. instantiate(EntityManagerFactoryImpl.class, conf, true); emf.setBrokerFactory(bf); return emf; }
/** * Create a new factory of the configured type. */ public static OpenJPAEntityManagerFactory newFactory(BrokerFactory bf) { OpenJPAConfiguration conf = bf.getConfiguration(); PluginValue val = (PluginValue) conf.getValue(KEY); if (val == null) return null; EntityManagerFactoryImpl emf = (EntityManagerFactoryImpl) val. instantiate(EntityManagerFactoryImpl.class, conf, true); emf.setBrokerFactory(bf); return emf; }
/** * This private worker method will attempt load the PCEnhancerAgent. */ private void loadAgent(BrokerFactory factory) { OpenJPAConfiguration conf = factory.getConfiguration(); Log log = conf.getLog(OpenJPAConfiguration.LOG_RUNTIME); if (conf.getDynamicEnhancementAgent() == true) { boolean res = PCEnhancerAgent.loadDynamicAgent(log); if (log.isInfoEnabled() && res == true ){ log.info(_loc.get("dynamic-agent")); } } }
/** * This private worker method will attempt load the PCEnhancerAgent. */ private void loadAgent(BrokerFactory factory) { OpenJPAConfiguration conf = factory.getConfiguration(); Log log = conf.getLog(OpenJPAConfiguration.LOG_RUNTIME); if (conf.getDynamicEnhancementAgent() == true) { boolean res = PCEnhancerAgent.loadDynamicAgent(log); if (log.isInfoEnabled() && res == true ){ log.info(_loc.get("dynamic-agent")); } } }
/** * This private worker method will attempt load the PCEnhancerAgent. */ private void loadAgent(BrokerFactory factory) { OpenJPAConfiguration conf = factory.getConfiguration(); Log log = conf.getLog(OpenJPAConfiguration.LOG_RUNTIME); if (conf.getDynamicEnhancementAgent() == true) { boolean res = PCEnhancerAgent.loadDynamicAgent(log); if (log.isInfoEnabled() && res == true ){ log.info(_loc.get("dynamic-agent")); } } }
/** * This private worker method will attempt load the PCEnhancerAgent. */ private void loadAgent(BrokerFactory factory) { OpenJPAConfiguration conf = factory.getConfiguration(); Log log = conf.getLog(OpenJPAConfiguration.LOG_RUNTIME); if (conf.getDynamicEnhancementAgent() == true) { boolean res = PCEnhancerAgent.loadDynamicAgent(log); if (log.isInfoEnabled() && res == true ){ log.info(_loc.get("dynamic-agent")); } } }