Class HsqldbDialect

  • All Implemented Interfaces:
    Dialect

    public class HsqldbDialect
    extends JdbcDialectImpl
    Implementation of Dialect for the Hsqldb database.
    Since:
    Aug 20, 2009
    Author:
    wgorman
    • Constructor Detail

      • HsqldbDialect

        public HsqldbDialect​(java.sql.Connection connection)
                      throws java.sql.SQLException
        Creates a FirebirdDialect.
        Parameters:
        connection - Connection
        Throws:
        java.sql.SQLException
    • Method Detail

      • generateInline

        public java.lang.String generateInline​(java.util.List<java.lang.String> columnNames,
                                               java.util.List<java.lang.String> columnTypes,
                                               java.util.List<java.lang.String[]> valueList)
        Description copied from interface: Dialect
        Generates a SQL statement to represent an inline dataset.

        For example, for Oracle, generates

         SELECT 1 AS FOO, 'a' AS BAR FROM dual
         UNION ALL
         SELECT 2 AS FOO, 'b' AS BAR FROM dual
         

        For ANSI SQL, generates:

         VALUES (1, 'a'), (2, 'b')
         
        Specified by:
        generateInline in interface Dialect
        Overrides:
        generateInline in class JdbcDialectImpl
        Parameters:
        columnNames - List of column names
        columnTypes - List of column types ("String" or "Numeric")
        valueList - List of rows values
        Returns:
        SQL string