gnieh.sohva

Design

Related Doc: package sohva

trait Design[Result[_]] extends AnyRef

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

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

Abstract Value Members

  1. abstract def create: Result[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..

  2. abstract def delete: Result[Boolean]

    Deletes this design document from the couchdb instance

  3. abstract def deleteFilter(name: String): Result[Unit]

    Deletes the filter identified by its name from the design document

  4. abstract def deleteList(listName: String): Result[Unit]

    Deletes the list function with the given name from the design

  5. abstract def deleteShow(showName: String): Result[Unit]

    Deletes the show function with the given name from the design

  6. abstract def deleteUpdate(updateName: String): Result[Unit]

    Deletes the update function with the given name from the design

  7. abstract def deleteValidateFunction: Result[Unit]

    Deletes the document validation function from the design

  8. abstract def deleteView(viewName: String): Result[Unit]

    Deletes the view with the given name from the design

  9. abstract def exists: Result[Boolean]

    Check if the design exists.

    Check if the design exists.

    returns

    true if it does, false otherwise

  10. abstract def getDesignDocument: Result[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.

  11. abstract def getRewriteRules(): Result[List[RewriteRule]]

    Retrieves the rewrite rules associated to this design document.

  12. abstract val language: String

  13. abstract def list(listName: String): CList[Result]

    Returns representation of the list function with the given view.

  14. abstract val name: String

  15. abstract def saveFilter(name: String, filterFun: String): Result[Unit]

    Creates or updates a filter function.

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

  16. abstract def saveList(listName: String, list: String): Result[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.

  17. abstract def saveRewriteRules(rules: List[RewriteRule]): Result[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.

  18. abstract def saveShow(showName: String, show: String): Result[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.

  19. abstract def saveUpdate(updateName: String, update: String): Result[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.

  20. abstract def saveValidateFunction(validateFun: String): Result[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.

  21. abstract def saveView(viewName: String, view: ViewDoc): Result[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.

  22. abstract def saveView(viewName: String, mapFun: String, reduceFun: Option[String] = None): Result[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.

  23. abstract def show(showName: String): Show[Result]

    Returns representation of the show function for this design.

  24. abstract def update(updateName: String): Update[Result]

    Returns representation of the update function with the given view.

  25. abstract def view(viewName: String): View[Result]

    Returns the view in this design document.

Concrete 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. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  16. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped