- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.apache.openjpa.persistence.XMLPersistenceMetaDataParser.currentElement()
方法的一些代码示例,展示了XMLPersistenceMetaDataParser.currentElement()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLPersistenceMetaDataParser.currentElement()
方法的具体详情如下:
包路径:org.apache.openjpa.persistence.XMLPersistenceMetaDataParser
类名称:XMLPersistenceMetaDataParser
方法名:currentElement
[英]Return the current element being parsed. May be a class metadata, field metadata, query metadata, etc.
[中]返回正在分析的当前元素。可以是类元数据、字段元数据、查询元数据等。
代码示例来源:origin: org.apache.openjpa/openjpa-persistence
private void endExternalValues()
throws SAXException {
FieldMetaData fmd = (FieldMetaData) currentElement();
fmd.setExternalValues(_externalValues.toString());
_externalValues = null;
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
/**
* Parse query-hint.
*/
protected boolean startQueryHint(Attributes attrs)
throws SAXException {
QueryMetaData meta = (QueryMetaData) currentElement();
meta.addHint(attrs.getValue("name"), attrs.getValue("value"));
return true;
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
private boolean startExtendedStrategy(PersistenceStrategy ps, Attributes attrs)
throws SAXException {
FieldMetaData fmd = (FieldMetaData) currentElement();
parseExtendedStrategy(fmd, ps, attrs);
return true;
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
private void endExternalValues()
throws SAXException {
FieldMetaData fmd = (FieldMetaData) currentElement();
fmd.setExternalValues(_externalValues.toString());
_externalValues = null;
}
代码示例来源:origin: org.apache.openjpa/openjpa-persistence
/**
* Parse query-hint.
*/
protected boolean startQueryHint(Attributes attrs)
throws SAXException {
QueryMetaData meta = (QueryMetaData) currentElement();
meta.addHint(attrs.getValue("name"), attrs.getValue("value"));
return true;
}
代码示例来源:origin: org.apache.openejb.patch/openjpa-persistence
/**
* Parse query-hint.
*/
protected boolean startQueryHint(Attributes attrs)
throws SAXException {
QueryMetaData meta = (QueryMetaData) currentElement();
meta.addHint(attrs.getValue("name"), attrs.getValue("value"));
return true;
}
代码示例来源:origin: org.apache.openejb.patch/openjpa-persistence
private boolean startExtendedStrategy(PersistenceStrategy ps, Attributes attrs)
throws SAXException {
FieldMetaData fmd = (FieldMetaData) currentElement();
parseExtendedStrategy(fmd, ps, attrs);
return true;
}
代码示例来源:origin: org.apache.openejb.patch/openjpa
/**
* Parse query-hint.
*/
protected boolean startQueryHint(Attributes attrs)
throws SAXException {
QueryMetaData meta = (QueryMetaData) currentElement();
meta.addHint(attrs.getValue("name"), attrs.getValue("value"));
return true;
}
代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa
/**
* Parse order-by.
*/
private void endOrderBy()
throws SAXException {
FieldMetaData fmd = (FieldMetaData) currentElement();
String dec = currentText();
if (StringUtils.isEmpty(dec))
dec = Order.ELEMENT + " asc";
fmd.setOrderDeclaration(dec);
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
protected void endQueryString()
throws SAXException {
QueryMetaData meta = (QueryMetaData) currentElement();
meta.setQueryString(currentText());
}
代码示例来源:origin: org.apache.openjpa/openjpa-persistence
private void endFactory()
throws SAXException {
FieldMetaData fmd = (FieldMetaData) currentElement();
String factory = currentText();
fmd.setFactory(factory);
}
代码示例来源:origin: org.apache.openejb.patch/openjpa-persistence
protected void endQueryString()
throws SAXException {
QueryMetaData meta = (QueryMetaData) currentElement();
meta.setQueryString(currentText());
}
代码示例来源:origin: org.apache.openejb.patch/openjpa-persistence
private void endEntityListener()
throws SAXException {
// should be in endEntityListeners I think to merge callbacks
// into a single listener. But then the user cannot remove.
if (currentElement() == null && _callbacks != null) {
_repos.addSystemListener(new PersistenceListenerAdapter
(_callbacks));
_callbacks = null;
}
_listener = null;
}
代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa
private void endEntityListener()
throws SAXException {
// should be in endEntityListeners I think to merge callbacks
// into a single listener. But then the user cannot remove.
if (currentElement() == null && _callbacks != null) {
_repos.addSystemListener(new PersistenceListenerAdapter
(_callbacks));
_callbacks = null;
}
_listener = null;
}
代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa
protected void endQueryString()
throws SAXException {
QueryMetaData meta = (QueryMetaData) currentElement();
meta.setQueryString(currentText());
}
代码示例来源:origin: org.apache.openejb.patch/openjpa
private void endFactory()
throws SAXException {
FieldMetaData fmd = (FieldMetaData) currentElement();
String factory = currentText();
fmd.setFactory(factory);
}
代码示例来源:origin: org.apache.openjpa/openjpa-persistence
/**
* Parse exclude-default-listeners.
*/
private boolean startExcludeDefaultListeners(Attributes attrs)
throws SAXException {
if (!isMetaDataMode())
return false;
ClassMetaData meta = (ClassMetaData) currentElement();
meta.getLifecycleMetaData().setIgnoreSystemListeners(true);
return true;
}
代码示例来源:origin: org.apache.openjpa/openjpa-persistence
/**
* Parse exclude-superclass-listeners.
*/
private boolean startExcludeSuperclassListeners(Attributes attrs)
throws SAXException {
if (!isMetaDataMode())
return false;
ClassMetaData meta = (ClassMetaData) currentElement();
meta.getLifecycleMetaData().setIgnoreSuperclassCallbacks
(LifecycleMetaData.IGNORE_HIGH);
return true;
}
代码示例来源:origin: org.apache.openejb.patch/openjpa-persistence
/**
* Parse exclude-default-listeners.
*/
private boolean startExcludeDefaultListeners(Attributes attrs)
throws SAXException {
if (!isMetaDataMode())
return false;
ClassMetaData meta = (ClassMetaData) currentElement();
meta.getLifecycleMetaData().setIgnoreSystemListeners(true);
return true;
}
代码示例来源:origin: org.apache.openejb.patch/openjpa
/**
* Parse exclude-superclass-listeners.
*/
private boolean startExcludeSuperclassListeners(Attributes attrs)
throws SAXException {
if (!isMetaDataMode())
return false;
ClassMetaData meta = (ClassMetaData) currentElement();
meta.getLifecycleMetaData().setIgnoreSuperclassCallbacks
(LifecycleMetaData.IGNORE_HIGH);
return true;
}
$('*').index(currentElement) 会给出一个唯一的数字吗? 我问是因为我无法理解 JQuery docs 中的索引方法。 最佳答案 是的,它将返回您可以在 jQuery 集合中
本文整理了Java中org.apache.openjpa.persistence.XMLPersistenceMetaDataParser.currentElement()方法的一些代码示例,展示了X
本文整理了Java中com.google.gdata.util.common.xml.XmlWriter.currentElement()方法的一些代码示例,展示了XmlWriter.currentE
我是一名优秀的程序员,十分优秀!