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

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

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

Query.setLocale介绍

[英]Bind a positional Locale-valued parameter.
[中]绑定位置语言环境值参数。

代码示例

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

  1. public TypedQuery<T> setLocale(int position, Locale locale) {
  2. query.setLocale(position, locale);
  3. return this;
  4. }

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

  1. @Override
  2. public Query setLocale(final String name, final Locale locale) {
  3. return query.setLocale(name, locale);
  4. }

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

  1. @Override
  2. public Query setLocale(int i, Locale locale) {
  3. return query.setLocale(i, locale);
  4. }

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

  1. @Override
  2. public Query setLocale(String s, Locale locale) {
  3. return query.setLocale(s, locale);
  4. }

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

  1. public TypedQuery<T> setLocale(String name, Locale locale) {
  2. query.setLocale(name, locale);
  3. return this;
  4. }

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

  1. @Override
  2. public Query setLocale(final int position, final Locale locale) {
  3. return query.setLocale(position, locale);
  4. }

相关文章