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;

See XReporter's documentation for more background on the above items.


Method Summary
 java.sql.Connection getConnection()
           
 java.util.Map getConnectionProperties()
           
 java.lang.String getDescription(ResourceHandle resourceHandle)
           
 java.lang.String getDialectName()
           
 java.lang.String getId()
           
 java.lang.String getName(ResourceHandle resourceHandle)
           
 java.lang.String getSortCode1()
           
 java.lang.String getSortCode2()
           
 boolean supportsType(java.lang.String typeName)
           
 

Method Detail

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