public class TranslationManager extends Object
| Constructor | Description |
|---|---|
TranslationManager() |
| Modifier and Type | Method | Description |
|---|---|---|
static Translator |
getTranslator(String connectionURL,
String user,
String translationProfile,
String localErrorTranslationFilePath) |
Get the query and error translator with an internal reference to the
translation cache if one is available for the unique url, user and
translation profile combination or a new cache if its not available.
|
public static Translator getTranslator(String connectionURL, String user, String translationProfile, String localErrorTranslationFilePath) throws SQLException
connectionURL - the connection URL string for the connectionuser - the username for the connectiontranslationProfile - The Translation profilelocalErrorTranslationFilePath - Path to the XML file defining the error translations
for the case when connection cannot be established to the server and thus the translations
cannot happen on the serverSQLException - thrown if the the local error file cannot be parsed