com.fdsapi
Interface DataAccess

All Known Implementing Classes:
DataAccessBase

public interface DataAccess

Interface used to abstract connection to a JDBC source. This allows the FormattedDataSet to make jdbc calls on behalf of the developer, whether they are using a J2EE DataSource or a non-pooled JDBC connection.

View Code


Method Summary
 void close()
           
 void closeConnection()
           
 void closeResultSet()
           
 void closeStatement()
           
 boolean connectionIsClosed()
           
 DataAccess createInstance()
           
 int executeUpdate(java.lang.String updateCommand)
           
 java.sql.Connection getConnection()
           
 java.lang.String getDataSourceName()
           
 java.sql.ResultSet getResultSet(java.lang.String queryCommand)
           
 ResultSetConverter getResultSetConverter(java.lang.String queryCommand)
           
 void setDataSourceName(java.lang.String dataSourceName)
           
 

Method Detail

createInstance

public DataAccess createInstance()
                          throws java.sql.SQLException
java.sql.SQLException

setDataSourceName

public void setDataSourceName(java.lang.String dataSourceName)

getDataSourceName

public java.lang.String getDataSourceName()

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException
java.sql.SQLException

close

public void close()
           throws java.sql.SQLException
java.sql.SQLException

closeConnection

public void closeConnection()
                     throws java.sql.SQLException
java.sql.SQLException

closeResultSet

public void closeResultSet()
                    throws java.sql.SQLException
java.sql.SQLException

closeStatement

public void closeStatement()
                    throws java.sql.SQLException
java.sql.SQLException

connectionIsClosed

public boolean connectionIsClosed()
                           throws java.sql.SQLException
java.sql.SQLException

getResultSet

public java.sql.ResultSet getResultSet(java.lang.String queryCommand)
                                throws java.sql.SQLException
java.sql.SQLException

getResultSetConverter

public ResultSetConverter getResultSetConverter(java.lang.String queryCommand)
                                         throws java.sql.SQLException
java.sql.SQLException

executeUpdate

public int executeUpdate(java.lang.String updateCommand)
                  throws java.sql.SQLException
java.sql.SQLException