public void setValidationPolicy(String policy) throws InstantiationException, IllegalAccessException { String name = Configurations.getClassName(policy); String props = Configurations.getProperties(policy); _validationPolicy = (ValidationPolicy) Configurations.newInstance(name, _conf, props, null); }
public void setValidationPolicy(String policy) throws InstantiationException, IllegalAccessException { String name = Configurations.getClassName(policy); String props = Configurations.getProperties(policy); _validationPolicy = (ValidationPolicy) Configurations.newInstance(name, _conf, props, null); }
public void setValidationPolicy(String policy) throws InstantiationException, IllegalAccessException { String name = Configurations.getClassName(policy); String props = Configurations.getProperties(policy); _validationPolicy = (ValidationPolicy) Configurations.newInstance(name, _conf, props, null); }
public void setValidationPolicy(String policy) throws InstantiationException, IllegalAccessException { String name = Configurations.getClassName(policy); String props = Configurations.getProperties(policy); _validationPolicy = (ValidationPolicy) Configurations.newInstance(name, _conf, props, null); }
public void setValidationPolicy(String policy) throws InstantiationException, IllegalAccessException { String name = Configurations.getClassName(policy); String props = Configurations.getProperties(policy); _validationPolicy = (ValidationPolicy) Configurations.newInstance(name, _conf, props, null); }
public static boolean needsPreload(OpenJPAConfiguration conf) { if (conf == null) return false; Options o = Configurations.parseProperties(Configurations.getProperties(conf.getMetaDataRepository())); if (o.getBooleanProperty(PRELOAD_STR) == true || o.getBooleanProperty(PRELOAD_STR.toLowerCase()) == true) { return true; } return false; }
public static boolean needsPreload(OpenJPAConfiguration conf) { if (conf == null) return false; Options o = Configurations.parseProperties(Configurations.getProperties(conf.getMetaDataRepository())); if (o.getBooleanProperty(PRELOAD_STR) == true || o.getBooleanProperty(PRELOAD_STR.toLowerCase()) == true) { return true; } return false; }
public static boolean needsPreload(OpenJPAConfiguration conf) { if (conf == null) return false; Options o = Configurations.parseProperties(Configurations.getProperties(conf.getMetaDataRepository())); if (o.getBooleanProperty(PRELOAD_STR) == true || o.getBooleanProperty(PRELOAD_STR.toLowerCase()) == true) { return true; } return false; }
public static boolean needsPreload(OpenJPAConfiguration conf) { if (conf == null) return false; Options o = Configurations.parseProperties(Configurations.getProperties(conf.getMetaDataRepository())); if (o.getBooleanProperty(PRELOAD_STR) == true || o.getBooleanProperty(PRELOAD_STR.toLowerCase()) == true) { return true; } return false; }
/** * Run the tool. */ public static boolean run(JDBCConfiguration conf, String action) throws IOException, SQLException { // run the action TableSchemaFactory factory = new TableSchemaFactory(); String props = Configurations.getProperties(conf.getSchemaFactory()); Configurations.configureInstance(factory, conf, props); if (ACTION_DROP.equals(action)) factory.dropTable(); else if (ACTION_ADD.equals(action)) factory.refreshTable(); else return false; return true; } }
/** * Run the tool. */ public static boolean run(JDBCConfiguration conf, String action) throws IOException, SQLException { // run the action TableSchemaFactory factory = new TableSchemaFactory(); String props = Configurations.getProperties(conf.getSchemaFactory()); Configurations.configureInstance(factory, conf, props); if (ACTION_DROP.equals(action)) factory.dropTable(); else if (ACTION_ADD.equals(action)) factory.refreshTable(); else return false; return true; } }
/** * Run the tool. */ public static boolean run(JDBCConfiguration conf, String action) throws IOException, SQLException { // run the action TableSchemaFactory factory = new TableSchemaFactory(); String props = Configurations.getProperties(conf.getSchemaFactory()); Configurations.configureInstance(factory, conf, props); if (ACTION_DROP.equals(action)) factory.dropTable(); else if (ACTION_ADD.equals(action)) factory.refreshTable(); else return false; return true; } }
/** * Run the tool. */ public static boolean run(JDBCConfiguration conf, String action) throws IOException, SQLException { // run the action TableSchemaFactory factory = new TableSchemaFactory(); String props = Configurations.getProperties(conf.getSchemaFactory()); Configurations.configureInstance(factory, conf, props); if (ACTION_DROP.equals(action)) factory.dropTable(); else if (ACTION_ADD.equals(action)) factory.refreshTable(); else return false; return true; } }
/** * Run the tool. */ public static boolean run(JDBCConfiguration conf, String action) throws IOException, SQLException { // run the action TableSchemaFactory factory = new TableSchemaFactory(); String props = Configurations.getProperties(conf.getSchemaFactory()); Configurations.configureInstance(factory, conf, props); if (ACTION_DROP.equals(action)) factory.dropTable(); else if (ACTION_ADD.equals(action)) factory.refreshTable(); else return false; return true; } }
public void setString(String str) { assertChangeable(); _name = Configurations.getClassName(str); _name = unalias(_name); _props = Configurations.getProperties(str); if (_singleton) set(null, true); valueChanged(); }
public void setString(String str) { assertChangeable(); _name = Configurations.getClassName(str); _name = unalias(_name); _props = Configurations.getProperties(str); if (_singleton) set(null, true); valueChanged(); }
public void setString(String str) { assertChangeable(); _name = Configurations.getClassName(str); _name = unalias(_name); _props = Configurations.getProperties(str); if (_singleton) set(null, true); valueChanged(); }
public void setString(String str) { assertChangeable(); _name = Configurations.getClassName(str); _name = unalias(_name); _props = Configurations.getProperties(str); if (_singleton) set(null, true); valueChanged(); }
/** * Factory method for constructing a {@link BrokerFactory} * from properties. Invoked from {@link Bootstrap#newBrokerFactory()}. */ public static AbstractStoreBrokerFactory newInstance (ConfigurationProvider cp) { // use a tmp store manager to get metadata about the capabilities of // this runtime Map map = cp.getProperties(); String storePlugin = (String) map.get(ProductDerivations .getConfigurationKey(PROP_ABSTRACT_STORE, map)); String storeCls = Configurations.getClassName(storePlugin); String storeProps = Configurations.getProperties(storePlugin); AbstractStoreManager store = createStoreManager(storeCls, storeProps); // populate configuration OpenJPAConfiguration conf = store.newConfiguration(); cp.setInto(conf); conf.supportedOptions().removeAll(store.getUnsupportedOptions()); // create and pool a new factory return new AbstractStoreBrokerFactory(conf, storeCls, storeProps, store.getPlatform()); }
/** * Factory method for constructing a {@link BrokerFactory} * from properties. Invoked from {@link Bootstrap#newBrokerFactory()}. */ public static AbstractStoreBrokerFactory newInstance (ConfigurationProvider cp) { // use a tmp store manager to get metadata about the capabilities of // this runtime Map map = cp.getProperties(); String storePlugin = (String) map.get(ProductDerivations .getConfigurationKey(PROP_ABSTRACT_STORE, map)); String storeCls = Configurations.getClassName(storePlugin); String storeProps = Configurations.getProperties(storePlugin); AbstractStoreManager store = createStoreManager(storeCls, storeProps); // populate configuration OpenJPAConfiguration conf = store.newConfiguration(); cp.setInto(conf); conf.supportedOptions().removeAll(store.getUnsupportedOptions()); // create and pool a new factory return new AbstractStoreBrokerFactory(conf, storeCls, storeProps, store.getPlatform()); }