Class/Object

spinoco.fs2.cassandra.builder

UpdateBuilder

Related Docs: object UpdateBuilder | package builder

Permalink

case class UpdateBuilder[R <: HList, PK <: HList, CK <: HList, Q <: HList, RIF <: HList](table: Table[R, PK, CK, _ <: HList], collectionUpdates: Seq[String], collectionKeys: Set[String], ifConditions: Seq[(String, String, Comparison.Value)], timestamp: Option[String], ttl: Option[String], counterColumns: Seq[(String, Boolean)], ifExistsCondition: Boolean) extends Product with Serializable

Builder of update statement

table

Table this operates on

collectionUpdates

Updates to collection fields (set, list, map)

ifConditions

If conditions

ifExistsCondition

flag indicating if this has to be applied only if row exists.

Source
UpdateBuilder.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UpdateBuilder
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new UpdateBuilder(table: Table[R, PK, CK, _ <: HList], collectionUpdates: Seq[String], collectionKeys: Set[String], ifConditions: Seq[(String, String, Comparison.Value)], timestamp: Option[String], ttl: Option[String], counterColumns: Seq[(String, Boolean)], ifExistsCondition: Boolean)

    Permalink

    table

    Table this operates on

    collectionUpdates

    Updates to collection fields (set, list, map)

    ifConditions

    If conditions

    ifExistsCondition

    flag indicating if this has to be applied only if row exists.

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from UpdateBuilder[R, PK, CK, Q, RIF] to any2stringadd[UpdateBuilder[R, PK, CK, Q, RIF]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (UpdateBuilder[R, PK, CK, Q, RIF], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from UpdateBuilder[R, PK, CK, Q, RIF] to ArrowAssoc[UpdateBuilder[R, PK, CK, Q, RIF]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def add[C <: Set[_], K, KK, V](wt: Aux[K], as: Aux[KK])(implicit ev0: Aux[R, K, C]): UpdateBuilder[R, PK, CK, ::[FieldType[KK, C], Q], RIF]

    Permalink

    adds given value to column of set type, allowing input by tagged as as *

  7. def add[C <: Set[_], K, V](wt: Aux[K])(implicit ev0: Aux[R, K, C]): UpdateBuilder[R, PK, CK, ::[FieldType[K, C], Q], RIF]

    Permalink

    adds given value to column of set type *

  8. def addAt[C[_], K, V](name: Aux[K], index: Int)(implicit ev0: Aux[R, K, C[V]], ev1: ListColumnInstance[C, V]): UpdateBuilder[R, PK, CK, ::[FieldType[K, V], Q], RIF]

    Permalink

    sets value at given index in list *

  9. def addToMap[M <: Map[_, _], K, KK](name: Aux[K], as: Aux[KK])(implicit ev0: Aux[R, K, M]): UpdateBuilder[R, PK, CK, ::[FieldType[KK, M], Q], RIF]

    Permalink

    append given elements to map column*

  10. def addToMap[M <: Map[_, _], K, V, VK](name: Aux[K])(implicit ev: Aux[R, K, M]): UpdateBuilder[R, PK, CK, ::[FieldType[K, M], Q], RIF]

    Permalink

    append given elements to map column*

  11. def all: UpdateBuilder[R, PK, CK, R, HNil]

    Permalink

    Causes to update all elements of single row specified by primary key.

    Causes to update all elements of single row specified by primary key. Q is set to primary key and S type is set to type of all columns except columns specified in primary key.

  12. def append[C <: Seq[_], K, KK](wt: Aux[K], as: Aux[KK])(implicit ev0: Aux[R, K, C]): UpdateBuilder[R, PK, CK, ::[FieldType[KK, C], Q], RIF]

    Permalink

    appends element to column of list type (i.e.

    appends element to column of list type (i.e. List, Seq, Vector), allowing input by tagged as as *

  13. def append[C <: Seq[_], K](wt: Aux[K])(implicit ev0: Aux[R, K, C]): UpdateBuilder[R, PK, CK, ::[FieldType[K, C], Q], RIF]

    Permalink

    appends element to column of list type (i.e.

    appends element to column of list type (i.e. List, Seq, Vector) *

  14. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  15. def build(implicit CTQ: CTypeNonEmptyRecordInstance[Q], CTR: CTypeRecordInstance[RIF]): Update[Q, RIF]

    Permalink

    Create Update that may be used to perform UPDATE DML against the Table

  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. val collectionKeys: Set[String]

    Permalink
  18. val collectionUpdates: Seq[String]

    Permalink

    Updates to collection fields (set, list, map)

  19. val counterColumns: Seq[(String, Boolean)]

    Permalink
  20. def decrement[K](wt: Aux[K])(implicit ev0: Aux[R, K, @@[Long, Counter]]): UpdateBuilder[R, PK, CK, ::[FieldType[K, Long], Q], RIF]

    Permalink

    decrements supplied counter column *

  21. def ensuring(cond: (UpdateBuilder[R, PK, CK, Q, RIF]) ⇒ Boolean, msg: ⇒ Any): UpdateBuilder[R, PK, CK, Q, RIF]

    Permalink
    Implicit information
    This member is added by an implicit conversion from UpdateBuilder[R, PK, CK, Q, RIF] to Ensuring[UpdateBuilder[R, PK, CK, Q, RIF]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. def ensuring(cond: (UpdateBuilder[R, PK, CK, Q, RIF]) ⇒ Boolean): UpdateBuilder[R, PK, CK, Q, RIF]

    Permalink
    Implicit information
    This member is added by an implicit conversion from UpdateBuilder[R, PK, CK, Q, RIF] to Ensuring[UpdateBuilder[R, PK, CK, Q, RIF]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. def ensuring(cond: Boolean, msg: ⇒ Any): UpdateBuilder[R, PK, CK, Q, RIF]

    Permalink
    Implicit information
    This member is added by an implicit conversion from UpdateBuilder[R, PK, CK, Q, RIF] to Ensuring[UpdateBuilder[R, PK, CK, Q, RIF]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  24. def ensuring(cond: Boolean): UpdateBuilder[R, PK, CK, Q, RIF]

    Permalink
    Implicit information
    This member is added by an implicit conversion from UpdateBuilder[R, PK, CK, Q, RIF] to Ensuring[UpdateBuilder[R, PK, CK, Q, RIF]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  25. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from UpdateBuilder[R, PK, CK, Q, RIF] to StringFormat[UpdateBuilder[R, PK, CK, Q, RIF]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  28. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  29. val ifConditions: Seq[(String, String, Comparison.Value)]

    Permalink

    If conditions

  30. val ifExistsCondition: Boolean

    Permalink

    flag indicating if this has to be applied only if row exists.

  31. def increment[K](wt: Aux[K])(implicit ev0: Aux[R, K, @@[Long, Counter]]): UpdateBuilder[R, PK, CK, ::[FieldType[K, Long], Q], RIF]

    Permalink

    increments supplied counter column *

  32. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  34. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. def onlyIf[K, V, K0](name: Aux[K], as: Aux[K0], op: Comparison.Value)(implicit ev: Aux[R, K, V]): UpdateBuilder[R, PK, CK, ::[FieldType[K0, V], Q], ::[FieldType[K, Option[V]], RIF]]

    Permalink

    Like onlyIf, but allows to specify alias apart form the name of the column.

    Like onlyIf, but allows to specify alias apart form the name of the column. Result contains field with that configured alias.

  37. def onlyIf[K, V](name: Aux[K], op: Comparison.Value)(implicit ev: Aux[R, K, V]): UpdateBuilder[R, PK, CK, ::[FieldType[K, V], Q], ::[FieldType[K, Option[V]], RIF]]

    Permalink

    Causes to specify IF condition to guard the update operation.

    Causes to specify IF condition to guard the update operation. Returns optional field-type, that is set to None in case the operation was successful or Some(current_value) in case the condition failed.

  38. def onlyIfExists: UpdateBuilder[R, PK, CK, Q, ::[IfExistsField, RIF]]

    Permalink

    Causes to update the column(s) only if they already exists.

    Causes to update the column(s) only if they already exists. Returns field with key [exists] that either is set to false, if the field existed or false otherwise.

  39. def prepend[C <: Seq[_], K, KK](wt: Aux[K], as: Aux[KK])(implicit ev0: Aux[R, K, C]): UpdateBuilder[R, PK, CK, ::[FieldType[K, C], Q], RIF]

    Permalink

    prepends element to column of list type (i.e.

    prepends element to column of list type (i.e. List, Seq, Vector), allowing input by tagged as as *

  40. def prepend[C <: Seq[_], K](wt: Aux[K])(implicit ev0: Aux[R, K, C]): UpdateBuilder[R, PK, CK, ::[FieldType[K, C], Q], RIF]

    Permalink

    prepends element to column of list type (i.e.

    prepends element to column of list type (i.e. List, Seq, Vector) *

  41. def remove[C <: Iterable[_], K, KK](wt: Aux[K], as: Aux[KK])(implicit ev1: Aux[R, K, C]): UpdateBuilder[R, PK, CK, ::[FieldType[KK, C], Q], RIF]

    Permalink

    removes given value from the set of list collection column, allowing input by tagged as as *

  42. def remove[C <: Iterable[_], K](wt: Aux[K])(implicit ev1: Aux[R, K, C]): UpdateBuilder[R, PK, CK, ::[FieldType[K, C], Q], RIF]

    Permalink

    removes given value from the set of list collection column *

  43. def removeFromMap[M <: Map[_, _], K, KK, V, VK](name: Aux[K], as: Aux[KK])(implicit ev0: Aux[R, K, M], ev1: Aux[M, VK, V]): UpdateBuilder[R, PK, CK, ::[FieldType[KK, Set[VK]], Q], RIF]

    Permalink

    removes given keys from the map column.

    removes given keys from the map column. multiple (possibly zero) keys may be specified *

  44. def removeFromMap[M <: Map[_, _], K, V, VK](name: Aux[K])(implicit ev0: Aux[R, K, M], ev1: Aux[M, VK, V]): UpdateBuilder[R, PK, CK, ::[FieldType[K, Set[VK]], Q], RIF]

    Permalink

    removes given keys from the map column.

    removes given keys from the map column. multiple (possibly zero) keys may be specified *

  45. def set[K, V](wt: Aux[K])(implicit ev: Aux[R, K, V]): UpdateBuilder[R, PK, CK, ::[FieldType[K, V], Q], RIF]

    Permalink

    Sets only this given column.

    Sets only this given column. Appends to columns already specified in set

  46. def setColumns[C <: HList](implicit sel: SelectAll[R, C], PP: Prepend[C, Q]): UpdateBuilder[R, PK, CK, Out, RIF]

    Permalink

    Sets all columns in a given list *

  47. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  48. val table: Table[R, PK, CK, _ <: HList]

    Permalink

    Table this operates on

  49. val timestamp: Option[String]

    Permalink
  50. val ttl: Option[String]

    Permalink
  51. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. def withTTL[K](wt: Aux[K]): UpdateBuilder[R, PK, CK, ::[FieldType[K, @@[FiniteDuration, TTL]], Q], RIF]

    Permalink

    Allows to specify TTL attribute at update time.

  55. def withTimeStamp[K](wt: Aux[K]): UpdateBuilder[R, PK, CK, ::[FieldType[K, Long], Q], RIF]

    Permalink

    Allows to specify Timestamp attribute of the row at update time.

  56. def [B](y: B): (UpdateBuilder[R, PK, CK, Q, RIF], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from UpdateBuilder[R, PK, CK, Q, RIF] to ArrowAssoc[UpdateBuilder[R, PK, CK, Q, RIF]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from UpdateBuilder[R, PK, CK, Q, RIF] to any2stringadd[UpdateBuilder[R, PK, CK, Q, RIF]]

Inherited by implicit conversion StringFormat from UpdateBuilder[R, PK, CK, Q, RIF] to StringFormat[UpdateBuilder[R, PK, CK, Q, RIF]]

Inherited by implicit conversion Ensuring from UpdateBuilder[R, PK, CK, Q, RIF] to Ensuring[UpdateBuilder[R, PK, CK, Q, RIF]]

Inherited by implicit conversion ArrowAssoc from UpdateBuilder[R, PK, CK, Q, RIF] to ArrowAssoc[UpdateBuilder[R, PK, CK, Q, RIF]]

Ungrouped