Package mondrian.gui.validate
Interface JdbcValidator
-
- All Known Implementing Classes:
WorkbenchJdbcValidator
public interface JdbcValidator
Validation for database schema, table, and columns. Extracted interface frommondrian.gui.JDBCMetaData
.- Author:
- mlowery
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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
isSchemaExists(String schemaName)
Returns true if schema exists.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).
-
isSchemaExists
boolean isSchemaExists(String schemaName)
Returns true if schema exists.
-
-