com.websudos.phantom.builder.query

InsertQuery

class InsertQuery[Table <: CassandraTable[Table, _], Record, Status <: ConsistencyBound, PS <: HList] extends ExecutableStatement with Batchable

Linear Supertypes
Batchable, ExecutableStatement, CassandraOperations, SessionAugmenterImplicits, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. InsertQuery
  2. Batchable
  3. ExecutableStatement
  4. CassandraOperations
  5. SessionAugmenterImplicits
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new InsertQuery(table: Table, init: CQLQuery, columnsPart: ColumnsPart = ColumnsPart.empty, valuePart: ValuePart = ValuePart.empty, usingPart: UsingPart = UsingPart.empty, lightweightPart: LightweightPart = LightweightPart.empty, options: QueryOptions = QueryOptions.empty)

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 asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def consistencyLevel_=(level: ConsistencyLevel)(implicit session: Session): InsertQuery[Table, Record, Specified, PS]

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. 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
  13. 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
  14. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  16. def ifNotExists(): InsertQuery[Table, Record, Status, PS]

  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. final def json(value: PrepareMark): InsertJsonQuery[Table, Record, Status, ::[String, PS]]

  19. final def json(value: String): InsertJsonQuery[Table, Record, Status, PS]

  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. def opValue[RR](col: (Table) ⇒ AbstractColumn[RR], value: Condition): InsertQuery[Table, Record, Status, PS]

    Insert function adding the ability to specify operator values as the value of an insert.

    Insert function adding the ability to specify operator values as the value of an insert. This is useful when we want to use functions to generate the CQL, such as using the "now()" operator when inserting the value of a date.

    RR

    The type of the value held in the column.

    col

    The function that selects a specific column from the table.

    value

    The value to insert in the column, based on the output of the operator.

    returns

    A new instance of insert query, with the clause added.

  24. val options: QueryOptions

    Definition Classes
    InsertQueryExecutableStatement
  25. final def p_value[RR](col: (Table) ⇒ AbstractColumn[RR], value: PrepareMark): InsertQuery[Table, Record, Status, ::[RR, PS]]

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

  27. def qb: CQLQuery

    Definition Classes
    InsertQueryExecutableStatement
  28. def queryString: String

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

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

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

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

    Definition Classes
    AnyRef
  33. final def timestamp(value: DateTime): InsertQuery[Table, Record, Status, PS]

  34. final def timestamp(value: Long): InsertQuery[Table, Record, Status, PS]

  35. def toString(): String

    Definition Classes
    AnyRef → Any
  36. def ttl(seconds: FiniteDuration): InsertQuery[Table, Record, Status, PS]

  37. def ttl(seconds: Long): InsertQuery[Table, Record, Status, PS]

  38. def ttl(seconds: Int): InsertQuery[Table, Record, Status, PS]

  39. final def ttl(value: PrepareMark): InsertQuery[Table, Record, Status, ::[Int, PS]]

  40. def using(clause: Condition): InsertQuery[Table, Record, Status, PS]

  41. def value[RR](col: (Table) ⇒ AbstractColumn[RR], value: RR): InsertQuery[Table, Record, Status, PS]

  42. final def valueOp[RR](col: (Table) ⇒ AbstractColumn[RR], value: Condition): InsertQuery[Table, Record, Status, PS]

  43. final def valueOrNull[RR](col: (Table) ⇒ AbstractColumn[RR], value: RR): InsertQuery[Table, Record, Status, PS]

  44. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Batchable

Inherited from ExecutableStatement

Inherited from CassandraOperations

Inherited from SessionAugmenterImplicits

Inherited from AnyRef

Inherited from Any

Ungrouped