org.outerj.xreporter.datasource
Interface DataSource
- All Known Implementing Classes:
- DataSourceImpl
- public interface DataSource
A datasouce consists of both metadata about the datasource, and the connection parameters.
Some of the non-obvious items of a datasource are;
- the sortcodes: specify the order in which the datasources should be sorted for presentation
to the user.
- the dialect name: is a string that identifies the kind of SQL that this datasource understands.
This could be something like 'oracle' or 'mysql'. This makes it possible to specify different queries
in the report defintions according to the dialect.
- the supported types: to each datasource one or more types can be assigned. Report definitions
only work with the datasources that support the type required by them.
See XReporter's documentation for more background on the above items.
getId
public java.lang.String getId()
getName
public java.lang.String getName(ResourceHandle resourceHandle)
getDescription
public java.lang.String getDescription(ResourceHandle resourceHandle)
getSortCode1
public java.lang.String getSortCode1()
getSortCode2
public java.lang.String getSortCode2()
getDialectName
public java.lang.String getDialectName()
supportsType
public boolean supportsType(java.lang.String typeName)
getConnectionProperties
public java.util.Map getConnectionProperties()
getConnection
public java.sql.Connection getConnection()
throws java.sql.SQLException
- Throws:
java.sql.SQLException