JDBC Limit equivalent?

None of them worked for my query.