Example usage for org.springframework.jdbc.core BeanPropertyRowMapper setMappedClass

List of usage examples for org.springframework.jdbc.core BeanPropertyRowMapper setMappedClass

Introduction

In this page you can find the example usage for org.springframework.jdbc.core BeanPropertyRowMapper setMappedClass.

Prototype

public void setMappedClass(Class<T> mappedClass) 

Source Link

Document

Set the class that each row should be mapped to.

Usage

From source file:com.mx.core.dao.BeanPropRowMap.java

/**
 * Static factory method to create a new BeanPropertyRowMapper
 * (with the mapped class specified only once).
 * @param mappedClass the class that each row should be mapped to
 *///  w  w  w.j  av a 2  s .c o  m
public static <T> BeanPropertyRowMapper<T> newInstance(Class<T> mappedClass) {
    BeanPropertyRowMapper<T> newInstance = new BeanPropertyRowMapper<T>();
    newInstance.setMappedClass(mappedClass);
    return newInstance;
}