Hibernate--Query
来源:互联网 发布:imagelab mac 下载 编辑:程序博客网 时间:2024/05/22 13:25
- public interface Query
An object-oriented representation of a Hibernate query. A Query instance is obtained by calling Session.createQuery(). This interface exposes some extra functionality beyond that provided by Session.iterate() andSession.find():
- a particular page of the result set may be selected by calling setMaxResults(), setFirstResult()
- named query parameters may be used
- the results may be returned as an instance of ScrollableResults
Named query parameters are tokens of the form :name in the query string. A value is bound to the integer parameter :foo by calling
setParameter("foo", foo, Hibernate.INTEGER);
for example. A name may appear multiple times in the query string.
JDBC-style ? parameters are also supported. To bind a value to a JDBC-style parameter use a set method that accepts an int positional argument (numbered from zero, contrary to JDBC).
You may not mix and match JDBC-style parameters and named parameters in the same query.
Queries are executed by calling list(), scroll() or iterate(). A query may be re-executed by subsequent invocations. Its lifespan is, however, bounded by the lifespan of the Session that created it.
0 0
- Hibernate--Query
- Hibernate Query
- Hibernate中Query.uniqueResult();
- hibernate hbm xml query
- HQL(Hibernate Query Language)
- Hibernate Query Language (HQL)
- Hibernate-Criteria Query
- hibernate SQLQuery & Query
- hibernate query 模糊查询
- HIbernate Criteria Query
- Hibernate之query.scroll();
- HIbernate Criteria Query
- Hibernate Query Language查询
- Hibernate中Query.uniqueResult();
- hibernate知识点---query.list()
- Hibernate Query Language查询
- about Query of hibernate
- Hibernate中Query.uniqueResult();
- Yii的常用URL和渲染方法
- 书讯: CFHipsterRef: Low-Level Programming on iOS & Mac OS X
- [转载]二叉树逆序遍历的迭代解法
- 电脑突发故障应急处理方法
- 柠檬水
- Hibernate--Query
- NYOJ54 小明的存钱计划
- shel脚本中的一些特殊符号
- java nio MappedByteBuffer 文件映射
- TreeMap内部实现简介
- VS2008 集成Lua解释器
- RS232串口通信详解(转载)
- 关于Integer的parseInt(String s, int radix)方法的使用
- Gamma 校正