Package | Description |
---|---|
org.restsql.core |
Contains core framework interfaces, an API for deployments that use
restSQL as a library, rather than an HTTP service.
|
org.restsql.security |
Contains classes that provide security, such as authorization.
|
Modifier and Type | Method and Description |
---|---|
static Request |
Factory.getChildRequest(Request parentRequest)
Creates request for child row with blank params.
|
Request |
Factory.RequestFactory.getChildRequest(Request parentRequest) |
Request |
Request.getParent()
Returns parent, if any.
|
static Request |
Factory.getRequest(HttpRequestAttributes httpAttributes)
Builds request from URI.
|
Request |
Factory.RequestFactory.getRequest(HttpRequestAttributes httpAttributes) |
static Request |
Factory.getRequest(HttpRequestAttributes httpAttributes,
Request.Type type,
String sqlResource,
List<RequestValue> resIds,
List<RequestValue> params,
List<List<RequestValue>> childrenParams,
RequestLogger requestLogger)
Returns request object with pre-parsed data from the URI.
|
Request |
Factory.RequestFactory.getRequest(HttpRequestAttributes httpAttributes,
Request.Type type,
String sqlResource,
List<RequestValue> resIds,
List<RequestValue> params,
List<List<RequestValue>> childrenParams,
RequestLogger requestLogger) |
static Request |
Factory.getRequest(Request.Type type,
String sqlResource,
List<RequestValue> resIds,
List<RequestValue> params,
List<List<RequestValue>> childrenParams,
RequestLogger requestLogger)
Returns request object with pre-parsed data from the URI.
|
Modifier and Type | Method and Description |
---|---|
void |
Trigger.afterDelete(Request request) |
void |
AbstractTrigger.afterDelete(Request request) |
void |
Trigger.afterInsert(Request request) |
void |
AbstractTrigger.afterInsert(Request request) |
void |
Trigger.afterSelect(Request request) |
void |
AbstractTrigger.afterSelect(Request request) |
void |
Trigger.afterUpdate(Request request) |
void |
AbstractTrigger.afterUpdate(Request request) |
void |
Trigger.beforeDelete(Request request) |
void |
AbstractTrigger.beforeDelete(Request request) |
void |
Trigger.beforeInsert(Request request) |
void |
AbstractTrigger.beforeInsert(Request request) |
void |
Trigger.beforeSelect(Request request) |
void |
AbstractTrigger.beforeSelect(Request request) |
void |
Trigger.beforeUpdate(Request request) |
void |
AbstractTrigger.beforeUpdate(Request request) |
SqlBuilder.SqlStruct |
SqlBuilder.buildSelectSql(SqlResourceMetaData metaData,
String mainSql,
Request request)
Creates select SQL.
|
Map<String,SqlBuilder.SqlStruct> |
SqlBuilder.buildWriteSql(SqlResourceMetaData metaData,
Request request,
boolean doParent)
Creates update, insert or delete SQL.
|
static Request |
Factory.getChildRequest(Request parentRequest)
Creates request for child row with blank params.
|
Request |
Factory.RequestFactory.getChildRequest(Request parentRequest) |
List<Map<String,Object>> |
SqlResource.read(Request request)
Executes query returning results as an object collection.
|
String |
SqlResource.read(Request request,
String mediaType)
Executes query returning results as a string.
|
void |
Request.setParent(Request parentRequest)
Sets parent request.
|
void |
RequestLogger.setRequest(Request request)
Sets request.
|
WriteResponse |
SqlResource.write(Request request)
Executes database write (insert, update or delete).
|
Modifier and Type | Method and Description |
---|---|
boolean |
Authorizer.isAuthorized(SecurityContext context,
Request request)
Checks if user is assigned a role that may perform the request.
|
Copyright © 2011-2018 restSQL Project Contributors