Class DatabricksDatabaseMeta

    • Constructor Detail

      • DatabricksDatabaseMeta

        public DatabricksDatabaseMeta()
    • Method Detail

      • getDriverClass

        public String getDriverClass()
        Description copied from interface: DatabaseInterface
        Obtain the name of the JDBC driver class that we need to use!
        Returns:
        the name of the JDBC driver class for the specific database
      • setToken

        public void setToken​(String token)
      • setHttpPath

        public void setHttpPath​(String httpPath)
      • getLimitClause

        public String getLimitClause​(int nrRows)
        Specified by:
        getLimitClause in interface DatabaseInterface
        Overrides:
        getLimitClause in class BaseDatabaseMeta
        Parameters:
        nrRows - The number of rows to which we want to limit the result of the query.
        Returns:
        the clause after a select statement to limit the number of rows
      • getFieldDefinition

        public String getFieldDefinition​(ValueMetaInterface v,
                                         String tk,
                                         String pk,
                                         boolean useAutoinc,
                                         boolean addFieldName,
                                         boolean addCr)
        Description copied from interface: DatabaseInterface
        Describe a Value as a field in the database.
        Parameters:
        v - The value to describe
        tk - The field that's going to be the technical key
        pk - The field that's going to be the primary key
        useAutoinc - Use autoincrement or not
        addFieldName - Add the fieldname to the definition or not
        addCr - Add a cariage return at the end of the definition or not.
        Returns:
        a value described as a field in this database.
      • getAddColumnStatement

        public String getAddColumnStatement​(String tablename,
                                            ValueMetaInterface v,
                                            String tk,
                                            boolean useAutoinc,
                                            String pk,
                                            boolean semicolon)
        Description copied from interface: DatabaseInterface
        Generates the SQL statement to add a column to the specified table
        Parameters:
        tablename - The table to add
        v - The column defined as a value
        tk - the name of the technical key field
        useAutoinc - whether or not this field uses auto increment
        pk - the name of the primary key field
        semicolon - whether or not to add a semi-colon behind the statement.
        Returns:
        the SQL statement to add a column to the specified table
      • getModifyColumnStatement

        public String getModifyColumnStatement​(String tablename,
                                               ValueMetaInterface v,
                                               String tk,
                                               boolean useAutoinc,
                                               String pk,
                                               boolean semicolon)
        Description copied from interface: DatabaseInterface
        Generates the SQL statement to modify a column in the specified table
        Parameters:
        tablename - The table to add
        v - The column defined as a value
        tk - the name of the technical key field
        useAutoinc - whether or not this field uses auto increment
        pk - the name of the primary key field
        semicolon - whether or not to add a semi-colon behind the statement.
        Returns:
        the SQL statement to modify a column in the specified table
      • getUsedLibraries

        public String[] getUsedLibraries()
        Returns:
        the required libraries (in lib) for this database connection.