#include <SQLtoSQLQueryTranslator.h>
Inheritance diagram for LcgInfo::SQLtoSQLQueryTranslator:
Public Methods | |
SQLtoSQLQueryTranslator () | |
Constructor using "./mappingGlueRMA" as the default name for the mapfile. More... | |
SQLtoSQLQueryTranslator (std::string const &pMapFile) | |
Constructor passing the name of the file that has to be used for the mapping. More... | |
SQLtoSQLQueryTranslator (LcgConfigBuffer::ConfigBuffer &pMap) | |
Constructor passing a reference to the already existing LcgConfigBuffer::ConfigBuffer object that is used for the mapping. More... | |
virtual | ~SQLtoSQLQueryTranslator () |
Destructor of the class. | |
virtual std::vector< std::string > | translateQuery (std::string const &pQueryCanonical) |
Translates the specified SQL query (intended to be posed to the canonical schema) into a new SQL query that can be posed to the implementation specific schema in order to retrieve the same information. More... |
The equivalent schema is mapped to the canonical one using a mapping file.
Definition at line 24 of file SQLtoSQLQueryTranslator.h.
|
Constructor using "./mappingGlueRMA" as the default name for the mapfile. It may throw a QueryTranslationException if the specified mapping file cannot be loaded. Please do not use this constructor. Definition at line 13 of file SQLtoSQLQueryTranslator.cpp. |
|
Constructor passing the name of the file that has to be used for the mapping. It may throw a QueryTranslationException if the specified mapping file cannot be loaded.
Definition at line 17 of file SQLtoSQLQueryTranslator.cpp. |
|
Constructor passing a reference to the already existing LcgConfigBuffer::ConfigBuffer object that is used for the mapping. Using this constructor implies that the LcgConfigBuffer::ConfigBuffer object was instantiated externally, and it requires that it does not go out of scope.
Definition at line 21 of file SQLtoSQLQueryTranslator.cpp. |
|
Translates the specified SQL query (intended to be posed to the canonical schema) into a new SQL query that can be posed to the implementation specific schema in order to retrieve the same information. As the output language is SQL, the resulting translation has only one query. It may throw a QueryTranslationException if the specified query cannot be parsed or translated properly.
Implements LcgInfo::SQLQueryTranslator. Definition at line 28 of file SQLtoSQLQueryTranslator.cpp. References LcgInfo::SQLQueryTranslator::translateSemantic. |