MCQOPTIONS
Bookmark
Saved Bookmarks
→
Spring
→
Managing Web Flows in Spring
→
ROWCALLBACKHANDLER_PURPOSE_IS_TO_MAP_A_SINGLE_ROW_..
1.
ROWCALLBACKHANDLER_PURPOSE_IS_TO_MAP_A_SINGLE_ROW_OF_THE_RESULT_SET_TO_A_CUSTOMIZED_OBJECT.?$
A.
True
B.
False
Answer» C.
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
RowMapper implementation which can automatically map a row to a new instance of the specified class.a) BeanPropertyRowMapperb) BeanPropertyRowc) All of the mentionedd) None of the mentionedAnswer: aExplanation: Note that the specified class must be a top-level class and must have a default or no-argument constructor. It first instantiates this class and then maps each column value to a property by matching their names.12. Method which provides list of maps.a) queryForList()b) updatec) query()d) all of the mentionedAnswer: aExplanation: Without the help of RowMapper, you can still call the queryForList() method and pass in a SQL statement. The returned result will be a list of maps. Each map stores a row of the result set with the column names as the keys.13. Spring JDBC framework offers a convenient class, to simplify your DAO implementation.a) org.springframework.jdbc.core.supportb) org.springframework.jdbc.core.support.JdbcDaoSupportc) all of the mentionedd) none of the mentionedAnswer: bExplanation: Spring JDBC framework offers a convenient class, org.springframework.jdbc.core.support.JdbcDaoSupport, to simplify your DAO implementation. This class declares a jdbcTemplate property, which can be injected from the IoC container or created automatically from a data source. 14. The org.springframework.jdbc.core.support.JdbcDaoSupport class has a setDataSource() method and a setJdbcTemplate() method.a) Trueb) FalseAnswer: aExplanation: Your DAO class can extend this class to have these methods inherited. 15. Method to retrieve the JDBC template.
Method of RowMapper interface in which, you have to construct the object that represents a row and return it as the method’s return value.
RowCallbackHandler purpose is to map a single row of the result set to a customized object.
The primary interface that allows you to process the current row of the result set.
When implementing the PreparedStatementCreator interface, you will get the database connection as the createPreparedStatement() method’s argument.
ROWCALLBACKHANDLER_PURPOSE_IS_TO_MAP_A_SINGLE_ROW_OF_THE_RESULT_SET_TO_A_CUSTOMIZED_OBJECT.?$
Method_of_RowMapper_interface_in_which,_you_have_to_construct_the_object_that_represents_a_row_and_return_it_as_the_method’s_return_value.$#
The primary interface that allows you to process the current row of the result set?
The JdbcTemplate class offers template method for batch update operations.
PreparedStatementSetter, as its name indicates, create a PreparedStatement object on this connection the parameter as well as binding task of the overall update process.
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply