Enum EmbeddedLanguage

java.lang.Object
java.lang.Enum<EmbeddedLanguage>
nl.cwi.monetdb.embedded.jdbc.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.
Author:
Pedro Ferreira
  • Enum Constant Details

  • Method Details

    • values

      public static EmbeddedLanguage[] 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

      public static EmbeddedLanguage valueOf​(String name)
      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 name
      NullPointerException - if the argument is null
    • getQueryTemplateIndex

      public String getQueryTemplateIndex​(int index)
      Specified by:
      getQueryTemplateIndex in interface nl.cwi.monetdb.mcl.connection.IMonetDBLanguage
    • getCommandTemplateIndex

      public String getCommandTemplateIndex​(int index)
      Specified by:
      getCommandTemplateIndex in interface nl.cwi.monetdb.mcl.connection.IMonetDBLanguage
    • getQueryTemplates

      public String[] getQueryTemplates()
      Specified by:
      getQueryTemplates in interface nl.cwi.monetdb.mcl.connection.IMonetDBLanguage
    • getCommandTemplates

      public String[] getCommandTemplates()
      Specified by:
      getCommandTemplates in interface nl.cwi.monetdb.mcl.connection.IMonetDBLanguage
    • getRepresentation

      public String getRepresentation()
      Specified by:
      getRepresentation in interface nl.cwi.monetdb.mcl.connection.IMonetDBLanguage
    • GetLanguageFromString

      public static EmbeddedLanguage GetLanguageFromString​(String language)
      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