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);
}
Aggregations