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

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

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

Value.unalias介绍

[英]Unalias the given setting.
[中]Unalias是给定的设置。

代码示例

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

/**
 * Unalias the given setting.
 */
public String unalias(String str) {
  return unalias(str, aliases, false);
}

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

/**
 * Unalias the given setting.
 */
public String unalias(String str) {
  return unalias(str, aliases, false);
}

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

/**
 * Unalias the given setting.
 */
public String unalias(String str) {
  return unalias(str, aliases, false);
}

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

/**
 * Unalias the given setting.
 */
public String unalias(String str) {
  return unalias(str, aliases, false);
}

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

/**
 * Sets the type of the partitions. 
 * Each partition is a DataCache itself.
 * 
 * @param type the name of the type that implements {@linkplain DataCache} interface.
 * Aliases such as <code>"concurrent"</code> is also recognized.
 * 
 * @throws Exception if the given type is not resolvable to a loadable type.
 */
public void setPartitionType(String type) throws Exception {
  Value value = conf.getValue("DataCache");
  ClassLoader ctxLoader = AccessController.doPrivileged(J2DoPrivHelper.getContextClassLoaderAction());
  ClassLoader loader = conf.getClassResolverInstance().getClassLoader(null, ctxLoader);
  _type = (Class<? extends DataCache>) AccessController.doPrivileged(
      J2DoPrivHelper.getForNameAction(value.unalias(type), true, loader));
}

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

/**
 * Sets the type of the partitions. 
 * Each partition is a DataCache itself.
 * 
 * @param type the name of the type that implements {@linkplain DataCache} interface.
 * Aliases such as <code>"concurrent"</code> is also recognized.
 * 
 * @throws Exception if the given type is not resolvable to a loadable type.
 */
public void setPartitionType(String type) throws Exception {
  Value value = conf.getValue("DataCache");
  ClassLoader ctxLoader = AccessController.doPrivileged(J2DoPrivHelper.getContextClassLoaderAction());
  ClassLoader loader = conf.getClassResolverInstance().getClassLoader(null, ctxLoader);
  _type = (Class<? extends DataCache>) AccessController.doPrivileged(
      J2DoPrivHelper.getForNameAction(value.unalias(type), true, loader));
}

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

return super.unalias(str);
str = str.trim();
if (str.length() <= 0)
  return super.unalias(str);

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

/**
 * Sets the type of the partitions. 
 * Each partition is a DataCache itself.
 * 
 * @param type the name of the type that implements {@linkplain DataCache} interface.
 * Aliases such as <code>"concurrent"</code> is also recognized.
 * 
 * @throws Exception if the given type is not resolvable to a loadable type.
 */
public void setPartitionType(String type) throws Exception {
  Value value = conf.getValue("DataCache");
  ClassLoader ctxLoader = AccessController.doPrivileged(J2DoPrivHelper.getContextClassLoaderAction());
  ClassLoader loader = conf.getClassResolverInstance().getClassLoader(null, ctxLoader);
  _type = (Class<? extends DataCache>) AccessController.doPrivileged(
      J2DoPrivHelper.getForNameAction(value.unalias(type), true, loader));
}

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

/**
 * Sets the type of the partitions. 
 * Each partition is a DataCache itself.
 * 
 * @param type the name of the type that implements {@linkplain DataCache} interface.
 * Aliases such as <code>"concurrent"</code> is also recognized.
 * 
 * @throws Exception if the given type is not resolvable to a loadable type.
 */
public void setPartitionType(String type) throws Exception {
  Value value = conf.getValue("DataCache");
  ClassLoader ctxLoader = AccessController.doPrivileged(J2DoPrivHelper.getContextClassLoaderAction());
  ClassLoader loader = conf.getClassResolverInstance().getClassLoader(null, ctxLoader);
  _type = (Class<? extends DataCache>) AccessController.doPrivileged(
      J2DoPrivHelper.getForNameAction(value.unalias(type), true, loader));
}

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

return super.unalias(str);
str = str.trim();
if (str.length() <= 0)
  return super.unalias(str);

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

return super.unalias(str);
str = str.trim();
if (str.length() <= 0)
  return super.unalias(str);

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

return super.unalias(str);
str = str.trim();
if (str.length() <= 0)
  return super.unalias(str);

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

/**
 * Set this value from the given string. If the given string is null or
 * empty and a default is defined, the default is used. If the given
 * string(or default) is an alias key, it will be converted to the
 * corresponding value internally.
 * <br>
 * If this Value is being set to a non-default value for the first time
 * (as designated by <code>originalString</code> being null), then the
 * value is remembered as <em>original</em>. This original value is used
 * for equality and hashCode computation if this Value is
 * {@link #isDynamic() dynamic}. 
 *
 */
