* See the License for the specific language governing permissions and\r
* limitations under the License.\r
*/\r
-package org.openo.holmes.rulemgt.db;\r
+package org.onap.holmes.rulemgt.db;\r
\r
import java.util.List;\r
-import org.openo.holmes.common.api.entity.CorrelationRule;\r
-import org.openo.holmes.common.exception.CorrelationException;\r
-import org.openo.holmes.common.utils.I18nProxy;\r
-import org.openo.holmes.rulemgt.db.mapper.CorrelationRuleMapper;\r
+import org.onap.holmes.common.api.entity.CorrelationRule;\r
+import org.onap.holmes.common.exception.CorrelationException;\r
+import org.onap.holmes.rulemgt.db.mapper.CorrelationRuleMapper;\r
import org.skife.jdbi.v2.sqlobject.Bind;\r
import org.skife.jdbi.v2.sqlobject.BindBean;\r
import org.skife.jdbi.v2.sqlobject.GetGeneratedKeys;\r
addRule(correlationRule);\r
return correlationRule;\r
} catch (Exception e) {\r
- throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_DB_ERROR,e);\r
+ throw new CorrelationException("Can not access the database. Please contact the administrator for help.", e);\r
}\r
}\r
\r
try {\r
updateRuleByRid(correlationRule);\r
} catch (Exception e) {\r
- throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_DB_ERROR,e);\r
+ throw new CorrelationException("Can not access the database. Please contact the administrator for help.", e);\r
}\r
}\r
\r
try {\r
deleteRule2DbInner(correlationRule);\r
} catch (Exception e) {\r
- throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_DB_ERROR,e);\r
+ throw new CorrelationException("Can not access the database. Please contact the administrator for help.", e);\r
}\r
}\r
\r
try {\r
return queryRuleById(rid);\r
} catch (Exception e) {\r
- throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_DB_ERROR,e);\r
+ throw new CorrelationException("Can not access the database. Please contact the administrator for help.", e);\r
}\r
}\r
\r
try {\r
return queryRuleByName(name);\r
} catch (Exception e) {\r
- throw new CorrelationException(I18nProxy.RULE_MANAGEMENT_DB_ERROR,e);\r
+ throw new CorrelationException("Can not access the database. Please contact the administrator for help.", e);\r
}\r
}\r
}\r