- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.setShouldExecuteSelectNodes()
方法的一些代码示例,展示了XPathFragment.setShouldExecuteSelectNodes()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XPathFragment.setShouldExecuteSelectNodes()
方法的具体详情如下:
包路径:org.eclipse.persistence.internal.oxm.XPathFragment
类名称:XPathFragment
方法名:setShouldExecuteSelectNodes
暂无
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
private int hasIndex(String xpathString) {
int index;
int startindex = xpathString.lastIndexOf('[');
if ((startindex != -1) && (xpathString.lastIndexOf(']') != -1)) {
setContainsIndex(true);
StringTokenizer st = new StringTokenizer(xpathString, "[]");
String element = st.nextToken();
String indexString = st.nextToken();
try {
index = Integer.valueOf(indexString).intValue();
} catch (NumberFormatException e) {
setShouldExecuteSelectNodes(true);
index = -1;
}
shortName = element;
} else {
index = -1;
}
return index;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
private int hasIndex(String xpathString) {
int index = -1;
int startindex = xpathString.lastIndexOf('[');
if ((startindex != -1) && (xpathString.lastIndexOf(']') != -1)) {
StringTokenizer st = new StringTokenizer(xpathString, "[]");
String element = st.nextToken();
while(st.hasMoreTokens()) {
String indexString = st.nextToken();
try {
index = Integer.valueOf(indexString).intValue();
setContainsIndex(true);
} catch (NumberFormatException e) {
int equalsOffset = indexString.indexOf('=');
if (equalsOffset >= 0) {
XPathFragment xPathFragment = new XPathFragment(indexString.substring(0, equalsOffset));
String value = indexString.substring(equalsOffset + 2, indexString.length() - 1);
predicate = new XPathPredicate(xPathFragment, value);
} else {
setContainsIndex(true);
}
setShouldExecuteSelectNodes(true);
}
}
shortName = element;
} else {
index = -1;
}
return index;
}
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
private int hasIndex(String xpathString) {
int index = -1;
int startindex = xpathString.lastIndexOf('[');
if ((startindex != -1) && (xpathString.lastIndexOf(']') != -1)) {
StringTokenizer st = new StringTokenizer(xpathString, "[]");
String element = st.nextToken();
while(st.hasMoreTokens()) {
String indexString = st.nextToken();
try {
index = Integer.parseInt(indexString);
setContainsIndex(true);
} catch (NumberFormatException e) {
int equalsOffset = indexString.indexOf('=');
if (equalsOffset >= 0) {
XPathFragment xPathFragment = new XPathFragment(indexString.substring(0, equalsOffset));
String value = indexString.substring(equalsOffset + 2, indexString.length() - 1);
predicate = new XPathPredicate(xPathFragment, value);
} else {
setContainsIndex(true);
}
setShouldExecuteSelectNodes(true);
}
}
shortName = element;
} else {
index = -1;
}
return index;
}
代码示例来源:origin: com.haulmont.thirdparty/eclipselink
setShouldExecuteSelectNodes(true);
return;
setShouldExecuteSelectNodes(true);
return;
setShouldExecuteSelectNodes(true);
shortName = xpathString.substring(xpathString.lastIndexOf('/') + 1).intern();
indexValue = hasIndex(xpathString);
代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core
setShouldExecuteSelectNodes(true);
return;
setShouldExecuteSelectNodes(true);
return;
setShouldExecuteSelectNodes(true);
shortName = xpathString.substring(xpathString.lastIndexOf('/') + 1).intern();
indexValue = hasIndex(xpathString);
代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence
setShouldExecuteSelectNodes(true);
return;
setShouldExecuteSelectNodes(true);
return;
setShouldExecuteSelectNodes(true);
shortName = xpathString;
indexValue = hasIndex(xpathString);
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.setShouldExecuteSelectNodes()方法的一些代码示例,
我是一名优秀的程序员,十分优秀!