com.outworkers.phantom.builder.query

InsertQuery

case class InsertQuery[Table <: CassandraTable[Table, Record], Record, Status <: ConsistencyBound, PS <: HList](table: Table, init: CQLQuery, columnsPart: ColumnsPart = ColumnsPart.empty, valuePart: ValuePart = ValuePart.empty, usingPart: UsingPart = UsingPart.empty, lightweightPart: LightweightPart = LightweightPart.empty, options: QueryOptions = QueryOptions.empty) extends RootQuery[Table, Record, Status] with Batchable with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, Batchable, RootQuery[Table, Record, Status], SessionAugmenterImplicits, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. InsertQuery
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Batchable
  7. RootQuery
  8. SessionAugmenterImplicits
  9. AnyRef
  10. 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. 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 executableQuery: ExecutableCqlQuery

    Definition Classes
    InsertQueryBatchableRootQuery
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

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

  14. final def isInstanceOf[T0]: Boolean

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

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

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

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

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

    Definition Classes
    AnyRef
  20. val options: QueryOptions

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

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

  23. def prepareAsync[P[_], F[_], Rev <: HList]()(implicit session: Session, executor: ExecutionContextExecutor, keySpace: KeySpace, ev: =:!=[PS, HNil], rev: Aux[PS, Rev], fMonad: FutureMonad[F], interface: PromiseInterface[P, F]): F[PreparedBlock[Rev]]

  24. val qb: CQLQuery

  25. def queryString: String

    Definition Classes
    RootQuery
  26. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Allows specifying a timestamp using org.joda.time.DateTime.

    Allows specifying a timestamp using org.joda.time.DateTime. This will automatically convert the underlying duration to microseconds. It's important to note org.joda.time.DateTime does not store dates as a microsecond value, the maximum granularity is milliseconds. The conversion done here is the simplest one, multiplying the millisecond epoch value by 1000.

    value

    The duration value representing the microsecond epoch.

    returns

    An insert query where a timestamp is passed in the using part.

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

    Allows specifying a timestamp using a Long value.

    Allows specifying a timestamp using a Long value. This will NOT automatically convert the underlying duration to microseconds. You need to make sure the EPOCH is provided as microseconds.

    value

    The duration value representing the microsecond epoch.

    returns

    An insert query where a timestamp is passed in the using part.

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

    Allows specifying a timestamp using scala.concurrent.duration.Duration.

    Allows specifying a timestamp using scala.concurrent.duration.Duration. This will automatically convert the underlying duration to microseconds.

    value

    The duration value representing the microsecond epoch.

    returns

    An insert query where a timestamp is passed in the using part.

  30. def ttl(seconds: FiniteDuration): InsertQuery[Table, Record, Status, PS]

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

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

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

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

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

  36. def valueOp(col: (Table) ⇒ AbstractColumn[_], 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.

    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.

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

  38. def values[RR](insertions: (CQLQuery, CQLQuery)*): InsertQuery[Table, Record, Status, PS]

  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 withOptions(opts: (QueryOptions) ⇒ QueryOptions): InsertQuery[Table, Record, Status, PS]

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Batchable

Inherited from RootQuery[Table, Record, Status]

Inherited from SessionAugmenterImplicits

Inherited from AnyRef

Inherited from Any

Ungrouped