Search in sources :

Example 1 with FactoryApplication

use of org.cerberus.crud.factory.impl.FactoryApplication in project cerberus-source by cerberustesting.

the class ApplicationDAO method loadFromResultSet.

@Override
public Application loadFromResultSet(ResultSet rs) throws SQLException {
    String application = ParameterParserUtil.parseStringParam(rs.getString("app.application"), "");
    String description = ParameterParserUtil.parseStringParam(rs.getString("app.description"), "");
    int sort = ParameterParserUtil.parseIntegerParam(rs.getString("app.sort"), 0);
    String type = ParameterParserUtil.parseStringParam(rs.getString("app.type"), "");
    String system = ParameterParserUtil.parseStringParam(rs.getString("app.system"), "");
    String subsystem = ParameterParserUtil.parseStringParam(rs.getString("app.subsystem"), "");
    String svnUrl = ParameterParserUtil.parseStringParam(rs.getString("app.svnurl"), "");
    String deployType = ParameterParserUtil.parseStringParam(rs.getString("app.deploytype"), "");
    String mavenGroupId = ParameterParserUtil.parseStringParam(rs.getString("app.mavengroupid"), "");
    String bugTrackerUrl = ParameterParserUtil.parseStringParam(rs.getString("app.bugtrackerurl"), "");
    String bugTrackerNewUrl = ParameterParserUtil.parseStringParam(rs.getString("app.bugtrackernewurl"), "");
    String usrModif = ParameterParserUtil.parseStringParam(rs.getString("app.UsrModif"), "");
    String usrCreated = ParameterParserUtil.parseStringParam(rs.getString("app.UsrCreated"), "");
    Timestamp dateModif = rs.getTimestamp("app.DateModif");
    Timestamp dateCreated = rs.getTimestamp("app.DateCreated");
    // TODO remove when working in test with mockito and autowired
    factoryApplication = new FactoryApplication();
    return factoryApplication.create(application, description, sort, type, system, subsystem, svnUrl, deployType, mavenGroupId, bugTrackerUrl, bugTrackerNewUrl, usrCreated, dateCreated, usrModif, dateModif);
}
Also used : IFactoryApplication(org.cerberus.crud.factory.IFactoryApplication) FactoryApplication(org.cerberus.crud.factory.impl.FactoryApplication) Timestamp(java.sql.Timestamp)

Aggregations

Timestamp (java.sql.Timestamp)1 IFactoryApplication (org.cerberus.crud.factory.IFactoryApplication)1 FactoryApplication (org.cerberus.crud.factory.impl.FactoryApplication)1