|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectorg.activiti.engine.impl.AbstractNativeQuery<T,U>
public abstract class AbstractNativeQuery<T extends NativeQuery<?,?>,U>
Abstract superclass for all native query types.
字段摘要 | |
---|---|
protected CommandContext |
commandContext
|
protected CommandExecutor |
commandExecutor
|
protected int |
firstResult
|
protected int |
maxResults
|
protected org.activiti.engine.impl.AbstractNativeQuery.ResultType |
resultType
|
构造方法摘要 | |
---|---|
|
AbstractNativeQuery(CommandContext commandContext)
|
protected |
AbstractNativeQuery(CommandExecutor commandExecutor)
|
方法摘要 | |
---|---|
long |
count()
Executes the query and returns the number of results |
Object |
execute(CommandContext commandContext)
|
abstract long |
executeCount(CommandContext commandContext,
Map<String,Object> parameterMap)
|
abstract List<U> |
executeList(CommandContext commandContext,
Map<String,Object> parameterMap,
int firstResult,
int maxResults)
Executes the actual query to retrieve the list of results. |
U |
executeSingleResult(CommandContext commandContext)
|
Map<String,Object> |
getParameters()
|
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. |
AbstractNativeQuery<T,U> |
setCommandExecutor(CommandExecutor commandExecutor)
|
U |
singleResult()
Executes the query and returns the resulting entity or null if no entity matches the query criteria. |
T |
sql(String sqlStatement)
Hand in the SQL statement you want to execute. |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
protected transient CommandExecutor commandExecutor
protected transient CommandContext commandContext
protected int maxResults
protected int firstResult
protected org.activiti.engine.impl.AbstractNativeQuery.ResultType resultType
构造方法详细信息 |
---|
protected AbstractNativeQuery(CommandExecutor commandExecutor)
public AbstractNativeQuery(CommandContext commandContext)
方法详细信息 |
---|
public AbstractNativeQuery<T,U> setCommandExecutor(CommandExecutor commandExecutor)
public T sql(String sqlStatement)
NativeQuery
复制的描述
NativeQuery<T extends NativeQuery<?,?>,U>
中的 sql
public T parameter(String name, Object value)
NativeQuery
复制的描述
NativeQuery<T extends NativeQuery<?,?>,U>
中的 parameter
public U singleResult()
NativeQuery
复制的描述
NativeQuery<T extends NativeQuery<?,?>,U>
中的 singleResult
public List<U> list()
NativeQuery
复制的描述
NativeQuery<T extends NativeQuery<?,?>,U>
中的 list
public List<U> listPage(int firstResult, int maxResults)
NativeQuery
复制的描述
NativeQuery<T extends NativeQuery<?,?>,U>
中的 listPage
public long count()
NativeQuery
复制的描述
NativeQuery<T extends NativeQuery<?,?>,U>
中的 count
public Object execute(CommandContext commandContext)
Command<Object>
中的 execute
public abstract long executeCount(CommandContext commandContext, Map<String,Object> parameterMap)
public abstract List<U> executeList(CommandContext commandContext, Map<String,Object> parameterMap, int firstResult, int maxResults)
maxResults
- firstResult
- page
- used if the results must be paged. If null, no paging will be
applied.public U executeSingleResult(CommandContext commandContext)
public Map<String,Object> getParameters()
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |