From 2161dc2b723cedfaa8990cfd7562d8b1bb738ab7 Mon Sep 17 00:00:00 2001 From: "Notmoo-PC\\Notmoo" Date: Fri, 25 Aug 2017 16:07:40 +0200 Subject: [PATCH] =?UTF-8?q?Module=20Core,=20packg=20"entities.query"=20:?= =?UTF-8?q?=20suppression=20de=20ce=20package=20(inutilis=C3=A9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/pqt/core/entities/query/IQuery.java | 5 ---- .../pqt/core/entities/query/QueryType.java | 6 ----- .../pqt/core/entities/query/SaleQuery.java | 21 ----------------- .../pqt/core/entities/query/SimpleQuery.java | 21 ----------------- .../pqt/core/entities/query/UpdateQuery.java | 23 ------------------- 5 files changed, 76 deletions(-) delete mode 100644 Workspace/core/src/main/java/com/pqt/core/entities/query/IQuery.java delete mode 100644 Workspace/core/src/main/java/com/pqt/core/entities/query/QueryType.java delete mode 100644 Workspace/core/src/main/java/com/pqt/core/entities/query/SaleQuery.java delete mode 100644 Workspace/core/src/main/java/com/pqt/core/entities/query/SimpleQuery.java delete mode 100644 Workspace/core/src/main/java/com/pqt/core/entities/query/UpdateQuery.java diff --git a/Workspace/core/src/main/java/com/pqt/core/entities/query/IQuery.java b/Workspace/core/src/main/java/com/pqt/core/entities/query/IQuery.java deleted file mode 100644 index c14de50a..00000000 --- a/Workspace/core/src/main/java/com/pqt/core/entities/query/IQuery.java +++ /dev/null @@ -1,5 +0,0 @@ -package com.pqt.core.entities.query; - -public interface IQuery { - -} diff --git a/Workspace/core/src/main/java/com/pqt/core/entities/query/QueryType.java b/Workspace/core/src/main/java/com/pqt/core/entities/query/QueryType.java deleted file mode 100644 index adeb0936..00000000 --- a/Workspace/core/src/main/java/com/pqt/core/entities/query/QueryType.java +++ /dev/null @@ -1,6 +0,0 @@ -package com.pqt.core.entities.query; - -public enum QueryType { - - CONNECT, SALE, STOCK, STAT, LOG, UPDATE -} diff --git a/Workspace/core/src/main/java/com/pqt/core/entities/query/SaleQuery.java b/Workspace/core/src/main/java/com/pqt/core/entities/query/SaleQuery.java deleted file mode 100644 index c205abf2..00000000 --- a/Workspace/core/src/main/java/com/pqt/core/entities/query/SaleQuery.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.pqt.core.entities.query; - -import com.pqt.core.entities.sale.Sale; - -public class SaleQuery extends SimpleQuery { - - private Sale sale; - - public SaleQuery(Sale sale) { - super(QueryType.SALE); - this.sale = sale; - } - - public Sale getSale() { - return sale; - } - - public void setSale(Sale sale) { - this.sale = sale; - } -} diff --git a/Workspace/core/src/main/java/com/pqt/core/entities/query/SimpleQuery.java b/Workspace/core/src/main/java/com/pqt/core/entities/query/SimpleQuery.java deleted file mode 100644 index 463653cd..00000000 --- a/Workspace/core/src/main/java/com/pqt/core/entities/query/SimpleQuery.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.pqt.core.entities.query; - -public class SimpleQuery implements IQuery { - - private QueryType type; - - /** - * - * @param type - * @throws NullPointerException if type is null - */ - public SimpleQuery(QueryType type) { - if(type==null) throw new NullPointerException("null value not allowed as query type"); - - this.type = type; - } - - public QueryType getType() { - return type; - } -} diff --git a/Workspace/core/src/main/java/com/pqt/core/entities/query/UpdateQuery.java b/Workspace/core/src/main/java/com/pqt/core/entities/query/UpdateQuery.java deleted file mode 100644 index 3a996bd4..00000000 --- a/Workspace/core/src/main/java/com/pqt/core/entities/query/UpdateQuery.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.pqt.core.entities.query; - -import com.pqt.core.entities.product.ProductUpdate; - -import java.util.List; - -public class UpdateQuery extends SimpleQuery { - - private List updates; - - public UpdateQuery(List updates) { - super(QueryType.UPDATE); - this.updates = updates; - } - - public List getUpdates() { - return updates; - } - - public void setUpdates(List updates) { - this.updates = updates; - } -}