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_SQL
The SQL languageLANG_UNKNOWN
An unknown language -
Method Summary
Modifier and Type Method Description String
getCommandTemplateIndex(int index)
String[]
getCommandTemplates()
static EmbeddedLanguage
GetLanguageFromString(String language)
This method is used to keep compatibility with the MAPI JDBC connection.String
getQueryTemplateIndex(int index)
String[]
getQueryTemplates()
String
getRepresentation()
static EmbeddedLanguage
valueOf(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:
getQueryTemplateIndex
in interfacenl.cwi.monetdb.mcl.connection.IMonetDBLanguage
-
getCommandTemplateIndex
- Specified by:
getCommandTemplateIndex
in interfacenl.cwi.monetdb.mcl.connection.IMonetDBLanguage
-
getQueryTemplates
- Specified by:
getQueryTemplates
in interfacenl.cwi.monetdb.mcl.connection.IMonetDBLanguage
-
getCommandTemplates
- Specified by:
getCommandTemplates
in interfacenl.cwi.monetdb.mcl.connection.IMonetDBLanguage
-
getRepresentation
- Specified by:
getRepresentation
in 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
-