public class JDBCServiceMethodDescription extends ServiceMethodDescription
Constructor and Description |
---|
JDBCServiceMethodDescription(String name,
String description)
A new service method with the given name and description.
|
Modifier and Type | Method and Description |
---|---|
ServiceMethod |
createServiceMethod(ServiceDescription serviceDescription)
Creates a service method with the given description.
|
JDBCServiceMethodDescription |
query(String query)
The query mapped to this service method; cannot have multiple query
commands.
|
JDBCServiceMethodDescription |
queryResult(String name,
String description)
Adds a result for the query.
|
addArgument, addResult
public JDBCServiceMethodDescription queryResult(String name, String description)
The result must be specified if the query returns data (i.e. it is a SELECT) and must not be specified if the query does not return data (i.e. INSERT, UPDATE, DELETE, ...).
name
- the result name; can't be nulldescription
- the result description; can't be nullpublic JDBCServiceMethodDescription query(String query)
query
- the query to execute; can't be nullpublic ServiceMethod createServiceMethod(ServiceDescription serviceDescription)
ServiceMethodDescription
A client should implement this to return their service method implementation.
createServiceMethod
in class ServiceMethodDescription
serviceDescription
- service description for the new service methodCopyright © 2015. All rights reserved.