As Thomas said, create your own class that implements ResultSet.
public class DummyResultSet{
HashTable results = new HashTable();//this is used to store the results to mimic what ResultSet does
//you could use whatever classes of Collections that you need
//override the methods of ResultSet that you need to use in your other app
public static DummyResultSet resultSetFactory()
{
//in here you define the code that creates the DummyResultSet
//it might be a good idea to make the constrictor private
}
}
In your other programs call the factory and assisgn the return to a ResultSet reference
ResultSet rset = DummyResultSet.resultSetFactory();
rset.next()
....
Now if every you do put this information in a DB, you modify the factory to create an execute the SQL and comment out the methods that you have overridden to use the methods in the ResultSet interface.