Interface JdbcValidator

  • All Known Implementing Classes:
    WorkbenchJdbcValidator

    public interface JdbcValidator
    Validation for database schema, table, and columns. Extracted interface from mondrian.gui.JDBCMetaData.
    Author:
    mlowery
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getColumnDataType​(java.lang.String schemaName, java.lang.String tableName, java.lang.String colName)
      Returns the data type of given column.
      boolean isColExists​(java.lang.String schemaName, java.lang.String tableName, java.lang.String colName)
      Returns true if column exists.
      boolean isInitialized()
      Returns true if this object successfully connected to database (and validation methods can now be called).
      boolean isSchemaExists​(java.lang.String schemaName)
      Returns true if schema exists.
      boolean isTableExists​(java.lang.String schemaName, java.lang.String tableName)
      Returns true if table exists.
    • Method Detail

      • getColumnDataType

        int getColumnDataType​(java.lang.String schemaName,
                              java.lang.String tableName,
                              java.lang.String colName)
        Returns the data type of given column.
        Returns:
        SQL type from java.sql.Types
      • isColExists

        boolean isColExists​(java.lang.String schemaName,
                            java.lang.String tableName,
                            java.lang.String colName)
        Returns true if column exists.
      • isTableExists

        boolean isTableExists​(java.lang.String schemaName,
                              java.lang.String tableName)
        Returns true if table exists.
      • isInitialized

        boolean isInitialized()
        Returns true if this object successfully connected to database (and validation methods can now be called).
      • isSchemaExists

        boolean isSchemaExists​(java.lang.String schemaName)
        Returns true if schema exists.