org.apache.openjpa.lib.conf.Value.getDefault()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(4.9k)|赞(0)|评价(0)|浏览(86)

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

Value.getDefault介绍

[英]The default value for the property as a string.
[中]属性的默认值为字符串。

代码示例

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

/**
 * Gets the original value. Original value denotes the Stringified form of 
 * this Value, from which it has been set, if ever. If this Value has never 
 * been set to a non-default value, then returns the default value, which 
 * itself can be null. 
 * 
 * @since 1.1.0
 */
public String getOriginalValue() {
  return (originalValue == null) ? getDefault() : originalValue;
}

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

/**
 * Gets the original value. Original value denotes the Stringified form of 
 * this Value, from which it has been set, if ever. If this Value has never 
 * been set to a non-default value, then returns the default value, which 
 * itself can be null. 
 * 
 * @since 1.1.0
 */
public String getOriginalValue() {
  return (originalValue == null) ? getDefault() : originalValue;
}

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

/**
 * Gets the original value. Original value denotes the Stringified form of 
 * this Value, from which it has been set, if ever. If this Value has never 
 * been set to a non-default value, then returns the default value, which 
 * itself can be null. 
 * 
 * @since 1.1.0
 */
public String getOriginalValue() {
  return (originalValue == null) ? getDefault() : originalValue;
}

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

/**
 * Gets the original value. Original value denotes the Stringified form of 
 * this Value, from which it has been set, if ever. If this Value has never 
 * been set to a non-default value, then returns the default value, which 
 * itself can be null. 
 * 
 * @since 1.1.0
 */
public String getOriginalValue() {
  return (originalValue == null) ? getDefault() : originalValue;
}

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

boolean isDefault(Object val) {
  return val != null && val.toString().equals(getDefault());
}

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

boolean isDefault(Object val) {
  return val != null && val.toString().equals(getDefault());
}

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

boolean isDefault(Object val) {
  return val != null && val.toString().equals(getDefault());
}

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

boolean isDefault(Object val) {
  return val != null && val.toString().equals(getDefault());
}

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

if ((str != null && (storeDefaults || !str.equals(val.getDefault()))))
  setValue(clone, val);

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

public void valueChanged(Value val) {
  if (_changeSupport == null && _props == null)
    return;
  String newString = val.getString();
  if (_changeSupport != null)
    _changeSupport.firePropertyChange(val.getProperty(), null, newString);
  // keep cached props up to date
  if (_props != null) {
    if (newString == null)
      Configurations.removeProperty(val.getProperty(), _props);
    else if (Configurations.containsProperty(val, _props)
      || val.getDefault() == null
      || !val.getDefault().equals(newString))
      setValue(_props, val);
  }
}

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

if ((str != null && (storeDefaults || !str.equals(val.getDefault()))))
  setValue(clone, val);

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

if ((str != null && (storeDefaults || !str.equals(val.getDefault()))))
  setValue(clone, val);

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

|| !str.equals(val.getDefault())))
put(clone, val, str);

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

public void valueChanged(Value val) {
  if (_changeSupport == null && _props == null)
    return;
  String newString = val.getString();
  if (_changeSupport != null)
    _changeSupport.firePropertyChange(val.getProperty(), null, newString);
  // keep cached props up to date
  if (_props != null) {
    if (newString == null)
      Configurations.removeProperty(val.getProperty(), _props);
    else if (Configurations.containsProperty(val, _props)
      || val.getDefault() == null
      || !val.getDefault().equals(newString))
      setValue(_props, val);
  }
}

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

public void valueChanged(Value val) {
  if (_changeSupport == null && _props == null)
    return;
  String newString = val.getString();
  if (_changeSupport != null)
    _changeSupport.firePropertyChange(val.getProperty(), null, newString);
  // keep cached props up to date
  if (_props != null) {
    if (newString == null)
      Configurations.removeProperty(val.getProperty(), _props);
    else if (Configurations.containsProperty(val, _props)
      || val.getDefault() == null
      || !val.getDefault().equals(newString))
      setValue(_props, val);
  }
}

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

public void valueChanged(Value val) {
  if (_changeSupport == null && _props == null)
    return;
  String newString = val.getString();
  if (_changeSupport != null)
    _changeSupport.firePropertyChange(val.getProperty(), null,
      newString);
  // keep cached props up to date
  if (_props != null) {
    if (newString == null)
      Configurations.removeProperty(val.getProperty(), _props);
    else if (Configurations.containsProperty(val.getProperty(), _props)
      || val.getDefault() == null
      || !val.getDefault().equals(newString))
      put(_props, val, newString);
  }
}

相关文章