Module Core, packg "entities.query" : suppression de ce package (inutilisé)

This commit is contained in:
Notmoo-PC\Notmoo 2017-08-25 16:07:40 +02:00
parent 57b950e465
commit 2161dc2b72
5 changed files with 0 additions and 76 deletions

View File

@ -1,5 +0,0 @@
package com.pqt.core.entities.query;
public interface IQuery {
}

View File

@ -1,6 +0,0 @@
package com.pqt.core.entities.query;
public enum QueryType {
CONNECT, SALE, STOCK, STAT, LOG, UPDATE
}

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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<ProductUpdate> updates;
public UpdateQuery(List<ProductUpdate> updates) {
super(QueryType.UPDATE);
this.updates = updates;
}
public List<ProductUpdate> getUpdates() {
return updates;
}
public void setUpdates(List<ProductUpdate> updates) {
this.updates = updates;
}
}