(Encapsulate the ResultSe dataset t into a List call of the corresponding entity class. The reflection mechanism is adopted for implementation/
@Category encapsulates the ResultSet result set to the corresponding Listlt; Objectgt; Medium.
Date: 2011-03-1113:38
@authorGreenlight
Whitening: The fields in the request database are the same as the attributes in the entity class.
/publicclasstrunList{??/
Encapsulate the ResultSet dataset into a List call of the corresponding entity class
@Paramrs dataset ResultSet
@ParamclassName entity class (full path) - String
@returnListlt; Objectgt;
/??@ SuppressWarnings(unchecked)?? publicListlt; Objectgt; toList(ResultSetrs,StringclassName){??…………………………??}??/
lt; bgt; Basic data type conversion lt/ bgt;
@paramclazz
@paramstr
@returnObject
/??@ SuppressWarnings(unchecked)?? privateObjecttypeUtil(ClaS/SClazz,Stringstr){…………………………??}}
Test.java
.....)