Interface Queryable.Consumer<O>

    • Method Summary

      Modifier and Type Method Description
      <R> R get​(O instance, QueryParameter queryParameter, Queryable.DataSource<O> dataSource)
      Get naming information from an instance.
      <R> R getParameter​(java.lang.Integer place)
      This method must returns the parameter for the place indicated as parameter.
      <R> R resolveFunction​(QueryFunction function, java.lang.Object instance, Queryable.DataSource<O> dataSource)
      This method must resolve the functions that are used into the query object.
    • Method Detail

      • get

        <R> R get​(O instance,
                  QueryParameter queryParameter,
                  Queryable.DataSource<O> dataSource)
        Get naming information from an instance.
        Type Parameters:
        R - Expected response type.
        Parameters:
        instance - Data source.
        queryParameter - Query parameter.
        dataSource - Data source
        Returns:
        Return the data storage in the data source indexed by the parameter name.
      • resolveFunction

        <R> R resolveFunction​(QueryFunction function,
                              java.lang.Object instance,
                              Queryable.DataSource<O> dataSource)
        This method must resolve the functions that are used into the query object.
        Type Parameters:
        R - Expected result.
        Parameters:
        function - Query function.
        instance - Data object instance.
        dataSource - Data source
        Returns:
        Return the value obtained of the function resolution.
      • getParameter

        <R> R getParameter​(java.lang.Integer place)
        This method must returns the parameter for the place indicated as parameter.
        Type Parameters:
        R - Expected result type.
        Parameters:
        place - Place value.
        Returns:
        Returns the value for the specific place.