public class ExecServiceMethodDescription extends Object
Constructor and Description |
---|
ExecServiceMethodDescription(String name,
String description)
A new service method with the given name and description.
|
Modifier and Type | Method and Description |
---|---|
ExecServiceMethodDescription |
addArgument(String name,
String description,
Class<?> type)
Adds an argument for the query.
|
ExecServiceMethodDescription |
command(String command) |
ExecServiceMethodDescription |
queryResult(String name,
String description)
Adds a result for the script.
|
public ExecServiceMethodDescription addArgument(String name, String description, Class<?> type)
Arguments need to be specified in the same order as they appear in the query.
name
- argument namedescription
- argument descriptiontype
- the expected type of the argumentpublic ExecServiceMethodDescription queryResult(String name, String description)
name
- the result namedescription
- the result descriptionpublic ExecServiceMethodDescription command(String command)
Copyright © 2010–2015. All rights reserved.