public class SQLQuery extends Object
| Constructor and Description |
|---|
SQLQuery(String driver,
String dbServer,
String dbPort,
String database,
String instance,
String username,
String password)
Creates a new
SQLQuery instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection to the database
|
List<String> |
getRelationAttributes(List<Pair<String,String>> relation)
Used in the XSPARQLRewriter.g
|
String |
getRelationInfoAsXMLString(List<String> relations)
Returns an XML string containing the attributes of the specified
relations.
|
List<String> |
getRelations()
Returns a list of String containing the relations present in the database
|
String |
getRelationsAsXMLString()
Returns an XML string containing the relations present in the database
|
ResultSet |
getResults(String query)
Evaluates an SQL query.
|
Document |
getResultsAsDocument(String query)
Evaluates a SQL query and return the XML format.
|
Document |
getResultsAsXML(String query) |
String |
getResultsAsXMLString(String query)
Evaluates a SQL query and return the XML format.
|
public void close()
public ResultSet getResults(String query) throws ClassNotFoundException
ClassNotFoundExceptionpublic String getResultsAsXMLString(String query)
public Document getResultsAsDocument(String query)
public List<String> getRelationAttributes(List<Pair<String,String>> relation)
public String getRelationInfoAsXMLString(List<String> relations)
public List<String> getRelations()
public String getRelationsAsXMLString()
Copyright © 2011–2014 Digital Enterprise Research Institute, Galway. All rights reserved.