Search in sources :

Example 1 with FactoryCampaignLabel

use of org.cerberus.crud.factory.impl.FactoryCampaignLabel 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;
}
Also used : FactoryLabel(org.cerberus.crud.factory.impl.FactoryLabel) IFactoryLabel(org.cerberus.crud.factory.IFactoryLabel) FactoryCampaignLabel(org.cerberus.crud.factory.impl.FactoryCampaignLabel) Label(org.cerberus.crud.entity.Label) IFactoryCampaignLabel(org.cerberus.crud.factory.IFactoryCampaignLabel) CampaignLabel(org.cerberus.crud.entity.CampaignLabel) FactoryLabel(org.cerberus.crud.factory.impl.FactoryLabel) IFactoryLabel(org.cerberus.crud.factory.IFactoryLabel) FactoryCampaignLabel(org.cerberus.crud.factory.impl.FactoryCampaignLabel) IFactoryCampaignLabel(org.cerberus.crud.factory.IFactoryCampaignLabel) CampaignLabel(org.cerberus.crud.entity.CampaignLabel) Timestamp(java.sql.Timestamp) FactoryCampaignLabel(org.cerberus.crud.factory.impl.FactoryCampaignLabel) IFactoryCampaignLabel(org.cerberus.crud.factory.IFactoryCampaignLabel)

Aggregations

Timestamp (java.sql.Timestamp)1 CampaignLabel (org.cerberus.crud.entity.CampaignLabel)1 Label (org.cerberus.crud.entity.Label)1 IFactoryCampaignLabel (org.cerberus.crud.factory.IFactoryCampaignLabel)1 IFactoryLabel (org.cerberus.crud.factory.IFactoryLabel)1 FactoryCampaignLabel (org.cerberus.crud.factory.impl.FactoryCampaignLabel)1 FactoryLabel (org.cerberus.crud.factory.impl.FactoryLabel)1