本文整理了Java中org.apache.openjpa.lib.util.Options.clear()
方法的一些代码示例,展示了Options.clear()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Options.clear()
方法的具体详情如下:
包路径:org.apache.openjpa.lib.util.Options
类名称:Options
方法名:clear
暂无
代码示例来源:origin: org.apache.openejb.patch/openjpa-kernel
/**
* Set a map of properties to pass to the {@link InitialContext}
* constructor for JNDI lookups. Implementation of
* {@link GenericConfigurable}.
*/
public void setInto(Options opts) {
if (opts != null && !opts.isEmpty()) {
_ctxProps = new Properties();
_ctxProps.putAll(opts);
opts.clear();
} else
_ctxProps = null;
}
代码示例来源:origin: org.apache.openjpa/openjpa-kernel
/**
* Set a map of properties to pass to the {@link InitialContext}
* constructor for JNDI lookups. Implementation of
* {@link GenericConfigurable}.
*/
public void setInto(Options opts) {
if (opts != null && !opts.isEmpty()) {
_ctxProps = new Properties();
_ctxProps.putAll(opts);
opts.clear();
} else
_ctxProps = null;
}
代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa
/**
* Set a map of properties to pass to the {@link InitialContext}
* constructor for JNDI lookups. Implementation of
* {@link GenericConfigurable}.
*/
public void setInto(Options opts) {
if (opts != null && !opts.isEmpty()) {
_ctxProps = new Properties();
_ctxProps.putAll(opts);
opts.clear();
} else
_ctxProps = null;
}
代码示例来源:origin: org.apache.openejb.patch/openjpa
/**
* Set a map of properties to pass to the {@link InitialContext}
* constructor for JNDI lookups. Implementation of
* {@link GenericConfigurable}.
*/
public void setInto(Options opts) {
if (opts != null && !opts.isEmpty()) {
_ctxProps = new Properties();
_ctxProps.putAll(opts);
opts.clear();
} else
_ctxProps = null;
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
/**
* Set a map of properties to pass to the {@link InitialContext}
* constructor for JNDI lookups. Implementation of
* {@link GenericConfigurable}.
*/
public void setInto(Options opts) {
if (opts != null && !opts.isEmpty()) {
_ctxProps = new Properties();
_ctxProps.putAll(opts);
opts.clear();
} else
_ctxProps = null;
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
public void setInto(Options opts) {
if (!opts.isEmpty()) {
Map.Entry<Object, Object> e;
for (Iterator<Map.Entry<Object, Object>> iter =
opts.entrySet().iterator(); iter.hasNext();) {
e = iter.next();
_configuredLevels.put(shorten((String) e.getKey()), Short.valueOf(getLevel((String) e.getValue())));
}
opts.clear();
}
}
代码示例来源:origin: org.apache.openejb.patch/openjpa
public void setInto(Options opts) {
if (!opts.isEmpty()) {
Map.Entry<Object, Object> e;
for (Iterator<Map.Entry<Object, Object>> iter =
opts.entrySet().iterator(); iter.hasNext();) {
e = iter.next();
_configuredLevels.put(shorten((String) e.getKey()), Short.valueOf(getLevel((String) e.getValue())));
}
opts.clear();
}
}
代码示例来源:origin: org.apache.openjpa/openjpa-lib
public void setInto(Options opts) {
if (!opts.isEmpty()) {
Map.Entry<Object, Object> e;
for (Iterator<Map.Entry<Object, Object>> iter =
opts.entrySet().iterator(); iter.hasNext();) {
e = iter.next();
_configuredLevels.put(shorten((String) e.getKey()), Short.valueOf(getLevel((String) e.getValue())));
}
opts.clear();
}
}
代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa
public void setInto(Options opts) {
if (!opts.isEmpty()) {
Map.Entry e;
for (Iterator iter = opts.entrySet().iterator(); iter.hasNext();) {
e = (Map.Entry) iter.next();
_configuredLevels.put(shorten((String) e.getKey()),
new Short(getLevel((String) e.getValue())));
}
opts.clear();
}
}
内容来源于网络,如有侵权,请联系作者删除!