Search in sources :

Example 1 with FactoryAppService

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);
}
Also used : IFactoryAppService(org.cerberus.crud.factory.IFactoryAppService) FactoryAppService(org.cerberus.crud.factory.impl.FactoryAppService) Timestamp(java.sql.Timestamp)

Aggregations

Timestamp (java.sql.Timestamp)1 IFactoryAppService (org.cerberus.crud.factory.IFactoryAppService)1 FactoryAppService (org.cerberus.crud.factory.impl.FactoryAppService)1