com.dslplatform.api.client

SearchBuilder

class SearchBuilder[TSearchable <: Searchable] extends AnyRef

Utility class for building a search over a SearchableRepository searchable repository. Search can be performed using more fluent API, by providing specification limit, offset and custom order Constructor for SearchBuilder which requires a repository to perform a search.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SearchBuilder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SearchBuilder(repository: SearchableRepository[TSearchable])

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def ascending(property: String): SearchBuilder[TSearchable]

    Order result ascending using a provided property

    Order result ascending using a provided property

    property

    name of domain objects property

    returns

    itself

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def descending(property: String): SearchBuilder[TSearchable]

    Order result descending using a provided property

    Order result descending using a provided property

    property

    name of domain objects property

    returns

    itself

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def filter(specification: Specification[TSearchable]): SearchBuilder[TSearchable]

    Provide Specification[TSearchable] search predicate for filtering results.

    Provide Specification[TSearchable] search predicate for filtering results.

    specification

    search predicate

    returns

    itself

  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. def limit(limit: Int): SearchBuilder[TSearchable]

    Define a maximum number of results

    Define a maximum number of results

    limit

    maximum number of results

    returns

    itself

  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. def offset(offset: Int): SearchBuilder[TSearchable]

    Define a number of results to be skipped.

    Define a number of results to be skipped.

    offset

    number of results to be skipped

    returns

    itself

  22. def search(): Future[Seq[TSearchable]]

    Returns a Seq of domain objects which satisfy Specification specification if it was set, otherwise all of them.

    Returns a Seq of domain objects which satisfy Specification specification if it was set, otherwise all of them. Parameters can be previously set to limit results, skip offset of initial results and order by some of this domain objects properties.

    returns

    future value of the resulting sequence

  23. def skip(offset: Int): SearchBuilder.this.type

    Define a number of results to be skipped.

    Define a number of results to be skipped.

    offset

    number of results to be skipped

    returns

    itself

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def take(limit: Int): SearchBuilder.this.type

    Define a maximum number of results.

    Define a maximum number of results.

    limit

    maximum number of results

    returns

    itself

  26. def toString(): String

    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def where(specification: Specification[TSearchable]): SearchBuilder[TSearchable]

    Provide Specification[TSearchable] search predicate for filtering results.

    Provide Specification[TSearchable] search predicate for filtering results.

    specification

    search predicate

    returns

    itself

Inherited from AnyRef

Inherited from Any

Ungrouped