mondrian.gui.validate
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
 int getColumnDataType(String schemaName, String tableName, String colName)
          Returns the data type of given column.
 boolean isColExists(String schemaName, String tableName, 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 isTableExists(String schemaName, String tableName)
          Returns true if table exists.
 

Method Detail

getColumnDataType

int getColumnDataType(String schemaName,
                      String tableName,
                      String colName)
Returns the data type of given column.

Returns:
SQL type from java.sql.Types

isColExists

boolean isColExists(String schemaName,
                    String tableName,
                    String colName)
Returns true if column exists.


isTableExists

boolean isTableExists(String schemaName,
                      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).


SourceForge.net_Logo