Package nl.cwi.monetdb.embedded.jdbc
Enum EmbeddedLanguage
- All Implemented Interfaces:
Serializable,Comparable<EmbeddedLanguage>,java.lang.constant.Constable,nl.cwi.monetdb.mcl.connection.IMonetDBLanguage
public enum EmbeddedLanguage extends Enum<EmbeddedLanguage> implements nl.cwi.monetdb.mcl.connection.IMonetDBLanguage
The embedded implementation of the available languages on a MonetDB JDBC connection: just SQL.
In an embedded connection there is no necessity to use delimiters, so no delimiters are added to the user's input.
In an embedded connection there is no necessity to use delimiters, so no delimiters are added to the user's input.
- Author:
- Pedro Ferreira
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description LANG_SQLThe SQL languageLANG_UNKNOWNAn unknown language -
Method Summary
Modifier and Type Method Description StringgetCommandTemplateIndex(int index)String[]getCommandTemplates()static EmbeddedLanguageGetLanguageFromString(String language)This method is used to keep compatibility with the MAPI JDBC connection.StringgetQueryTemplateIndex(int index)String[]getQueryTemplates()StringgetRepresentation()static EmbeddedLanguagevalueOf(String name)Returns the enum constant of this type with the specified name.static EmbeddedLanguage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LANG_SQL
The SQL language -
LANG_UNKNOWN
An unknown language
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getQueryTemplateIndex
- Specified by:
getQueryTemplateIndexin interfacenl.cwi.monetdb.mcl.connection.IMonetDBLanguage
-
getCommandTemplateIndex
- Specified by:
getCommandTemplateIndexin interfacenl.cwi.monetdb.mcl.connection.IMonetDBLanguage
-
getQueryTemplates
- Specified by:
getQueryTemplatesin interfacenl.cwi.monetdb.mcl.connection.IMonetDBLanguage
-
getCommandTemplates
- Specified by:
getCommandTemplatesin interfacenl.cwi.monetdb.mcl.connection.IMonetDBLanguage
-
getRepresentation
- Specified by:
getRepresentationin interfacenl.cwi.monetdb.mcl.connection.IMonetDBLanguage
-
GetLanguageFromString
This method is used to keep compatibility with the MAPI JDBC connection. (Only SQL supported)- Parameters:
language- The language to retrieve the corresponding String- Returns:
- The language String
-