diff options
author | Roberto E. Escobar | 2014-11-18 20:37:21 +0000 |
---|---|---|
committer | Angel Avila | 2014-11-18 20:37:21 +0000 |
commit | e8a56b2efeef8704d17346b79c561ff1ba9680ca (patch) | |
tree | 82af9ea0c5f7ee5be6ab19f091ffb7512de443d8 | |
parent | 9ee427282691345c051a49ce636bb497b7d95dbf (diff) | |
download | org.eclipse.osee-e8a56b2efeef8704d17346b79c561ff1ba9680ca.tar.gz org.eclipse.osee-e8a56b2efeef8704d17346b79c561ff1ba9680ca.tar.xz org.eclipse.osee-e8a56b2efeef8704d17346b79c561ff1ba9680ca.zip |
refactor: Remove ExportImportJoinQuery from client
Change-Id: I2d39af99450282f263641e86013b80873343f4bf
2 files changed, 0 insertions, 68 deletions
diff --git a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/ExportImportJoinQuery.java b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/ExportImportJoinQuery.java deleted file mode 100644 index c2407f77331..00000000000 --- a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/ExportImportJoinQuery.java +++ /dev/null @@ -1,64 +0,0 @@ -/******************************************************************************* - * 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.core; - -import org.eclipse.osee.framework.database.core.DatabaseJoinAccessor.JoinItem; - -/** - * @author Roberto E. Escobar - */ -public final class ExportImportJoinQuery extends AbstractJoinQuery { - - private final class ExportImportEntry implements IJoinRow { - private final long id1; - private final long id2; - - private ExportImportEntry(Long id1, Long id2) { - this.id1 = id1; - this.id2 = id2; - } - - @Override - public Object[] toArray() { - return new Object[] {getQueryId(), getInsertTime(), id1, id2}; - } - - @Override - public boolean equals(Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof ExportImportEntry)) { - return false; - } - ExportImportEntry other = (ExportImportEntry) obj; - return this.id1 == other.id1 && this.id2 == other.id2; - } - - @Override - public int hashCode() { - return Long.valueOf(37 * id1 * id2).hashCode(); - } - - @Override - public String toString() { - return String.format("id1=%s id2=%s", id1, id2); - } - } - - protected ExportImportJoinQuery(IJoinAccessor joinAccessor, int queryId) { - super(joinAccessor, JoinItem.EXPORT_IMPORT, queryId); - } - - public void add(Long id1, Long id2) { - entries.add(new ExportImportEntry(id1, id2)); - } -}
\ No newline at end of file diff --git a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/JoinUtility.java b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/JoinUtility.java index 7046358ffce..cfe792d6b0e 100644 --- a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/JoinUtility.java +++ b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/JoinUtility.java @@ -51,8 +51,4 @@ public class JoinUtility { return new IdJoinQuery(createAccessor(getDatabase()), getNewQueryId()); } - public static ExportImportJoinQuery createExportImportJoinQuery() throws OseeDataStoreException { - return new ExportImportJoinQuery(createAccessor(getDatabase()), getNewQueryId()); - } - } |