mondrian.gui.validate.impl
Class WorkbenchJDBCValidator

java.lang.Object
  extended by mondrian.gui.validate.impl.WorkbenchJDBCValidator
All Implemented Interfaces:
JDBCValidator

public class WorkbenchJDBCValidator
extends Object
implements JDBCValidator

Implementation of JDBCValidator for Workbench.

Author:
mlowery
 

Constructor Summary
WorkbenchJDBCValidator(JDBCMetaData jdbcMetadata)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkbenchJDBCValidator

public WorkbenchJDBCValidator(JDBCMetaData jdbcMetadata)
Method Detail

getColumnDataType

public int getColumnDataType(String schemaName,
                             String tableName,
                             String colName)
Description copied from interface: JDBCValidator
Returns the data type of given column.

Specified by:
getColumnDataType in interface JDBCValidator
Returns:
SQL type from java.sql.Types

isColExists

public boolean isColExists(String schemaName,
                           String tableName,
                           String colName)
Description copied from interface: JDBCValidator
Returns true if column exists.

Specified by:
isColExists in interface JDBCValidator

isInitialized

public boolean isInitialized()
Description copied from interface: JDBCValidator
Returns true if this object successfully connected to database (and validation methods can now be called).

Specified by:
isInitialized in interface JDBCValidator

isTableExists

public boolean isTableExists(String schemaName,
                             String tableName)
Description copied from interface: JDBCValidator
Returns true if table exists.

Specified by:
isTableExists in interface JDBCValidator

SourceForge.net_Logo