Use class as datasource in report

I have a class wuth run() method that calls stored proc:

public void run()
Connection connection = new Connection();
Statement stmt = connection.createStatement();
SqlSystem sqlSystem = new SqlSystem();
str sqlStmt;
int i;
ResultSet resultSet;
SqlStatementExecutePermission sqlStatementExecutePermission;

sqlStmt = ( “exec GetAccountNumber”);

sqlStatementExecutePermission = new SqlStatementExecutePermission(sqlStmt);

resultSet = stmt.executeQuery(sqlStmt);

while (



How I can use it as a datasource in my report?

Please advise.

Thanks in advance