com.dslplatform.api.client

ClientRepository

class ClientRepository[TIdentifiable <: Identifiable] extends ClientSearchableRepository[TIdentifiable] with Repository[TIdentifiable]

Common base implementation for Repository repository. It redirects calls to proxy services. It shouldn't be used or resolved. Instead domain model repositories should be resolved.

DSL example:

module Todo {
  aggregate Task;
  snowflake<Task> TaskList;
}
Java usage:
IServiceLocator locator;
Repository<Todo.TaskList> repository = locator.resolve(Todo.TaskListRepository.class);

Linear Supertypes
Repository[TIdentifiable], ClientSearchableRepository[TIdentifiable], SearchableRepository[TIdentifiable], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ClientRepository
  2. Repository
  3. ClientSearchableRepository
  4. SearchableRepository
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ClientRepository(locator: ServiceLocator)(implicit arg0: ClassTag[TIdentifiable])

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def count(specification: Option[Specification[TIdentifiable]]): Future[Long]

    Returns a number of elements satisfying provided specification.

    Returns a number of elements satisfying provided specification.

    specification

    search predicate

    returns

    future to number of domain objects which satisfy specification

    Definition Classes
    ClientSearchableRepositorySearchableRepository
  7. def count(specification: Specification[TIdentifiable]): Future[Long]

    Helper method for counting domain objects.

    Helper method for counting domain objects. Returns a number of elements satisfying provided specification.

    specification

    search predicate

    returns

    future to number of domain objects which satisfy specification

    Definition Classes
    SearchableRepository
  8. val crudProxy: CrudProxy

    Attributes
    protected
  9. val domainProxy: DomainProxy

    Attributes
    protected
    Definition Classes
    ClientSearchableRepository
  10. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def find(uri: String): Future[TIdentifiable]

    Returns a domain object uniquely represented with its URI.

    Returns a domain object uniquely represented with its URI. If object is not found, an exception will be thrown

    uri

    domain object identity

    returns

    future to found domain object

    Definition Classes
    ClientRepositoryRepository
  14. def find(uris: TraversableOnce[String]): Future[IndexedSeq[TIdentifiable]]

    Generated class will provide class manifest and locator

    Generated class will provide class manifest and locator

    uris

    sequence of unique identifiers

    returns

    future to found domain objects@param manifest domain object type

    Definition Classes
    ClientRepositoryRepository
  15. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  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 search(specification: Option[Specification[TIdentifiable]], limit: Option[Int], offset: Option[Int], order: Map[String, Boolean]): Future[IndexedSeq[TIdentifiable]]

    Returns a Seq of domain objects satisfying Specification[TSearchable] specification with up to limit results.

    Returns a Seq of domain objects satisfying Specification[TSearchable] specification with up to limit results. offset can be used to skip initial results. order should be given as a Seq of pairs of where first is a property name and second is whether it should be sorted ascending over this property.

    specification

    search predicate

    limit

    maximum number of results

    offset

    number of results to be skipped

    order

    custom ordering

    returns

    future to domain objects which satisfy search predicate

    Definition Classes
    ClientSearchableRepositorySearchableRepository
  22. def search(specification: Specification[TIdentifiable], limit: Int): Future[Seq[TIdentifiable]]

    Helper method for searching domain objects.

    Helper method for searching domain objects. Returns a Seq of domain objects satisfying Specification[TSearchable] specification with up to limit results.

    specification

    search predicate

    limit

    maximum number of results

    returns

    future to domain objects which satisfy search predicate

    Definition Classes
    SearchableRepository
  23. def search(specification: Specification[TIdentifiable]): Future[Seq[TIdentifiable]]

    Helper method for searching domain objects.

    Helper method for searching domain objects. Returns a Seq of domain objects satisfying Specification[TSearchable] specification

    specification

    search predicate

    returns

    future to domain objects which satisfy search predicate

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

    Definition Classes
    AnyRef
  25. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Repository[TIdentifiable]

Inherited from ClientSearchableRepository[TIdentifiable]

Inherited from SearchableRepository[TIdentifiable]

Inherited from AnyRef

Inherited from Any

Ungrouped