public StoreQueryType getType() {

        switch (onDemandQuery.getType()) {
            case INSERT:
                return StoreQueryType.INSERT;
            case DELETE:
                return StoreQueryType.DELETE;
            case UPDATE:
                return StoreQueryType.UPDATE;
            case SELECT:
                return StoreQueryType.SELECT;
            case UPDATE_OR_INSERT:
                return StoreQueryType.UPDATE_OR_INSERT;
            case FIND:
                return StoreQueryType.FIND;
        }
        return null;
    }
This method returns the type of given store query.

@return type of given store query
modules/siddhi-query-api/src/main/java/io/siddhi/query/api/execution/query/StoreQuery.java