public class Request extends Object
Constructor and Description |
---|
Request() |
Modifier and Type | Method and Description |
---|---|
static Request |
current() |
Class<?> |
getBeanClass()
Get the entity class on which the operation is being performed.
|
Context |
getContext()
Get the domain object context.
|
Criteria |
getCriteria() |
Map<String,Object> |
getData() |
List<String> |
getFields() |
int |
getLimit() |
String |
getModel() |
int |
getOffset() |
Map<String,Object> |
getRawContext()
Get the raw context.
|
List<Object> |
getRecords() |
Map<String,List<String>> |
getRelated() |
ScriptHelper |
getScriptHelper()
Get a
ScriptHelper to evaluate expressions with current context. |
List<String> |
getSortBy() |
void |
setData(Map<String,Object> data) |
void |
setFields(List<String> fields) |
void |
setLimit(int limit) |
void |
setModel(String model)
Set the model class that represents the request
data . |
void |
setOffset(int offset) |
void |
setRecords(List<Object> records) |
void |
setRelated(Map<String,List<String>> related) |
void |
setSortBy(List<String> sortBy) |
public static Request current()
public String getModel()
public void setModel(String model)
data
.model
- the model classpublic Class<?> getBeanClass()
public int getLimit()
public void setLimit(int limit)
public int getOffset()
public void setOffset(int offset)
public Criteria getCriteria()
public Map<String,Object> getRawContext()
The returned map is mutable so updating this map may cause some unexpected results. So use this method with care.
public ScriptHelper getScriptHelper()
ScriptHelper
to evaluate expressions with current context.ScriptHelper
for current context