Executes a SELECT statement that returns multiple rows.
@param sql The SQL
@param args The arguments to be set on the statement.
@return The number of rows impacted or BATCHED_RESULTS if the statements are being batched.
@throws SQLException If statement prepration or execution fails
Entity Table(name="t_pet") class Pet{ Id Column("id") petId; name; } DAO dao = DAOFactory.getDAO(Pet.class); dao.clear(); String sql = dao.selectAll().toSql(); Assert.assertEquals(" SELECT * FROM t_pet ", sql);
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.