Package mondrian.gui.validate
Interface JdbcValidator
-
- All Known Implementing Classes:
WorkbenchJdbcValidator
public interface JdbcValidatorValidation 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 intgetColumnDataType(String schemaName, String tableName, String colName)Returns the data type of given column.booleanisColExists(String schemaName, String tableName, String colName)Returns true if column exists.booleanisInitialized()Returns true if this object successfully connected to database (and validation methods can now be called).booleanisSchemaExists(String schemaName)Returns true if schema exists.booleanisTableExists(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.
-
-