public void setString(String val) {
  assertChangeable();
  String str = unalias(val);
  try {
    setInternalString(str);
    if (originalValue == null && val != null && !isDefault(val)) {
      originalValue = getString();
    }
  } catch (ParseException pe) {
    throw pe;
  } catch (RuntimeException re) {
    throw new ParseException(prop + ": " + val, re);
  }
}

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

/**
 * Set this value from the given string. If the given string is null or
 * empty and a default is defined, the default is used. If the given
 * string(or default) is an alias key, it will be converted to the
 * corresponding value internally.
 * <br>
 * If this Value is being set to a non-default value for the first time
 * (as designated by <code>originalString</code> being null), then the
 * value is remembered as <em>original</em>. This original value is used
 * for equality and hashCode computation if this Value is
 * {@link #isDynamic() dynamic}. 
 *
 */
public void setString(String val) {
  assertChangeable();
  String str = unalias(val);
  try {
    setInternalString(str);
    if (originalValue == null && val != null && !isDefault(val)) {
      originalValue = getString();
    }
  } catch (ParseException pe) {
    throw pe;
  } catch (RuntimeException re) {
    throw new ParseException(prop + ": " + val, re);
  }
}

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

/**
 * Set this value from the given string. If the given string is null or
 * empty and a default is defined, the default is used. If the given
 * string(or default) is an alias key, it will be converted to the
 * corresponding value internally.
 * <br>
 * If this Value is being set to a non-default value for the first time
 * (as designated by <code>originalString</code> being null), then the
 * value is remembered as <em>original</em>. This original value is used
 * for equality and hashCode computation if this Value is
 * {@link #isDynamic() dynamic}. 
 *
 */
public void setString(String val) {
  assertChangeable();
  String str = unalias(val);
  try {
    setInternalString(str);
    if (originalValue == null && val != null && !isDefault(val)) {
      originalValue = getString();
    }
  } catch (ParseException pe) {
    throw pe;
  } catch (RuntimeException re) {
    throw new ParseException(prop + ": " + val, re);
  }
}

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

/**
 * Set this value from the given string. If the given string is null or
 * empty and a default is defined, the default is used. If the given
 * string(or default) is an alias key, it will be converted to the
 * corresponding value internally.
 * <br>
 * If this Value is being set to a non-default value for the first time
 * (as designated by <code>originalString</code> being null), then the
 * value is remembered as <em>original</em>. This original value is used
 * for equality and hashCode computation if this Value is
 * {@link #isDynamic() dynamic}. 
 *
 */
public void setString(String val) {
  assertChangeable();
  String str = unalias(val);
  try {
    setInternalString(str);
    if (originalValue == null && val != null && !isDefault(val)) {
      originalValue = getString();
    }
  } catch (ParseException pe) {
    throw pe;
  } catch (RuntimeException re) {
    throw new ParseException(prop + ": " + val, re);
  }
}

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

else {
  Value val = conf.getValue("TransactionMode");
  managed = Boolean.parseBoolean(val.unalias(str));
  Value val = conf.getValue("ConnectionRetainMode");
  try {
    retainMode = Integer.parseInt(val.unalias((String) obj));
  } catch (Exception e) {
    throw new ArgumentException(_loc.get("bad-em-prop", "openjpa.ConnectionRetainMode", obj),

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

else {
  Value val = conf.getValue("TransactionMode");
  managed = Boolean.parseBoolean(val.unalias(str));
  Value val = conf.getValue("ConnectionRetainMode");
  try {
    retainMode = Integer.parseInt(val.unalias((String) obj));
  } catch (Exception e) {
    throw new ArgumentException(_loc.get("bad-em-prop", "openjpa.ConnectionRetainMode", obj),

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

else {
  Value val = conf.getValue("TransactionMode");
  managed = Boolean.parseBoolean(val.unalias(str));
  Value val = conf.getValue("ConnectionRetainMode");
  try {
    retainMode = Integer.parseInt(val.unalias((String) obj));
  } catch (Exception e) {
    throw new ArgumentException(_loc.get("bad-em-prop", "openjpa.ConnectionRetainMode", obj),

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

else {
  Value val = conf.getValue("TransactionMode");
  managed = Boolean.parseBoolean(val.unalias(str));
  Value val = conf.getValue("ConnectionRetainMode");
  try {
    retainMode = Integer.parseInt(val.unalias((String) obj));
  } catch (Exception e) {
    throw new ArgumentException(_loc.get("bad-em-prop", "openjpa.ConnectionRetainMode", obj),

相关文章