package com.eactive.testmaster.queue.dto;

import com.eactive.testmaster.common.search.BaseSearch;
import com.eactive.testmaster.common.search.ColumnSearchModel;
import com.eactive.testmaster.common.search.SearchCondition;
import com.eactive.testmaster.common.search.SearchModel;
import com.eactive.testmaster.queue.entity.QueueHandler;
import java.util.ArrayList;
import java.util.List;

public class QueueHandlerSearch implements BaseSearch<QueueHandler> {

    private String queueName;

    @Override
    public List<SearchModel> buildSearchCondition() {
        List<SearchModel> models = new ArrayList<>();
        models.add(new ColumnSearchModel("queueName", SearchCondition.LIKE, queueName));
        return models;
    }

    public String getQueueName() {
        return queueName;
    }

    public void setQueueName(String queueName) {
        this.queueName = queueName;
    }
}

