org.hibernate.Query.setText()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(231)

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

Query.setText介绍

[英]Bind a positional String-valued parameter using streaming.
[中]使用流绑定位置字符串值参数。

代码示例

代码示例来源:origin: com.github.cafdataprocessing/corepolicy-hibernate

@Override
public Query setText(String s, String s1) {
  return query.setText(s, s1);
}

代码示例来源:origin: com.github.cafdataprocessing/corepolicy-hibernate

@Override
public Query setText(int i, String s) {
  return query.setText(i, s);
}

代码示例来源:origin: riotfamily/riot

public TypedQuery<T> setText(int position, String val) {
  query.setText(position, val);
  return this;
}

代码示例来源:origin: ezbz/projectx

@Override
public Query setText(final int position, final String val) {
 return query.setText(position, val);
}

代码示例来源:origin: riotfamily/riot

public TypedQuery<T> setText(String name, String val) {
  query.setText(name, val);
  return this;
}

代码示例来源:origin: ezbz/projectx

@Override
public Query setText(final String name, final String val) {
 return query.setText(name, val);
}

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

Query query = session.createQuery("from BaseObject as bobject where bobject.name = :name order by "
  + "bobject.number");
query.setText("name", doc.getFullName());
Iterator it = query.list().iterator();
    + "BaseObject as bobject where bobject.name = :name and bobject.className='XWiki.XWikiGroups' "
    + "and bobject.id=prop.id.id and prop.id.name='member' order by bobject.number");
  query2.setText("name", doc.getFullName());
  Iterator it2 = query2.list().iterator();
  while (it2.hasNext()) {

相关文章