com.ap.jdbcunit
Interface Recorder

All Known Implementing Classes:
MediaRecorder, SelectsMediaRecorder

public interface Recorder


Method Summary
 void add(java.lang.String dbURL, java.lang.String sql, java.sql.ResultSet rs)
          Records the given result set obtained after executing the given SQL statement on the given database
 void clear()
          Clears everything...
 boolean existsTrack(java.lang.String dbURL, java.lang.String sql)
          Returns true
 java.sql.ResultSet get(java.sql.Statement stmt, java.lang.String dbURL, java.lang.String sql)
          Retrieves a previously recorded SQL statement
 void start()
          Start the recorder, doesn't mean "entering" in recording mode, rather it means "swicth on" the recorder
 void stop()
          Stop the recorder ("switch off")
 

Method Detail

start

public void start()
Start the recorder, doesn't mean "entering" in recording mode, rather it means "swicth on" the recorder


stop

public void stop()
Stop the recorder ("switch off")


clear

public void clear()
Clears everything...


existsTrack

public boolean existsTrack(java.lang.String dbURL,
                           java.lang.String sql)
Returns true

Parameters:
dbURL - the database url
sql - the SQL statement
Returns:
true if recorder contains the track (the result set)

add

public void add(java.lang.String dbURL,
                java.lang.String sql,
                java.sql.ResultSet rs)
Records the given result set obtained after executing the given SQL statement on the given database

Parameters:
dbURL - the database URL
sql - the executed SQL statement
rs - the result of the query

get

public java.sql.ResultSet get(java.sql.Statement stmt,
                              java.lang.String dbURL,
                              java.lang.String sql)
Retrieves a previously recorded SQL statement

Parameters:
stmt - the @link{java.sql.Statement}
dbURL - database URL
sql - SQL statement string
Returns:
the result set