use of org.cerberus.crud.factory.impl.FactoryAppService in project cerberus-source by cerberustesting.
the class AppServiceDAO method loadFromResultSet.
@Override
public AppService loadFromResultSet(ResultSet rs) throws SQLException {
String service = ParameterParserUtil.parseStringParam(rs.getString("srv.Service"), "");
String group = ParameterParserUtil.parseStringParam(rs.getString("srv.Group"), "");
String servicePath = ParameterParserUtil.parseStringParam(rs.getString("srv.ServicePath"), "");
String operation = ParameterParserUtil.parseStringParam(rs.getString("srv.Operation"), "");
String serviceRequest = ParameterParserUtil.parseStringParam(rs.getString("srv.ServiceRequest"), "");
String attachementURL = ParameterParserUtil.parseStringParam(rs.getString("srv.AttachementURL"), "");
String description = ParameterParserUtil.parseStringParam(rs.getString("srv.Description"), "");
String type = ParameterParserUtil.parseStringParam(rs.getString("srv.Type"), "");
String method = ParameterParserUtil.parseStringParam(rs.getString("srv.Method"), "");
String application = ParameterParserUtil.parseStringParam(rs.getString("srv.Application"), "");
String usrModif = rs.getString("srv.UsrModif");
String usrCreated = rs.getString("srv.UsrCreated");
Timestamp dateCreated = rs.getTimestamp("srv.DateCreated");
Timestamp dateModif = rs.getTimestamp("srv.DateModif");
// TODO remove when working in test with mockito and autowired
factoryAppService = new FactoryAppService();
return factoryAppService.create(service, type, method, application, group, serviceRequest, description, servicePath, attachementURL, operation, usrCreated, dateCreated, usrModif, dateModif);
}
Aggregations