public void setType(StoreQueryType type) {

        switch (type) {

            case INSERT:
                onDemandQuery.setType(OnDemandQuery.OnDemandQueryType.INSERT);
                break;
            case DELETE:
                onDemandQuery.setType(OnDemandQuery.OnDemandQueryType.DELETE);
                break;
            case UPDATE:
                onDemandQuery.setType(OnDemandQuery.OnDemandQueryType.UPDATE);
                break;
            case SELECT:
                onDemandQuery.setType(OnDemandQuery.OnDemandQueryType.SELECT);
                break;
            case UPDATE_OR_INSERT:
                onDemandQuery.setType(OnDemandQuery.OnDemandQueryType.UPDATE_OR_INSERT);
                break;
            case FIND:
                onDemandQuery.setType(OnDemandQuery.OnDemandQueryType.FIND);
                break;
        }
    }
This method sets the type of given store query.
modules/siddhi-query-api/src/main/java/io/siddhi/query/api/execution/query/StoreQuery.java