Search in sources :

Example 1 with FactoryBuildRevisionParameters

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

the class BuildRevisionParametersDAO method loadFromResultSet.

@Override
public BuildRevisionParameters loadFromResultSet(ResultSet rs) throws SQLException {
    int iD = rs.getInt("ID");
    String build = ParameterParserUtil.parseStringParam(rs.getString("build"), "");
    String revision = ParameterParserUtil.parseStringParam(rs.getString("revision"), "");
    String release = ParameterParserUtil.parseStringParam(rs.getString("release"), "");
    String application = ParameterParserUtil.parseStringParam(rs.getString("application"), "");
    String project = ParameterParserUtil.parseStringParam(rs.getString("project"), "");
    String ticketIdFixed = ParameterParserUtil.parseStringParam(rs.getString("ticketidfixed"), "");
    String budIdFixed = ParameterParserUtil.parseStringParam(rs.getString("bugidfixed"), "");
    String link = ParameterParserUtil.parseStringParam(rs.getString("link"), "");
    String releaseOwner = ParameterParserUtil.parseStringParam(rs.getString("releaseowner"), "");
    String subject = ParameterParserUtil.parseStringParam(rs.getString("subject"), "");
    Timestamp dateCreation = rs.getTimestamp("datecre");
    String jenkinsBuildId = ParameterParserUtil.parseStringParam(rs.getString("jenkinsbuildid"), "");
    String mavenGroupId = ParameterParserUtil.parseStringParam(rs.getString("mavengroupid"), "");
    String mavenArtifactId = ParameterParserUtil.parseStringParam(rs.getString("mavenartifactid"), "");
    String mavenVersion = ParameterParserUtil.parseStringParam(rs.getString("mavenversion"), "");
    String repositoryUrl = ParameterParserUtil.parseStringParam(rs.getString("repositoryurl"), "");
    factoryBuildRevisionParameters = new FactoryBuildRevisionParameters();
    return factoryBuildRevisionParameters.create(iD, build, revision, release, application, project, ticketIdFixed, budIdFixed, link, releaseOwner, subject, dateCreation, jenkinsBuildId, mavenGroupId, mavenArtifactId, mavenVersion, repositoryUrl);
}
Also used : FactoryBuildRevisionParameters(org.cerberus.crud.factory.impl.FactoryBuildRevisionParameters) IFactoryBuildRevisionParameters(org.cerberus.crud.factory.IFactoryBuildRevisionParameters)

Aggregations

IFactoryBuildRevisionParameters (org.cerberus.crud.factory.IFactoryBuildRevisionParameters)1 FactoryBuildRevisionParameters (org.cerberus.crud.factory.impl.FactoryBuildRevisionParameters)1