Interface Queryable<S,​Q extends com.github.rutledgepaulv.qbuilders.builders.QBuilder<Q>>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Set<S> findAll​(com.github.rutledgepaulv.qbuilders.conditions.Condition<Q> condition)
      Searching for multiple values.
      java.util.Optional<S> findById​(long id)  
      java.util.Optional<S> findOne​(com.github.rutledgepaulv.qbuilders.conditions.Condition<Q> condition)
      Searching for one value.
    • Method Detail

      • findAll

        java.util.Set<S> findAll​(com.github.rutledgepaulv.qbuilders.conditions.Condition<Q> condition)
        Searching for multiple values.
        Parameters:
        condition -
        Returns:
      • findOne

        java.util.Optional<S> findOne​(com.github.rutledgepaulv.qbuilders.conditions.Condition<Q> condition)
        Searching for one value. If the metadata returns multiple values the exception is thrown (@see {@link IllegalStateException)}
        Parameters:
        condition -
        Returns:
        Optional with value or empty.
        Throws:
        java.lang.IllegalStateException - if found multiple values.
      • findById

        java.util.Optional<S> findById​(long id)