Package org.easybatch.jdbc

Examples of org.easybatch.jdbc.JdbcRecord


*/
public class CustomerMapper implements RecordMapper<Customer> {

    public Customer mapRecord(final Record record) throws Exception {

        JdbcRecord jdbcRecord = (JdbcRecord) record;
        ResultSet resultSet = jdbcRecord.getRawContent();

        Customer customer = new Customer();
        customer.setId(resultSet.getInt("id"));
        customer.setFirstName(resultSet.getString("firstName"));
        customer.setLastName(resultSet.getString("lastName"));
View Full Code Here

TOP

Related Classes of org.easybatch.jdbc.JdbcRecord

Copyright © 2018 www.massapicom. All rights reserved.
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.