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