X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=holmes-actions%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fholmes%2Fcommon%2Futils%2FCorrelationRuleMapper.java;h=835d059f1f81943c7b0b0632caf3ba838449f3e5;hb=f00f74740e42d08cc6823d094b78aedf87e4cff8;hp=a0fbd93160d8b4e3c3735a3a504355b2d34f70ea;hpb=416b647f4a13497e2edf2a0543067cb4a036c7f2;p=holmes%2Fcommon.git diff --git a/holmes-actions/src/main/java/org/onap/holmes/common/utils/CorrelationRuleMapper.java b/holmes-actions/src/main/java/org/onap/holmes/common/utils/CorrelationRuleMapper.java index a0fbd93..835d059 100644 --- a/holmes-actions/src/main/java/org/onap/holmes/common/utils/CorrelationRuleMapper.java +++ b/holmes-actions/src/main/java/org/onap/holmes/common/utils/CorrelationRuleMapper.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 ZTE Corporation. + * Copyright 2017-2022 ZTE Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,17 +16,18 @@ package org.onap.holmes.common.utils; +import org.jdbi.v3.core.mapper.RowMapper; +import org.jdbi.v3.core.statement.StatementContext; +import org.onap.holmes.common.api.entity.CorrelationRule; + import java.sql.ResultSet; import java.sql.SQLException; import java.util.Properties; -import org.onap.holmes.common.api.entity.CorrelationRule; -import org.skife.jdbi.v2.StatementContext; -import org.skife.jdbi.v2.tweak.ResultSetMapper; -public class CorrelationRuleMapper implements ResultSetMapper { +public class CorrelationRuleMapper implements RowMapper { @Override - public CorrelationRule map(int i, ResultSet resultSet, StatementContext statementContext) throws SQLException { + public CorrelationRule map(ResultSet resultSet, StatementContext statementContext) throws SQLException { CorrelationRule correlationRule = new CorrelationRule(); correlationRule.setName(resultSet.getString("name")); correlationRule.setRid(resultSet.getString("rid"));