public class TemplateQuery extends Object implements Comparable
Constructor and Description |
---|
TemplateQuery(String id,
String parameter,
File queryFile)
Creates a new template query.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object t) |
String |
getId()
Gets the id of a template query.
|
String |
getParameter()
Gets the parameter of the template query.
|
String |
getQuery()
Gets the query text of a template query.
|
File |
getQueryFile()
Gets the path of the template query file.
|
void |
readQueryFile()
Reads the query from the template query file and sets it in a variable.
|
void |
setId(String id)
Sets/Changes the id of a template query.
|
void |
setParameter(String parameter)
Sets/Changes the parameter of a template query.
|
public String getId()
public void setId(String id)
id
- The id of the template query.public String getParameter()
public void setParameter(String parameter)
parameter
- The parameter of the template query.public File getQueryFile()
public void readQueryFile()
public String getQuery()
public int compareTo(Object t)
compareTo
in interface Comparable
Copyright © 2014. All rights reserved.