Class AbstractRequest

  • Direct Known Subclasses:
    RequestMultiple, RequestSingle

    public abstract class AbstractRequest
    extends java.lang.Object
    Common Abstract Request
    • Field Detail

      • filter

        protected com.fasterxml.jackson.databind.node.ObjectNode filter
      • projection

        protected com.fasterxml.jackson.databind.node.ObjectNode projection
    • Constructor Detail

      • AbstractRequest

        public AbstractRequest()
    • Method Detail

      • resetHintFilter

        public final AbstractRequest resetHintFilter()
        Returns:
        this Request
      • resetFilter

        public final AbstractRequest resetFilter()
        Returns:
        this Request
      • addHintFilter

        public final AbstractRequest addHintFilter​(com.fasterxml.jackson.databind.JsonNode filterContent)
        Parameters:
        filterContent - json filter
        Returns:
        this Request
      • getFilter

        public final com.fasterxml.jackson.databind.node.ObjectNode getFilter()
        Returns:
        the filter
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getNbQueries

        public abstract int getNbQueries()
        Returns:
        the number of queries
      • getQueries

        public abstract java.util.List<Query> getQueries()
        Returns:
        the queries list
      • getRoots

        public abstract java.util.Set<java.lang.String> getRoots()
        Returns:
        the queries list
      • getData

        public abstract com.fasterxml.jackson.databind.JsonNode getData()
        Returns:
        the data
      • getActions

        public abstract java.util.List<Action> getActions()
        Returns:
        list of actions
      • getAllProjection

        public abstract boolean getAllProjection()
        Returns:
        True if the projection is not restricted
      • getProjection

        public abstract com.fasterxml.jackson.databind.node.ObjectNode getProjection()
        Returns:
        the projection
      • selectResetLimitFilter

        protected final AbstractRequest selectResetLimitFilter()
        Returns:
        this Query
      • selectResetOrderByFilter

        protected final AbstractRequest selectResetOrderByFilter()
        Returns:
        this Query
      • selectResetUsedProjection

        protected final AbstractRequest selectResetUsedProjection()
        Returns:
        this Query
      • selectSetScrollFilter

        protected final AbstractRequest selectSetScrollFilter​(java.lang.String scrollId,
                                                              int scrollTimeout,
                                                              int limit)
        Parameters:
        scrollId - ignored if empty or null
        scrollTimeout - ignored if 0
        limit - ignored if 0
        Returns:
        this Query
      • selectSetLimitFilter

        protected final AbstractRequest selectSetLimitFilter​(long offset,
                                                             long limit)
        Parameters:
        offset - ignored if 0
        limit - ignored if 0
        Returns:
        this Query
      • selectSetLimitFilter

        protected final AbstractRequest selectSetLimitFilter​(com.fasterxml.jackson.databind.JsonNode filterContent)
        Parameters:
        filterContent - json filter
        Returns:
        this Query
      • selectAddProjection

        protected final AbstractRequest selectAddProjection​(com.fasterxml.jackson.databind.JsonNode projectionContent)
        Parameters:
        projectionContent - json projection
        Returns:
        this Query
      • getFinal

        protected abstract com.fasterxml.jackson.databind.node.ObjectNode getFinal()
        Get the json final of request
        Returns:
        the Final json containing all 2 parts: query and filter
      • selectGetFinalSelect

        protected final com.fasterxml.jackson.databind.node.ObjectNode selectGetFinalSelect()
        Returns:
        the Final Select containing all 3 parts: query, filter and projection
      • selectGetAllProjection

        protected boolean selectGetAllProjection()
        Returns:
        True if the projection is not restricted
      • selectGetProjection

        protected com.fasterxml.jackson.databind.node.ObjectNode selectGetProjection()
        Returns:
        the projection