use of org.cerberus.crud.factory.impl.FactoryLabel in project cerberus-source by cerberustesting.
the class CampaignLabelDAO method loadFromResultSet.
@Override
public CampaignLabel loadFromResultSet(ResultSet rs) throws SQLException {
int campaignlabelid = ParameterParserUtil.parseIntegerParam(rs.getString("cpl.campaignlabelid"), 0);
String campaign = ParameterParserUtil.parseStringParam(rs.getString("cpl.campaign"), "");
int labelid = ParameterParserUtil.parseIntegerParam(rs.getString("cpl.labelid"), 0);
String usrModif = ParameterParserUtil.parseStringParam(rs.getString("cpl.UsrModif"), "");
String usrCreated = ParameterParserUtil.parseStringParam(rs.getString("cpl.UsrCreated"), "");
Timestamp dateModif = rs.getTimestamp("cpl.DateModif");
Timestamp dateCreated = rs.getTimestamp("cpl.DateCreated");
Integer id = ParameterParserUtil.parseIntegerParam(rs.getString("lab.id"), 0);
String system = ParameterParserUtil.parseStringParam(rs.getString("lab.system"), "");
String label = ParameterParserUtil.parseStringParam(rs.getString("lab.label"), "");
String type = ParameterParserUtil.parseStringParam(rs.getString("lab.type"), "");
String color = ParameterParserUtil.parseStringParam(rs.getString("lab.color"), "");
String reqType = ParameterParserUtil.parseStringParam(rs.getString("lab.ReqType"), "");
String reqStatus = ParameterParserUtil.parseStringParam(rs.getString("lab.ReqStatus"), "");
String reqCriticity = ParameterParserUtil.parseStringParam(rs.getString("lab.ReqCriticity"), "");
String parentLabel = ParameterParserUtil.parseStringParam(rs.getString("lab.parentLabel"), "");
String description = ParameterParserUtil.parseStringParam(rs.getString("lab.description"), "");
String longDesc = ParameterParserUtil.parseStringParam(rs.getString("lab.LongDesc"), "");
String usrCreated1 = ParameterParserUtil.parseStringParam(rs.getString("lab.usrCreated"), "");
Timestamp dateCreated1 = rs.getTimestamp("lab.dateCreated");
String usrModif1 = ParameterParserUtil.parseStringParam(rs.getString("lab.usrModif"), "");
Timestamp dateModif1 = rs.getTimestamp("lab.dateModif");
factoryLabel = new FactoryLabel();
Label labelObj = factoryLabel.create(id, system, label, type, color, parentLabel, reqType, reqStatus, reqCriticity, description, longDesc, usrCreated1, dateCreated1, usrModif1, dateModif1);
factoryCampaignLabel = new FactoryCampaignLabel();
CampaignLabel res = factoryCampaignLabel.create(campaignlabelid, campaign, labelid, usrCreated, dateCreated, usrModif, dateModif);
res.setLabel(labelObj);
return res;
}
Aggregations