|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JDBCMetadataProvider
This interface should be used when full control over the handling of data source metadata is required.
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 |
|---|
MetadataItem[] getMetadata(MetadataItem[] path)
throws InvalidMetadataPath
MetadataItem objects that
corresponds to the given path.
path - a path of MetadataItem objects.
MetadataItem objects.
InvalidMetadataPath - if the given path is invalid
SQLException - if a database error occurs
Class toJavaType(int jdbcType,
String typeName,
int precision,
int scale)
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
jdbcType - a JDBC typetypeName - data source dependent type nameprecision - a precision used for numberic typesscale - a scale used for numeric types
Typesint toJDBCType(Class 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
type - a Java type
Typesvoid setContext(JDBCContext c)
JDBCContext.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||