public interface Request
Modifier and Type | Interface and Description |
---|---|
static class |
Request.Type
Represents request types, mapping to CRUD operations.
|
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_NAME_LIMIT |
static String |
PARAM_NAME_OFFSET |
static String |
PARAM_NAME_OUTPUT |
Modifier and Type | Method and Description |
---|---|
void |
extractParameters()
Extract limit and offset.
|
List<List<RequestValue>> |
getChildrenParameters()
Returns children CUD requests to a single parent for a hierarchical SQL Resource.
|
HttpRequestAttributes |
getHttpRequestAttributes()
Returns http request attributes.
|
RequestLogger |
getLogger()
Returns request logger.
|
List<RequestValue> |
getParameters()
Returns ordered list of parameters, for example the selection filter for update request.
|
Request |
getParent()
Returns parent, if any.
|
List<RequestValue> |
getResourceIdentifiers()
Returns ordered list of primary key values for a CRUD request on a single object (row).
|
Integer |
getSelectLimit()
Returns select row limit, if any.
|
Integer |
getSelectOffset()
Returns select row offset, if any.
|
String |
getSqlResource()
Returns SQL Resource name.
|
Request.Type |
getType()
Returns request type.
|
boolean |
hasParameter(String name)
Returns true if request has parameter with the given name.
|
void |
setParameters(List<RequestValue> params)
Sets parameters for request.
|
void |
setParent(Request parentRequest)
Sets parent request.
|
void |
setSelectLimit(Integer integer)
Sets select limit.
|
void |
setSelectOffset(Integer integer)
Sets select offset.
|
static final String PARAM_NAME_LIMIT
static final String PARAM_NAME_OFFSET
static final String PARAM_NAME_OUTPUT
List<List<RequestValue>> getChildrenParameters()
HttpRequestAttributes getHttpRequestAttributes()
RequestLogger getLogger()
List<RequestValue> getParameters()
Request getParent()
List<RequestValue> getResourceIdentifiers()
Integer getSelectLimit()
Integer getSelectOffset()
String getSqlResource()
Request.Type getType()
boolean hasParameter(String name)
void setParameters(List<RequestValue> params)
void setParent(Request parentRequest)
void setSelectLimit(Integer integer)
void setSelectOffset(Integer integer)
void extractParameters() throws InvalidRequestException
InvalidRequestException
- if request is invalidCopyright © 2011-2018 restSQL Project Contributors