Interface ReadLayerInterface<O>

    • Method Summary

      Modifier and Type Method Description
      default java.util.Collection<O> read()
      This method implements the read operation without filters.
      default O read​(java.lang.Object id)
      This method implements the read operation to find an instance of the resource using only it's id.
      default java.util.Collection<O> read​(Queryable queryable)
      This method implements the read operation using the filters specified in the query.
      • Methods inherited from interface java.lang.reflect.InvocationHandler

        invoke
    • Method Detail

      • read

        default O read​(java.lang.Object id)
        This method implements the read operation to find an instance of the resource using only it's id.
        Parameters:
        id - Id to found the instance.
        Returns:
        Return the instance founded or null if the instance is not found.
      • read

        default java.util.Collection<O> read()
        This method implements the read operation without filters.
        Returns:
        List with all the instances of the resource.
      • read

        default java.util.Collection<O> read​(Queryable queryable)
        This method implements the read operation using the filters specified in the query.
        Parameters:
        queryable - Instance that contains all the information to evaluate a query.
        Returns:
        Return the list with the instances founded.