/** * Specialization of {@link Properties#removeProperty} to allow * a value to appear under either of two keys; useful for short and * long versions of command-line flags. */ public String removeProperty(String key, String key2, String def) { String val = removeProperty(key); return (val == null) ? removeProperty(key2, def) : val; }
/** * Specialization of {@link Properties#removeProperty} to allow * a value to appear under either of two keys; useful for short and * long versions of command-line flags. */ public String removeProperty(String key, String key2, String def) { String val = removeProperty(key); return (val == null) ? removeProperty(key2, def) : val; }
/** * Specialization of {@link Properties#remove(Object)} to allow * a value to appear under either of two keys; useful for short and * long versions of command-line flags. */ public String removeProperty(String key, String key2, String def) { String val = removeProperty(key); return (val == null) ? removeProperty(key2, def) : val; }
/** * Specialization of {@link Properties#remove(Object)} to allow * a value to appear under either of two keys; useful for short and * long versions of command-line flags. */ public String removeProperty(String key, String key2, String def) { String val = removeProperty(key); return (val == null) ? removeProperty(key2, def) : val; }
/** * Specialization of {@link TypedProperties#removeFloatProperty} to allow * a value to appear under either of two keys; useful for short and * long versions of command-line flags. */ public float removeFloatProperty(String key, String key2, float def) { String val = removeProperty(key); if (val == null) val = removeProperty(key2); else removeProperty(key2); return (val == null) ? def : Float.parseFloat(val); }
/** * Specialization of {@link TypedProperties#removeFloatProperty} to allow * a value to appear under either of two keys; useful for short and * long versions of command-line flags. */ public float removeFloatProperty(String key, String key2, float def) { String val = removeProperty(key); if (val == null) val = removeProperty(key2); else removeProperty(key2); return (val == null) ? def : Float.parseFloat(val); }
/** * Run the tool. Returns false if invalid options were given. */ public static boolean run(JDBCConfiguration conf, String[] args, Options opts) throws Exception { String action = opts.removeProperty("action", "a", null); Configurations.populateConfiguration(conf, opts); return run(conf, args, action, null, null); }
/** * Run the tool. Returns false if invalid options were given. */ public static boolean run(JDBCConfiguration conf, String[] args, Options opts) throws Exception { String action = opts.removeProperty("action", "a", null); Configurations.populateConfiguration(conf, opts); return run(conf, args, action, null, null); }
/** * Run the tool. Returns false if invalid options were given. */ public static boolean run(JDBCConfiguration conf, String[] args, Options opts) throws Exception { String action = opts.removeProperty("action", "a", null); Configurations.populateConfiguration(conf, opts); return run(conf, args, action); }
/** * Run the tool. Returns false if invalid options were given. */ public static boolean run(JDBCConfiguration conf, String[] args, Options opts) throws Exception { String action = opts.removeProperty("action", "a", null); Configurations.populateConfiguration(conf, opts); return run(conf, args, action, null, null); }
/** * Run the tool. Returns false if invalid options were given. * * @see #main */ public static boolean run(JDBCConfiguration conf, String[] args, Options opts) throws IOException, SQLException { String action = opts.removeProperty("action", "a", null); Configurations.populateConfiguration(conf, opts); return run(conf, action); }
/** * Run the tool. Returns false if invalid options were given. */ public static boolean run(JDBCConfiguration conf, String[] args, Options opts) throws Exception { String action = opts.removeProperty("action", "a", null); Configurations.populateConfiguration(conf, opts); return run(conf, args, action); }
/** * Run the tool. Returns false if invalid options were given. */ public static boolean run(JDBCConfiguration conf, String[] args, Options opts) throws Exception { String action = opts.removeProperty("action", "a", null); Configurations.populateConfiguration(conf, opts); return run(conf, args, action, null, null); }
/** * Run the tool. Returns false if invalid options were given. */ public static boolean run(JDBCConfiguration conf, String[] args, Options opts) throws Exception { String action = opts.removeProperty("action", "a", null); Configurations.populateConfiguration(conf, opts); return run(conf, args, action); }
/** * Run the tool. Returns false if invalid options were given. */ public static boolean run(JDBCConfiguration conf, String[] args, Options opts) throws Exception { String action = opts.removeProperty("action", "a", null); Configurations.populateConfiguration(conf, opts); return run(conf, args, action); }
/** * Run the tool. Returns false if invalid options were given. */ public static boolean run(JDBCConfiguration conf, String[] args, Options opts) throws Exception { String action = opts.removeProperty("action", "a", null); Configurations.populateConfiguration(conf, opts); return run(conf, args, action, null, null); }
private void parseOptions() { if (_opts != null) return; _opts = Configurations.parseProperties(getProperties()); String transmit = StringUtil.trimToNull(_opts.removeProperty ("transmitPersistedObjectIds", "TransmitPersistedObjectIds", null)); if (transmit != null) _transmitPersIds = Boolean.valueOf (transmit); } }
private void parseOptions() { if (_opts != null) return; _opts = Configurations.parseProperties(getProperties()); String transmit = StringUtils.trimToNull(_opts.removeProperty ("transmitPersistedObjectIds", "TransmitPersistedObjectIds", null)); if (transmit != null) _transmitPersIds = Boolean.valueOf (transmit); } }
private void parseOptions() { if (_opts != null) return; _opts = Configurations.parseProperties(getProperties()); String transmit = StringUtil.trimToNull(_opts.removeProperty ("transmitPersistedObjectIds", "TransmitPersistedObjectIds", null)); if (transmit != null) _transmitPersIds = Boolean.valueOf (transmit); } }
private void parseOptions() { if (_opts != null) return; _opts = Configurations.parseProperties(getProperties()); String transmit = StringUtils.trimToNull(_opts.removeProperty ("transmitPersistedObjectIds", "TransmitPersistedObjectIds", null)); if (transmit != null) _transmitPersIds = Boolean.valueOf (transmit); } }