diff options
author | rescobar | 2011-04-19 20:36:53 +0000 |
---|---|---|
committer | Ryan D. Brooks | 2011-04-19 20:36:53 +0000 |
commit | 04251ce4c39c5df402c317aca5190951ec237271 (patch) | |
tree | fcb143a2788b64e3e098780285d0f0e643d173df /plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework | |
parent | 3e531a33701e66f7af01f4ab52e3a825f3d32dee (diff) | |
download | org.eclipse.osee-04251ce4c39c5df402c317aca5190951ec237271.tar.gz org.eclipse.osee-04251ce4c39c5df402c317aca5190951ec237271.tar.xz org.eclipse.osee-04251ce4c39c5df402c317aca5190951ec237271.zip |
refactor: Remove test methods from DbUtil
Diffstat (limited to 'plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework')
-rw-r--r-- | plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/utility/DbUtil.java | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/utility/DbUtil.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/utility/DbUtil.java index 60298203fd8..417c1b00bd3 100644 --- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/utility/DbUtil.java +++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/utility/DbUtil.java @@ -10,11 +10,7 @@ *******************************************************************************/ package org.eclipse.osee.framework.skynet.core.utility; -import java.util.Collection; -import java.util.Map; import org.eclipse.osee.framework.core.client.OseeClientProperties; -import org.eclipse.osee.framework.core.exception.OseeCoreException; -import org.eclipse.osee.framework.database.core.ConnectionHandler; /** * @author Donald G. Dunne @@ -25,16 +21,6 @@ public final class DbUtil { // Utility Class - class should only have static methods } - public static void getTableRowCounts(Map<String, Integer> tableCount, Collection<String> tableNames) throws OseeCoreException { - for (String tableName : tableNames) { - tableCount.put(tableName, getTableRowCount(tableName)); - } - } - - public static int getTableRowCount(String tableName) throws OseeCoreException { - return ConnectionHandler.runPreparedQueryFetchInt(0, "SELECT count(1) FROM " + tableName); - } - public static boolean isDbInit() { return OseeClientProperties.isInDbInit(); } |