com.spotfire.ws.im.ds.sql
Interface JDBCMetadataProvider

All Known Implementing Classes:
BasicJDBCMetadataProvider

public interface JDBCMetadataProvider

This interface should be used when full control over the handling of data source metadata is required.

Since:
7.2
See Also:
JDBCContext, JDBCTypeSettings, BasicJDBCMetadataProvider

Method Summary
 MetadataItem[] getMetadata(MetadataItem[] path)
          Returns a list of MetadataItem objects that corresponds to the given path.
 void setContext(JDBCContext c)
          Sets the JDBCContext.
 Class toJavaType(int jdbcType, String typeName, int precision, int scale)
          Converts a JDBC type to a Java type.
 int toJDBCType(Class type)
          Converts a Java type to a JDBC type.
 

Method Detail

getMetadata

MetadataItem[] getMetadata(MetadataItem[] path)
                           throws InvalidMetadataPath
Returns a list of MetadataItem objects that corresponds to the given path.

Parameters:
path - a path of MetadataItem objects.
Returns:
a list of MetadataItem objects.
Throws:
InvalidMetadataPath - if the given path is invalid
SQLException - if a database error occurs

toJavaType

Class toJavaType(int jdbcType,
                 String typeName,
                 int precision,
                 int scale)
Converts a JDBC type to a Java type.

The following Java types are supported:

Parameters:
jdbcType - a JDBC type
typeName - data source dependent type name
precision - a precision used for numberic types
scale - a scale used for numeric types
Returns:
a Java type
See Also:
Types

toJDBCType

int toJDBCType(Class type)
Converts a Java type to a JDBC type.

The following Java types must be supported:

Parameters:
type - a Java type
Returns:
a JDBC type
See Also:
Types

setContext

void setContext(JDBCContext c)
Sets the JDBCContext.



Copyright © 2000-2009 TIBCO Software Inc. All Rights Reserved.