|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JDBCContext
Properties for a JDBC data source instance.
| Method Summary | |
|---|---|
int |
getBatchSize(int columnCount)
Returns the batch size that specifies the amount of data in each batch update. |
Connection |
getConnection()
Returns a database connection. |
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(String catalog,
String schema)
Returns all table aliases for tables in the specified catalog and schema. |
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. |
| Method Detail |
|---|
String getDataSourceName()
Connection getConnection()
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 row
int getBatchSize(int columnCount)
The batch size is the number of operation calculated from the given column count.
column - number of columns in each operation
boolean 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 value
SourceTable if the provided table was
a known table alias, otherwise, the same SourceTable is returned.
MetadataItem[] getTableAliases(String catalog,
String schema)
catalog - a catalog name, if nullschema -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||