|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
public interface NativeQuery<T extends NativeQuery<?,?>,U>
Describes basic methods for doing native queries
方法摘要 | |
---|---|
long |
count()
Executes the query and returns the number of results |
List<U> |
list()
Executes the query and get a list of entities as the result. |
List<U> |
listPage(int firstResult,
int maxResults)
Executes the query and get a list of entities as the result. |
T |
parameter(String name,
Object value)
Add parameter to be replaced in query for index, e.g. |
U |
singleResult()
Executes the query and returns the resulting entity or null if no entity matches the query criteria. |
T |
sql(String selectClause)
Hand in the SQL statement you want to execute. |
方法详细信息 |
---|
T sql(String selectClause)
T parameter(String name, Object value)
long count()
U singleResult()
ActivitiException
- when the query results in more than one
entities.List<U> list()
List<U> listPage(int firstResult, int maxResults)
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |