public interface IDataSource extends Iterable
IDataSource interface would include an Oracle DBMS, a
SQL Server DBMS, a WFS Server, a Microsoft Access database, etc.
Interacting with a datasource typically involves commands expressed in
terms of a syntax that is unique to the datasource. For example, when
accessing an Oracle database, commands that can be utilized are documented
by Oracle and have some differences to commands that would be used when
accessing SQL Server or DB2. All of those examples are variations of the
SQL language with vendor-specific differences. Some datasources may be
completely different and not SQL-based. For example, a WFS web service
exposes an XML-based interface for comparable metadata, query, and editing
commands.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the datasource, closing and/or releasing any resources acquired.
|
IDataSourceDefinition |
getDefinition()
Returns the definition for the datasource.
|
boolean |
isClosed()
Indicates if the datasource has been closed.
|
IDataSourceTable |
openTable(ITableDefinition tableDefinition)
Creates an
IDataSourceTable given the specified ITableDefinition. |
forEach, iterator, spliteratorIDataSourceDefinition getDefinition()
IDataSourceDefinition interface.
Datasource definition objects are used by the data provider to instantiate a
datasource instance.
Changes to the definition while the datasource is instantiated may or
may not alter the behavior of the datasource. If the definition should not
be changed while the datasource is open, then attempted changes should throw
and exception. This behavior is implementation specific.void close()
boolean isClosed()
isClosed and close.true if the datasource is closed; false otherwise.IDataSourceTable openTable(ITableDefinition tableDefinition)
IDataSourceTable given the specified ITableDefinition.tableDefinition - the information that defines the IDataSourceTable to instantiate.IDataSourceTable object that was opened.© 2007, 2022 Precisely. All rights reserved.