@TypeMetadata(name="QueryTemplate", description="The type used to store Query Templates", version="1.0.0") @Change(version="1.0.0", description="First Version") public interface QueryTemplate extends EntityElement
| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION_PROPERTY |
static String |
NAME |
static String |
NAME_PROPERTY |
static String |
TEMPLATE_PROPERTY |
static String |
TEMPLATE_VARIABLES_PROPERTY |
HEADER_PROPERTYCLASS_PROPERTY, DATETIME_PATTERN, SUPERCLASSES_PROPERTY| Modifier and Type | Method and Description |
|---|---|
void |
addTemplateVariable(TemplateVariable templateVariable) |
String |
getDescription() |
org.gcube.com.fasterxml.jackson.databind.JsonNode |
getJsonQuery() |
org.gcube.com.fasterxml.jackson.databind.JsonNode |
getJsonQuery(org.gcube.com.fasterxml.jackson.databind.JsonNode values) |
String |
getName() |
org.gcube.com.fasterxml.jackson.databind.node.ObjectNode |
getParamsFromDefaultValues()
Create an ObjectNode which can be used as parameters to obtain a
JSON Query from the Query Template.
|
org.gcube.com.fasterxml.jackson.databind.JsonNode |
getTemplate() |
String |
getTemplateAsString() |
Map<String,TemplateVariable> |
getTemplateVariables() |
void |
setDescription(String description) |
void |
setName(String name) |
void |
setTemplate(org.gcube.com.fasterxml.jackson.databind.JsonNode template) |
void |
setTemplate(String template) |
getHeadersetHeaderstatic final String NAME
static final String NAME_PROPERTY
static final String DESCRIPTION_PROPERTY
static final String TEMPLATE_PROPERTY
static final String TEMPLATE_VARIABLES_PROPERTY
@ISProperty(name="name", description="The name of the Query Template. Among UUID univocally identifiy the Query Template.", readonly=true, mandatory=true, nullable=false) String getName()
void setName(String name)
@ISProperty(name="description", description="The description of the Query Template.", readonly=false, mandatory=true, nullable=false) String getDescription()
void setDescription(String description)
@ISProperty(name="template", description="The Query Template. It can contains query variables to be replaced to obtain a runnable query.", readonly=false, mandatory=true, nullable=false) String getTemplateAsString() throws org.gcube.com.fasterxml.jackson.core.JsonProcessingException
org.gcube.com.fasterxml.jackson.core.JsonProcessingExceptionvoid setTemplate(String template) throws org.gcube.com.fasterxml.jackson.core.JsonProcessingException, IOException
org.gcube.com.fasterxml.jackson.core.JsonProcessingExceptionIOExceptionvoid setTemplate(org.gcube.com.fasterxml.jackson.databind.JsonNode template)
org.gcube.com.fasterxml.jackson.databind.JsonNode getTemplate()
@ISProperty(name="templateVariables", description="The Query Template Variables. It can contains Query Template Variable to be replaced to obtain a runnable query.", readonly=false, mandatory=true, nullable=false) Map<String,TemplateVariable> getTemplateVariables()
void addTemplateVariable(TemplateVariable templateVariable)
org.gcube.com.fasterxml.jackson.databind.node.ObjectNode getParamsFromDefaultValues()
org.gcube.com.fasterxml.jackson.databind.JsonNode getJsonQuery()
throws Exception
ExceptionCopyright © 2022. All Rights Reserved.