org.apache.openjpa.lib.util.Options.removeProperty()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(7.5k)|赞(0)|评价(0)|浏览(100)

本文整理了Java中org.apache.openjpa.lib.util.Options.removeProperty()方法的一些代码示例,展示了Options.removeProperty()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Options.removeProperty()方法的具体详情如下:
包路径:org.apache.openjpa.lib.util.Options
类名称:Options
方法名:removeProperty

Options.removeProperty介绍

[英]Specialization of Properties#remove(Object) to allow a value to appear under either of two keys; useful for short and long versions of command-line flags.
[中]属性的专门化#移除(对象)以允许一个值出现在两个键中的任意一个下;适用于命令行标志的短版本和长版本。

代码示例

代码示例来源:origin: org.apache.openejb.patch/openjpa

/**
 * 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;
}

代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa

/**
 * 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;
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

/**
 * 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;
}

代码示例来源:origin: org.apache.openjpa/openjpa-lib

/**
 * 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;
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

/**
 * 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);
}

代码示例来源:origin: org.apache.openjpa/openjpa-lib

/**
 * 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);
}

代码示例来源:origin: org.apache.openjpa/openjpa-jdbc

/**
 * 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);
}

代码示例来源:origin: org.apache.openejb.patch/openjpa-jdbc

/**
 * 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);
}

代码示例来源:origin: org.apache.openjpa/openjpa-jdbc

/**
 * 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);
}

代码示例来源:origin: org.apache.openejb.patch/openjpa-jdbc

/**
 * 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);
}

代码示例来源:origin: org.apache.openejb.patch/openjpa

/**
 * 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);
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

/**
 * 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);
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

/**
 * 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);
}

代码示例来源:origin: org.apache.openjpa/openjpa-jdbc

/**
 * 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);
}

代码示例来源:origin: org.apache.openejb.patch/openjpa-jdbc

/**
 * 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);
}

代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa

/**
 * 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);
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

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);
  }
}

代码示例来源:origin: org.apache.openejb.patch/openjpa-kernel

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);
  }
}

代码示例来源:origin: org.apache.openjpa/openjpa-kernel

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);
  }
}

代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa

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);
  }
}

相关文章