Change the groupid from openo to onap
[holmes/rule-management.git] / rulemgt / src / main / java / org / onap / holmes / rulemgt / db / CorrelationRuleDao.java
  * 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
@@ -67,7 +66,7 @@ public abstract class CorrelationRuleDao {
             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
@@ -75,7 +74,7 @@ public abstract class CorrelationRuleDao {
         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
@@ -83,7 +82,7 @@ public abstract class CorrelationRuleDao {
         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
@@ -92,7 +91,7 @@ public abstract class CorrelationRuleDao {
         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
@@ -100,7 +99,7 @@ public abstract class CorrelationRuleDao {
         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