From 4dc5a1ace9ca3530f38333ef600b489c3753b79f Mon Sep 17 00:00:00 2001 From: Stephane Gamard Date: Wed, 20 Aug 2014 10:25:46 +0200 Subject: [PATCH] Finalized base methods for DAO --- .../src/main/java/org/sonar/server/db/BaseDao.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/sonar-server/src/main/java/org/sonar/server/db/BaseDao.java b/server/sonar-server/src/main/java/org/sonar/server/db/BaseDao.java index a14270f1358..ad263cc95f0 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/db/BaseDao.java +++ b/server/sonar-server/src/main/java/org/sonar/server/db/BaseDao.java @@ -137,7 +137,7 @@ public abstract class BaseDao, K extends Serializable> imple return doGetNullableByKey(session, key); } - public E getByKey(DbSession session, K key) { + public final E getByKey(DbSession session, K key) { E value = doGetNullableByKey(session, key); if (value == null) { throw new NotFoundException(String.format("Key '%s' not found", key)); @@ -163,7 +163,7 @@ public abstract class BaseDao, K extends Serializable> imple } @Override - public Collection update(DbSession session, Collection items) { + public final Collection update(DbSession session, Collection items) { Date now = new Date(system2.now()); for (E item : items) { update(session, item, now); @@ -199,7 +199,7 @@ public abstract class BaseDao, K extends Serializable> imple } @Override - public E insert(DbSession session, E item, E... others) { + public final E insert(DbSession session, E item, E... others) { Date now = new Date(system2.now()); insert(session, item, now); for (E other : others) { -- 2.39.5