So I wrote a method to just get a database table and it returns the resultset. But, it seems to be hanging on this method call. I THOUGHT it was returning just a pointer but I'm still new to programming. Is this call returning a pointer of Resultset or is it passing the whole thing. My main question is, why would this slow down the program? The table isn't that big.
public ResultSet getEmployeeTable() throws SQLException
{
ResultSet rsEmpl;
Connection con = getDBConnection();
PreparedStatement pstmt;
String query;
query = "Select * from PTO_Employee where enabled = ?";
pstmt = con.prepareStatement(query, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
pstmt.setInt(1, 1);
rsEmpl = pstmt.executeQuery();
return rsEmpl;
}