JsCao1

abstract
class JsCao1[T, A](val bucket: ScalaBucket)(implicit val fmt: Format[T]) extends JsCaoTrait[T] with WithCaoKey1[T, A, JsValue, JsDocument]

Base class for Couchbase Access Object to access json documents that can be decode/encode to/from the T type - which is store in couchbase at key generated from the T.key(A) method

trait WithCaoKey1[T, A, JsValue, JsDocument]
trait CaoTrait[T, A, JsValue, JsDocument]
trait JsCaoTrait[T]
class Object
trait Matchable
class Any

Type members

Inherited types

final
type DocumentCAS = (T, Long)
Inherited from
CaoTrait

Value members

Inherited methods

final
def change(a: A)(f: Option[T] => T): Future[JsDocument]
Inherited from
CaoTrait
final
def changeBulk(aa: Seq[A])(f: Option[T] => T): Future[Seq[JsDocument]]
Inherited from
CaoTrait
protected
def createDoc(id: String, expiry: Int, content: JsValue, cas: Long): JsDocument
protected
def expiry(): Int
Inherited from
CaoTrait
final
def flatChange(a: A)(f: Option[T] => Future[T]): Future[JsDocument]
Inherited from
CaoTrait
final
def flatChangeBulk(aa: Seq[A])(f: Option[T] => Future[T]): Future[Seq[JsDocument]]
Inherited from
CaoTrait
final
def get(a: A): Future[T]
Inherited from
WithCaoKey1
final
def getBulk(aa: Seq[A]): Future[Seq[T]]
Inherited from
CaoTrait
final
def getBulkWithCAS(aa: Seq[A]): Future[Seq[DocumentCAS]]
Inherited from
CaoTrait
final
def getOrElse(a: A)(default: => T): Future[T]
Value Params
a

document id or the param of WithCaoKey1.key(a: A)

Inherited from
CaoTrait
final
def getOrElseWithCAS(a: A)(default: => T): Future[DocumentCAS]
Value Params
a

document id or the param of WithCaoKey1.key(a: A)

Inherited from
CaoTrait
final
def getOrUpdate(a: A)(default: => T): Future[T]
Value Params
a

document id or the param of WithCaoKey1.key(a: A)

Inherited from
CaoTrait
final
def getWithCAS(a: A): Future[(T, Long)]
Inherited from
WithCaoKey1
protected
def key(a: A): String
Inherited from
WithCaoKey1
final
def query1(n1ql: String, params: AnyRef*): Future[Option[T]]
Inherited from
JsCaoTrait
final
def query1(n1ql: String, qparam: N1qlParams, params: AnyRef*): Future[Option[T]]
Inherited from
JsCaoTrait
final
def remove(a: A): Future[JsDocument]
Inherited from
WithCaoKey1
final
def set(a: A, t: T): Future[JsDocument]
Inherited from
WithCaoKey1
final
def setBulk(aa: Seq[A], tt: Seq[T]): Future[Seq[JsDocument]]
Inherited from
CaoTrait
final
def setT(a: A, t: T): Future[T]

convenient method. = set(..).map(_ => t)

convenient method. = set(..).map(_ => t)

Inherited from
CaoTrait
final
def update(a: A, t: T, cas: Long): Future[JsDocument]
Inherited from
WithCaoKey1
final
def updateWithCAS(a: A, t: T, cas: Long): Future[JsDocument]
Inherited from
WithCaoKey1

Concrete fields

final override
val self: JsCao[T]