public interface JDBCMetadataProvider
This interface should be used when full control over the handling of data source metadata is required.
JDBCContext
,
JDBCTypeSettings
,
BasicJDBCMetadataProvider
Modifier and Type | Method and Description |
---|---|
MetadataItem[] |
getMetadata(MetadataItem[] path)
Returns a list of
MetadataItem objects that corresponds to the
given path. |
void |
setContext(JDBCContext c)
Sets the
JDBCContext . |
java.lang.Class |
toJavaType(int jdbcType,
java.lang.String typeName,
int precision,
int scale)
Converts a JDBC type to a Java type.
|
int |
toJDBCType(java.lang.Class type)
Converts a Java type to a JDBC type.
|
MetadataItem[] getMetadata(MetadataItem[] path) throws InvalidMetadataPath, java.sql.SQLException
MetadataItem
objects that corresponds to the
given path.path
- a path of MetadataItem
objects.MetadataItem
objects.InvalidMetadataPath
- if the given path is invalidjava.sql.SQLException
- if a database error occursjava.lang.Class toJavaType(int jdbcType, java.lang.String typeName, int precision, int scale)
The following Java types are supported:
String
Integer
Long
Float
Double
com.spotfire.ws.dat.Date
com.spotfire.ws.dat.Time
com.spotfire.ws.dat.DateTime
com.spotfire.ws.dat.Clob
com.spotfire.ws.dat.Blob
jdbcType
- a JDBC typetypeName
- data source dependent type nameprecision
- a precision used for numberic typesscale
- a scale used for numeric typesTypes
int toJDBCType(java.lang.Class type)
The following Java types must be supported:
String
Integer
Long
Float
Double
com.spotfire.ws.dat.Date
com.spotfire.ws.dat.Time
com.spotfire.ws.dat.DateTime
com.spotfire.ws.dat.Clob
com.spotfire.ws.dat.Blob
type
- a Java typeTypes
void setContext(JDBCContext c)
JDBCContext
.c
- JDBCContextCopyright © 2000-2020 TIBCO Software Inc. All Rights Reserved.