本文整理了Java中com.bagri.core.model.Query.isReadOnly
方法的一些代码示例,展示了Query.isReadOnly
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.isReadOnly
方法的具体详情如下:
包路径:com.bagri.core.model.Query
类名称:Query
方法名:isReadOnly
暂无
代码示例来源:origin: dsukhoroslov/bagri
@Override
public boolean isQueryReadOnly(String query, Properties props) throws BagriException {
Integer qKey = getQueryKey(query);
Query xQuery = xqCache.get(qKey);
if (xQuery == null) {
XQProcessor xqp;
String clientId = props.getProperty(pn_client_id);
if (clientId == null) {
logger.warn("isQueryReadOnly; got no clientId");
xqp = repo.getXQProcessor();
} else {
xqp = repo.getXQProcessor(clientId);
}
try {
return xqp.isQueryReadOnly(query, props);
} catch (XQException ex) {
throw new BagriException(ex, BagriException.ecQuery);
}
}
return xQuery.isReadOnly();
}
代码示例来源:origin: dsukhoroslov/bagri
@Override
public void write(ObjectDataOutput out, Query xQuery) throws IOException {
out.writeUTF(xQuery.getQuery());
out.writeBoolean(xQuery.isReadOnly());
out.writeObject(xQuery.getXdmQuery());
}
内容来源于网络,如有侵权,请联系作者删除!