Package 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. An implementation of this class can be specified in a data source template.
- Since:
- 3.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetMetadata(MetadataItem[] path) Returns a list ofMetadataItemobjects that corresponds to the given path.voidSets theJDBCContext.toJavaType(int jdbcType, String typeName, int precision, int scale) Converts a JDBC type to a Java type.inttoJDBCType(Class type) Converts a Java type to a JDBC type.
-
Method Details
-
getMetadata
Returns a list ofMetadataItemobjects that corresponds to the given path.- Parameters:
path- a path ofMetadataItemobjects.- Returns:
- a list of
MetadataItemobjects. - Throws:
InvalidMetadataPath- if the given path is invalidSQLException- if a database error occurs- Since:
- 3.0
-
toJavaType
Converts a JDBC type to a Java type.The following Java types are supported:
StringIntegerLongFloatDoublecom.spotfire.ws.dat.Datecom.spotfire.ws.dat.Timecom.spotfire.ws.dat.DateTimecom.spotfire.ws.dat.Clobcom.spotfire.ws.dat.Blob
- Parameters:
jdbcType- a JDBC typetypeName- data source dependent type nameprecision- a precision used for numeric typesscale- a scale used for numeric types- Returns:
- a Java type
- Since:
- 3.0
- See Also:
-
toJDBCType
Converts a Java type to a JDBC type.The following Java types must be supported:
StringIntegerLongFloatDoublecom.spotfire.ws.dat.Datecom.spotfire.ws.dat.Timecom.spotfire.ws.dat.DateTimecom.spotfire.ws.dat.Clobcom.spotfire.ws.dat.Blob
- Parameters:
type- a Java type- Returns:
- a JDBC type
- Since:
- 3.0
- See Also:
-
setContext
Sets theJDBCContext.- Parameters:
c- JDBCContext- Since:
- 3.0
-