Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrescobar2010-11-03 20:17:50 -0400
committerRyan D. Brooks2010-11-03 20:17:50 -0400
commit1104ddf269a5b21afbe2f83ac4ea3d93704048ef (patch)
tree23ffe61429572ad4f52e56f638fbe7bd2e5e75f1 /plugins/org.eclipse.osee.framework.database.test
parentc9c99478ab3c99cd79c9be3599dc2ebcee07c082 (diff)
downloadorg.eclipse.osee-1104ddf269a5b21afbe2f83ac4ea3d93704048ef.tar.gz
org.eclipse.osee-1104ddf269a5b21afbe2f83ac4ea3d93704048ef.tar.xz
org.eclipse.osee-1104ddf269a5b21afbe2f83ac4ea3d93704048ef.zip
refactor: Remove unnecessary exceptions
Diffstat (limited to 'plugins/org.eclipse.osee.framework.database.test')
-rw-r--r--plugins/org.eclipse.osee.framework.database.test/src/org/eclipse/osee/framework/database/test/mocks/MockJoinAccessor.java152
1 files changed, 74 insertions, 78 deletions
diff --git a/plugins/org.eclipse.osee.framework.database.test/src/org/eclipse/osee/framework/database/test/mocks/MockJoinAccessor.java b/plugins/org.eclipse.osee.framework.database.test/src/org/eclipse/osee/framework/database/test/mocks/MockJoinAccessor.java
index a411eea5e2..bb1c0427af 100644
--- a/plugins/org.eclipse.osee.framework.database.test/src/org/eclipse/osee/framework/database/test/mocks/MockJoinAccessor.java
+++ b/plugins/org.eclipse.osee.framework.database.test/src/org/eclipse/osee/framework/database/test/mocks/MockJoinAccessor.java
@@ -1,79 +1,75 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.database.test.mocks;
-
-import java.util.Collection;
-import java.util.List;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.database.core.DatabaseJoinAccessor.JoinItem;
-import org.eclipse.osee.framework.database.core.IJoinAccessor;
-import org.eclipse.osee.framework.database.core.OseeConnection;
-
-/**
- * @author Roberto E. Escobar
- */
-public class MockJoinAccessor implements IJoinAccessor {
-
- private OseeConnection connection;
- private JoinItem joinItem;
- private int queryId;
- private List<Object[]> dataList;
-
- @SuppressWarnings("unused")
- @Override
- public void store(OseeConnection connection, JoinItem joinItem, int queryId, List<Object[]> dataList) throws OseeCoreException {
- this.connection = connection;
- this.joinItem = joinItem;
- this.queryId = queryId;
- this.dataList = dataList;
- }
-
- @SuppressWarnings("unused")
- @Override
- public int delete(OseeConnection connection, JoinItem joinItem, int queryId) throws OseeCoreException {
- this.connection = connection;
- this.joinItem = joinItem;
- this.queryId = queryId;
- return 0;
- }
-
- @SuppressWarnings("unused")
- @Override
- public Collection<Integer> getAllQueryIds(OseeConnection connection, JoinItem joinItem) throws OseeCoreException {
- this.connection = connection;
- this.joinItem = joinItem;
- return null;
- }
-
- public void clear() {
- connection = null;
- joinItem = null;
- dataList = null;
- queryId = -1;
- }
-
- public OseeConnection getConnection() {
- return connection;
- }
-
- public JoinItem getJoinItem() {
- return joinItem;
- }
-
- public int getQueryId() {
- return queryId;
- }
-
- public List<Object[]> getDataList() {
- return dataList;
- }
-
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.framework.database.test.mocks;
+
+import java.util.Collection;
+import java.util.List;
+import org.eclipse.osee.framework.database.core.DatabaseJoinAccessor.JoinItem;
+import org.eclipse.osee.framework.database.core.IJoinAccessor;
+import org.eclipse.osee.framework.database.core.OseeConnection;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class MockJoinAccessor implements IJoinAccessor {
+
+ private OseeConnection connection;
+ private JoinItem joinItem;
+ private int queryId;
+ private List<Object[]> dataList;
+
+ @Override
+ public void store(OseeConnection connection, JoinItem joinItem, int queryId, List<Object[]> dataList) {
+ this.connection = connection;
+ this.joinItem = joinItem;
+ this.queryId = queryId;
+ this.dataList = dataList;
+ }
+
+ @Override
+ public int delete(OseeConnection connection, JoinItem joinItem, int queryId) {
+ this.connection = connection;
+ this.joinItem = joinItem;
+ this.queryId = queryId;
+ return 0;
+ }
+
+ @Override
+ public Collection<Integer> getAllQueryIds(OseeConnection connection, JoinItem joinItem) {
+ this.connection = connection;
+ this.joinItem = joinItem;
+ return null;
+ }
+
+ public void clear() {
+ connection = null;
+ joinItem = null;
+ dataList = null;
+ queryId = -1;
+ }
+
+ public OseeConnection getConnection() {
+ return connection;
+ }
+
+ public JoinItem getJoinItem() {
+ return joinItem;
+ }
+
+ public int getQueryId() {
+ return queryId;
+ }
+
+ public List<Object[]> getDataList() {
+ return dataList;
+ }
+
} \ No newline at end of file

Back to the top