Search in sources :

Example 1 with FactoryTestCaseExecutionFile

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

the class TestCaseExecutionFileDAO method loadFromResultSet.

@Override
public TestCaseExecutionFile loadFromResultSet(ResultSet rs) throws SQLException {
    long id = rs.getLong("exf.id");
    long exeId = rs.getLong("exf.exeid");
    String level = ParameterParserUtil.parseStringParam(rs.getString("exf.level"), "");
    String fileDesc = ParameterParserUtil.parseStringParam(rs.getString("exf.filedesc"), "");
    String fileName = ParameterParserUtil.parseStringParam(rs.getString("exf.filename"), "");
    String fileType = ParameterParserUtil.parseStringParam(rs.getString("exf.filetype"), "");
    String usrCreated = ParameterParserUtil.parseStringParam(rs.getString("exf.usrcreated"), "");
    String usrModif = ParameterParserUtil.parseStringParam(rs.getString("exf.usrmodif"), "");
    Timestamp dateCreated = rs.getTimestamp("exf.dateCreated");
    Timestamp dateModif = rs.getTimestamp("exf.dateModif");
    // TODO remove when working in test with mockito and autowired
    factoryTestCaseExecutionFile = new FactoryTestCaseExecutionFile();
    return factoryTestCaseExecutionFile.create(id, exeId, level, fileDesc, fileName, fileType, usrCreated, dateCreated, usrModif, dateModif);
}
Also used : FactoryTestCaseExecutionFile(org.cerberus.crud.factory.impl.FactoryTestCaseExecutionFile) IFactoryTestCaseExecutionFile(org.cerberus.crud.factory.IFactoryTestCaseExecutionFile) Timestamp(java.sql.Timestamp)

Aggregations

Timestamp (java.sql.Timestamp)1 IFactoryTestCaseExecutionFile (org.cerberus.crud.factory.IFactoryTestCaseExecutionFile)1 FactoryTestCaseExecutionFile (org.cerberus.crud.factory.impl.FactoryTestCaseExecutionFile)1