use of org.cerberus.crud.factory.impl.FactoryTag in project cerberus-source by cerberustesting.
the class TagDAO method loadFromResultSet.
@Override
public Tag loadFromResultSet(ResultSet rs) throws SQLException {
long id = ParameterParserUtil.parseLongParam(rs.getString("tag.id"), 0);
String tag = ParameterParserUtil.parseStringParam(rs.getString("tag.tag"), "");
String description = ParameterParserUtil.parseStringParam(rs.getString("tag.description"), "");
String campaign = ParameterParserUtil.parseStringParam(rs.getString("tag.campaign"), "");
Timestamp dateEndQueue = rs.getTimestamp("tag.DateEndQueue");
String usrModif = ParameterParserUtil.parseStringParam(rs.getString("tag.UsrModif"), "");
String usrCreated = ParameterParserUtil.parseStringParam(rs.getString("tag.UsrCreated"), "");
Timestamp dateModif = rs.getTimestamp("tag.DateModif");
Timestamp dateCreated = rs.getTimestamp("tag.DateCreated");
// TODO remove when working in test with mockito and autowired
factoryTag = new FactoryTag();
return factoryTag.create(id, tag, description, campaign, dateEndQueue, usrCreated, dateCreated, usrModif, dateModif);
}
Aggregations