public interface JDBCContext
Modifier and Type | Method and Description |
---|---|
int |
getBatchSize(int columnCount)
Returns the batch size that specifies the amount of data in each batch
update.
|
java.sql.Connection |
getConnection()
Returns a database connection.
|
Guid |
getDataSourceID()
Returns the ID of the data source instance.
|
java.lang.String |
getDataSourceName()
Returns the name of the data source instance.
|
int |
getFetchSize(int columnCount)
Returns the fetch size that specifies the amount of data fetched with each
database round trip for a query.
|
JDBCMetadataProvider |
getMetadataProvider()
Returns a new instance of a metadata provider.
|
SQLRuntime |
getSQLRuntime()
Returns a new instance of a SQL Runtime.
|
MetadataItem[] |
getTableAliases(java.lang.String catalog,
java.lang.String schema)
Returns all table aliases for tables in the specified catalog and schema.
|
java.lang.String |
getTypeName()
Returns the name of the JDBC type configuration.
|
JDBCTypeSettings |
getTypeSettings()
Returns the JDBC type configuration.
|
boolean |
isReadOnly()
Tells if the data source is readonly.
|
SourceTable |
resolveTable(SourceTable tableAlias)
Resolves a table alias to a real source table.
|
java.lang.String getDataSourceName()
Guid getDataSourceID()
java.sql.Connection getConnection() throws java.sql.SQLException
java.sql.SQLException
- SQLExceptionjava.lang.String getTypeName()
JDBCTypeSettings getTypeSettings()
JDBCTypeSettings
instanceJDBCMetadataProvider getMetadataProvider()
JDBCMetadataProvider
instanceSQLRuntime getSQLRuntime()
SQLRuntime
instanceint getFetchSize(int columnCount)
The fetch size is the number of rows caluclated from the given column count.
columnCount
- number of columns in each rowint getBatchSize(int columnCount)
The batch size is the number of operation calculated from the given column count.
columnCount
- number of columns in each operationboolean isReadOnly()
A data source that are readonly indicates that no SQL commands other than queries are allowed, i.e. use of temporary tables are prohibited.
true
if read only, false
otherwiseSourceTable resolveTable(SourceTable tableAlias)
tableAlias
- a SourceTable
valueSourceTable
if the provided table was a
known table alias, otherwise, the same SourceTable
is
returned.MetadataItem[] getTableAliases(java.lang.String catalog, java.lang.String schema)
catalog
- a catalog name, if nullschema
- schemaCopyright © 2000-2020 TIBCO Software Inc. All Rights Reserved.