PQT_Gestionnaire_vent_stock/Workspace/core/src/main/java/com/pqt/core/entities/query/SimpleQuery.java

22 lines
439 B
Java

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