Packages

c

gnieh.sohva

Design

class Design extends AnyRef

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

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Design
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
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
    @native() @throws( ... )
  6. def compact: Future[Boolean]

    Requests compaction of this design.

  7. 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..

  8. val db: Database
  9. def delete: Future[Boolean]

    Deletes this design document from the couchdb instance

  10. def deleteFilter(name: String): Future[Unit]

    Deletes the filter identified by its name from the design document

  11. def deleteList(listName: String): Future[Unit]

    Deletes the list function with the given name from the design

  12. def deleteShow(showName: String): Future[Unit]

    Deletes the show function with the given name from the design

  13. def deleteUpdate(updateName: String): Future[Unit]

    Deletes the update function with the given name from the design

  14. def deleteValidateFunction: Future[Unit]

    Deletes the document validation function from the design

  15. def deleteView(viewName: String): Future[Unit]

    Deletes the view with the given name from the design

  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  18. def exists: Future[Boolean]

    Check if the design exists.

    Check if the design exists.

    returns

    true if it does, false otherwise

  19. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. 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.

  22. def getRewriteRules(): Future[Seq[RewriteRule]]

    Retrieves the rewrite rules associated to this design document.

  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. val language: String
  26. def list(listName: String): CList

    Returns representation of the list function with the given view.

  27. val name: String
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. 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.

  32. 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.

  33. def saveRewriteRules(rules: Seq[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.

  34. 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.

  35. 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.

  36. 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.

  37. 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.

  38. def saveView(viewName: String, mapFun: String, reduceFun: Option[String] = None, extra: Map[String, JsValue] = Map()): 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.

  39. def saveViewLib(code: Map[String, JsValue]): Future[Unit]

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

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

  40. def show(showName: String): Show

    Returns representation of the show function for this design.

  41. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  42. def toString(): String
    Definition Classes
    Design → AnyRef → Any
  43. def update(updateName: String): Update

    Returns representation of the update function with the given view.

  44. val uri: Uri
    Attributes
    protected[gnieh.sohva]
  45. def view(viewName: String): View

    Returns the view in this design document.

  46. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped