com.outworkers.phantom.builder.query

ConditionalQuery

sealed case class ConditionalQuery[Table <: CassandraTable[Table, _], Record, Limit <: LimitBound, Order <: OrderBound, Status <: ConsistencyBound, Chain <: WhereBound, PS <: HList, ModifyPrepared <: HList](table: Table, init: CQLQuery, usingPart: UsingPart = UsingPart.empty, wherePart: WherePart = WherePart.empty, setPart: SetPart = SetPart.empty, casPart: CompareAndSetPart = CompareAndSetPart.empty, options: QueryOptions) extends ExecutableStatement with Batchable with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, Batchable, ExecutableStatement, CassandraOperations, SessionAugmenterImplicits, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ConditionalQuery
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Batchable
  7. ExecutableStatement
  8. CassandraOperations
  9. SessionAugmenterImplicits
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

Type Members

  1. type Modifier = (Statement) ⇒ Statement

    Definition Classes
    ExecutableStatement
  2. 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. final def and(clause: (Table) ⇒ Condition): ConditionalQuery[Table, Record, Limit, Order, Status, Chain, PS, ModifyPrepared]

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def batchToPromise(batch: BatchWithQuery)(implicit session: Session, executor: ExecutionContextExecutor): Promise[ResultSet]

    Attributes
    protected[this]
    Definition Classes
    CassandraOperations
  9. val casPart: CompareAndSetPart

  10. def clone(): AnyRef

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

  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  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, 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.outworkers.phantom.Manager.scalaExecutor and it is recommended to use com.outworkers.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.outworkers.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, 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.outworkers.phantom.Manager.scalaExecutor and it is recommended to use com.outworkers.phantom.dsl.context for operations that chain database calls.

    session

    The implicit session provided by a com.outworkers.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 guavaToScala[T](source: ListenableFuture[T])(implicit executor: ExecutionContextExecutor): Promise[T]

    Definition Classes
    CassandraOperations
  18. val init: CQLQuery

  19. final def isInstanceOf[T0]: Boolean

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

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

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

    Definition Classes
    AnyRef
  23. val options: QueryOptions

    Definition Classes
    ConditionalQueryExecutableStatement
  24. def prepare[Rev <: HList]()(implicit session: Session, keySpace: KeySpace, ev: =:!=[PS, HNil], rev: Aux[PS, Rev]): PreparedBlock[Rev]

  25. def prepareAsync[Rev <: HList]()(implicit session: Session, executor: ExecutionContextExecutor, keySpace: KeySpace, ev: =:!=[PS, HNil], rev: Aux[PS, Rev]): Future[PreparedBlock[Rev]]

  26. def qb: CQLQuery

    Definition Classes
    ConditionalQueryExecutableStatement
  27. def queryString: String

    Definition Classes
    ExecutableStatement
  28. def statement()(implicit session: Session): Statement

    Definition Classes
    ExecutableStatement
  29. def statementToFuture(st: Statement)(implicit session: Session, executor: ExecutionContextExecutor): Future[ResultSet]

    Attributes
    protected[this]
    Definition Classes
    CassandraOperations
  30. def statementToPromise(st: Statement)(implicit session: Session, executor: ExecutionContextExecutor): Promise[ResultSet]

    Attributes
    protected[this]
    Definition Classes
    CassandraOperations
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. val table: Table

  33. final def ttl(duration: FiniteDuration): ConditionalQuery[Table, Record, Limit, Order, Status, Chain, PS, ModifyPrepared]

  34. def ttl(seconds: Long): ConditionalQuery[Table, Record, Limit, Order, Status, Chain, PS, ModifyPrepared]

  35. val usingPart: UsingPart

  36. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. val wherePart: WherePart

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Batchable

Inherited from ExecutableStatement

Inherited from CassandraOperations

Inherited from SessionAugmenterImplicits

Inherited from AnyRef

Inherited from Any

Ungrouped