use of org.cerberus.crud.factory.impl.FactoryAppServiceHeader in project cerberus-source by cerberustesting.
the class AppServiceHeaderDAO method loadFromResultSet.
@Override
public AppServiceHeader loadFromResultSet(ResultSet rs) throws SQLException {
String service = ParameterParserUtil.parseStringParam(rs.getString("srh.service"), "");
String key = ParameterParserUtil.parseStringParam(rs.getString("srh.key"), "");
String value = ParameterParserUtil.parseStringParam(rs.getString("srh.value"), "");
int sort = ParameterParserUtil.parseIntegerParam(rs.getString("srh.sort"), 0);
String active = ParameterParserUtil.parseStringParam(rs.getString("srh.active"), "");
String description = ParameterParserUtil.parseStringParam(rs.getString("srh.description"), "");
String usrModif = ParameterParserUtil.parseStringParam(rs.getString("srh.UsrModif"), "");
String usrCreated = ParameterParserUtil.parseStringParam(rs.getString("srh.UsrCreated"), "");
Timestamp dateModif = rs.getTimestamp("srh.DateModif");
Timestamp dateCreated = rs.getTimestamp("srh.DateCreated");
// TODO remove when working in test with mockito and autowired
factoryAppServiceHeader = new FactoryAppServiceHeader();
return factoryAppServiceHeader.create(service, key, value, active, sort, description, usrCreated, dateCreated, usrModif, dateModif);
}
Aggregations