com.websudos.phantom.builder.query

UpdateQuery

class UpdateQuery[Table <: CassandraTable[Table, _], Record, Limit <: LimitBound, Order <: OrderBound, Status <: ConsistencyBound, Chain <: WhereBound, PS <: HList] extends Query[Table, Record, Limit, Order, Status, Chain, PS] with Batchable

Linear Supertypes
Batchable, Query[Table, Record, Limit, Order, Status, Chain, PS], ExecutableStatement, CassandraOperations, SessionAugmenterImplicits, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. UpdateQuery
  2. Batchable
  3. Query
  4. ExecutableStatement
  5. CassandraOperations
  6. SessionAugmenterImplicits
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new UpdateQuery(table: Table, init: CQLQuery, usingPart: UsingPart = UsingPart.empty, wherePart: WherePart = WherePart.empty, setPart: SetPart = SetPart.empty, casPart: CompareAndSetPart = CompareAndSetPart.empty, options: QueryOptions = QueryOptions.empty)

Type Members

  1. type Modifier = (Statement) ⇒ Statement

    Definition Classes
    ExecutableStatement
  2. type QueryType[T <: CassandraTable[T, _], R, L <: LimitBound, O <: OrderBound, S <: ConsistencyBound, C <: WhereBound, P <: HList] = UpdateQuery[T, R, L, O, S, C, P]

    Attributes
    protected[this]
    Definition Classes
    UpdateQueryQuery
  3. implicit class RichSession extends SessionAugmenter

    Definition Classes
    SessionAugmenterImplicits

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def and(condition: (Table) ⇒ clauses.WhereClause.Condition)(implicit ev: =:=[Chain, Chainned]): UpdateQuery[Table, Record, Limit, Order, Status, Chainned, PS]

    And clauses require overriding for count queries for the same purpose.

    And clauses require overriding for count queries for the same purpose. Without this override, the CQL query executed to fetch the count would still have a "LIMIT 1".

    condition

    The Query condition to execute, based on index operators.

    returns

    A SelectCountWhere.

    Definition Classes
    UpdateQueryQuery
    Annotations
    @implicitNotFound( ... )
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def consistencyLevel_=(level: ConsistencyLevel)(implicit ev: =:=[Status, Unspecified], session: Session): QueryType[Table, Record, Limit, Order, Specified, Chain, PS]

    Definition Classes
    Query
    Annotations
    @implicitNotFound( ... )
  10. def create[T <: CassandraTable[T, _], R, L <: LimitBound, O <: OrderBound, S <: ConsistencyBound, C <: WhereBound, P <: HList](t: T, q: CQLQuery, r: (Row) ⇒ R, usingPart: UsingPart, options: QueryOptions): QueryType[T, R, L, O, S, C, P]

    Attributes
    protected[this]
    Definition Classes
    UpdateQueryQuery
  11. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def future(modifyStatement: (Statement) ⇒ Statement)(implicit session: Session, keySpace: KeySpace, executor: ExecutionContextExecutor): Future[ResultSet]

    This will convert the underlying call to Cassandra done with Google Guava ListenableFuture to a consumable Scala Future that will be completed once the operation is completed on the database end.

    This will convert the underlying call to Cassandra done with Google Guava ListenableFuture to a consumable Scala Future that will be completed once the operation is completed on the database end.

    The execution context of the transformation is provided by phantom via com.websudos.phantom.Manager.scalaExecutor and it is recommended to use com.websudos.phantom.dsl.context for operations that chain database calls.

    modifyStatement

    The function allowing to modify underlying Statement

    session

    The implicit session provided by a com.websudos.phantom.connectors.Connector.

    keySpace

    The implicit keySpace definition provided by a com.websudos.phantom.connectors.Connector.

    executor

    The implicit Scala executor.

    returns

    An asynchronous Scala future wrapping the Datastax result set.

    Definition Classes
    ExecutableStatement
  15. def future()(implicit session: Session, keySpace: KeySpace, ec: ExecutionContextExecutor): Future[ResultSet]

    Default asynchronous query execution method.

    Default asynchronous query execution method. This will convert the underlying call to Cassandra done with Google Guava ListenableFuture to a consumable Scala Future that will be completed once the operation is completed on the database end.

    The execution context of the transformation is provided by phantom via com.websudos.phantom.Manager.scalaExecutor and it is recommended to use com.websudos.phantom.dsl.context for operations that chain database calls.

    session

    The implicit session provided by a com.websudos.phantom.connectors.Connector.

    keySpace

    The implicit keySpace definition provided by a com.websudos.phantom.connectors.Connector.

    ec

    The implicit Scala execution context.

    returns

    An asynchronous Scala future wrapping the Datastax result set.

    Definition Classes
    ExecutableStatement
  16. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  19. def limit(limit: Int)(implicit ev: =:=[Limit, Unlimited]): QueryType[Table, Record, Limited, Order, Status, Chain, PS]

    Definition Classes
    Query
    Annotations
    @implicitNotFound( ... )
  20. final def modify(clause: (Table) ⇒ Condition): AssignmentsQuery[Table, Record, Limit, Order, Status, Chain, PS, HNil]

  21. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  24. def onlyIf(clause: (Table) ⇒ Condition): ConditionalQuery[Table, Record, Limit, Order, Status, Chain, PS, HNil]

    Generates a conditional query clause based on CQL lightweight transactions.

    Generates a conditional query clause based on CQL lightweight transactions. Compare and set transactions only get executed if a particular condition is true.

    clause

    The Compare-And-Set clause to append to the builder.

    returns

    A conditional query, now bound by a compare-and-set part.

  25. val options: QueryOptions

    Definition Classes
    UpdateQueryQueryExecutableStatement
  26. def p_and[RR](condition: (Table) ⇒ clauses.PreparedWhereClause.ParametricCondition[RR])(implicit ev: =:=[Chain, Chainned]): UpdateQuery[Table, Record, Limit, Order, Status, Chainned, ::[RR, PS]]

    The where method of a select query that takes parametric predicate as an argument.

    The where method of a select query that takes parametric predicate as an argument.

    condition

    A where clause condition restricted by path dependant types.

    ev

    An evidence request guaranteeing the user cannot chain multiple where clauses on the same query.

    returns

    Annotations
    @implicitNotFound( ... )
  27. final def p_modify[RR](clause: (Table) ⇒ clauses.PreparedWhereClause.ParametricCondition[RR]): AssignmentsQuery[Table, Record, Limit, Order, Status, Chain, PS, ::[RR, HNil]]

  28. def p_where[RR](condition: (Table) ⇒ clauses.PreparedWhereClause.ParametricCondition[RR])(implicit ev: =:=[Chain, Unchainned]): UpdateQuery[Table, Record, Limit, Order, Status, Chainned, ::[RR, PS]]

    The where method of a select query that takes parametric predicate as an argument.

    The where method of a select query that takes parametric predicate as an argument.

    condition

    A where clause condition restricted by path dependant types.

    ev

    An evidence request guaranteeing the user cannot chain multiple where clauses on the same query.

    returns

    Annotations
    @implicitNotFound( ... )
  29. def prepare()(implicit session: Session, keySpace: KeySpace, ev: =:!=[PS, HNil]): PreparedBlock[PS]

  30. val qb: CQLQuery

    Definition Classes
    UpdateQueryQueryExecutableStatement
  31. def queryString: String

    Definition Classes
    ExecutableStatement
  32. def scalaQueryStringExecuteToFuture(st: Statement)(implicit session: Session, keyspace: KeySpace, executor: ExecutionContextExecutor): Future[ResultSet]

    Attributes
    protected[this]
    Definition Classes
    CassandraOperations
  33. def scalaQueryStringToPromise(st: Statement)(implicit session: Session, keyspace: KeySpace, executor: ExecutionContextExecutor): Promise[ResultSet]

    Attributes
    protected[this]
    Definition Classes
    CassandraOperations
  34. def statement()(implicit session: Session): Statement

    Definition Classes
    ExecutableStatement
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  36. def toString(): String

    Definition Classes
    AnyRef → Any
  37. def ttl(seconds: Long): UpdateQuery[Table, Record, Limit, Order, Status, Chain, PS]

    Definition Classes
    UpdateQueryQuery
  38. def ttl(duration: FiniteDuration): QueryType[Table, Record, Limit, Order, Status, Chain, PS]

    Definition Classes
    Query
  39. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def where(condition: (Table) ⇒ clauses.WhereClause.Condition)(implicit ev: =:=[Chain, Unchainned]): UpdateQuery[Table, Record, Limit, Order, Status, Chainned, PS]

    The where method of a select query.

    The where method of a select query.

    condition

    A where clause condition restricted by path dependant types.

    ev

    An evidence request guaranteeing the user cannot chain multiple where clauses on the same query.

    returns

    Definition Classes
    UpdateQueryQuery
    Annotations
    @implicitNotFound( ... )

Inherited from Batchable

Inherited from Query[Table, Record, Limit, Order, Status, Chain, PS]

Inherited from ExecutableStatement

Inherited from CassandraOperations

Inherited from SessionAugmenterImplicits

Inherited from AnyRef

Inherited from Any

Ungrouped