gnieh.sohva.async

Design

Related Doc: package async

class Design extends sohva.Design[Future]

A design gives access to the different views. Use this class to get or create new views.

Linear Supertypes
sohva.Design[Future], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Design
  2. Design
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Design(db: Database, name: String, language: String)

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 create: Future[DesignDoc]

    Create an empty design document if none exists.

    Create an empty design document if none exists. Raises an exception if the design already exists.

    returns

    the design document if created..

    Definition Classes
    DesignDesign
  7. val db: Database

  8. def delete: Future[Boolean]

    Deletes this design document from the couchdb instance

    Deletes this design document from the couchdb instance

    Definition Classes
    DesignDesign
  9. def deleteFilter(name: String): Future[Unit]

    Deletes the filter identified by its name from the design document

    Deletes the filter identified by its name from the design document

    Definition Classes
    DesignDesign
  10. def deleteList(listName: String): Future[Unit]

    Deletes the list function with the given name from the design

    Deletes the list function with the given name from the design

    Definition Classes
    DesignDesign
  11. def deleteShow(showName: String): Future[Unit]

    Deletes the show function with the given name from the design

    Deletes the show function with the given name from the design

    Definition Classes
    DesignDesign
  12. def deleteUpdate(updateName: String): Future[Unit]

    Deletes the update function with the given name from the design

    Deletes the update function with the given name from the design

    Definition Classes
    DesignDesign
  13. def deleteValidateFunction: Future[Unit]

    Deletes the document validation function from the design

    Deletes the document validation function from the design

    Definition Classes
    DesignDesign
  14. def deleteView(viewName: String): Future[Unit]

    Deletes the view with the given name from the design

    Deletes the view with the given name from the design

    Definition Classes
    DesignDesign
  15. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  17. def exists: Future[Boolean]

    Check if the design exists.

    Check if the design exists.

    returns

    true if it does, false otherwise

    Definition Classes
    DesignDesign
  18. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  20. def getDesignDocument: Future[Option[DesignDoc]]

    Returns the design document from the couchdb instance.

    Returns the design document from the couchdb instance. Returns None if the design document does not exist.

    Definition Classes
    DesignDesign
  21. def getRewriteRules(): Future[List[RewriteRule]]

    Retrieves the rewrite rules associated to this design document.

    Retrieves the rewrite rules associated to this design document.

    Definition Classes
    DesignDesign
  22. def hashCode(): Int

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

    Definition Classes
    Any
  24. val language: String

    Definition Classes
    DesignDesign
  25. def list(listName: String): CList

    Returns representation of the list function with the given view.

    Returns representation of the list function with the given view.

    Definition Classes
    DesignDesign
  26. val name: String

    Definition Classes
    DesignDesign
  27. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  30. def saveFilter(name: String, filterFun: String): Future[Unit]

    Creates or updates a filter function.

    Creates or updates a filter function. If the design does not exist yet, it is created.

    Definition Classes
    DesignDesign
  31. def saveList(listName: String, listFun: String): Future[Unit]

    Creates or update the update function in this design with the given name.

    Creates or update the update function in this design with the given name. If the design does not exist yet, it is created.

    Definition Classes
    DesignDesign
  32. def saveRewriteRules(rules: List[RewriteRule]): Future[Unit]

    Creates or updates the list of rewrite rules.

    Creates or updates the list of rewrite rules. If the design does not exist yet, it is created.

    Definition Classes
    DesignDesign
  33. def saveShow(showName: String, showFun: String): Future[Unit]

    Creates or update the show function in this design with the given name.

    Creates or update the show function in this design with the given name. If the design does not exist yet, it is created.

    Definition Classes
    DesignDesign
  34. def saveUpdate(updateName: String, updateFun: String): Future[Unit]

    Creates or update the update function in this design with the given name.

    Creates or update the update function in this design with the given name. If the design does not exist yet, it is created.

    Definition Classes
    DesignDesign
  35. def saveValidateFunction(validateFun: String): Future[Unit]

    Creates or updates the document validation function.

    Creates or updates the document validation function. If the design does not exist yet, it is created.

    Definition Classes
    DesignDesign
  36. def saveView(viewName: String, view: ViewDoc): Future[Unit]

    Creates or updates the view in this design with the given name.

    Creates or updates the view in this design with the given name. If the design does not exist yet, it is created.

    Definition Classes
    DesignDesign
  37. def saveView(viewName: String, mapFun: String, reduceFun: Option[String] = None): Future[Unit]

    Creates or updates the view in this design with the given name, map function and reduce function.

    Creates or updates the view in this design with the given name, map function and reduce function. If the design does not exist yet, it is created.

    Definition Classes
    DesignDesign
  38. def show(showName: String): Show

    Returns representation of the show function for this design.

    Returns representation of the show function for this design.

    Definition Classes
    DesignDesign
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  40. def toString(): String

    Definition Classes
    Design → AnyRef → Any
  41. def update(updateName: String): Update

    Returns representation of the update function with the given view.

    Returns representation of the update function with the given view.

    Definition Classes
    DesignDesign
  42. def uri: Uri

    Attributes
    protected[gnieh.sohva]
  43. def view(viewName: String): View

    Returns the view in this design document.

    Returns the view in this design document.

    Definition Classes
    DesignDesign
  44. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from sohva.Design[Future]

Inherited from AnyRef

Inherited from Any

Ungrouped