anorm

ToStatementPriority1

sealed trait ToStatementPriority1 extends ToStatementPriority0

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ToStatementPriority1
  2. ToStatementPriority0
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. implicit def arrayToParameter[A <: AnyRef](implicit m: ParameterMetaData[A]): ToStatement[Array[A]] with NotNullGuard

    Sets an array parameter on statement.

    Sets an array parameter on statement.

    Definition Classes
    ToStatementPriority0
    See also

    java.sql.Array

    SQL("INSERT INTO Table(arr) VALUES {a}").on("a" -> Array("A", "2", "C"))
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. implicit def binaryStreamToStatement[S <: InputStream]: ToStatement[S]

    Sets a binary stream as parameter on statement.

    Sets a binary stream as parameter on statement. For null value, setNull with LONGVARBINARY is called on statement.

    SQL("INSERT INTO Table(bin) VALUES {b}").on("b" -> inputStream)
    Definition Classes
    ToStatementPriority0
  9. implicit def blobToStatement[B <: Blob]: ToStatement[B]

    Sets a blob as parameter on statement.

    Sets a blob as parameter on statement. For null value, setNull with BLOB is called on statement.

    val blob = con.createBlob()
    blob.setBytes(1, byteArray)
    SQL("INSERT INTO Table(bin) VALUES {b}").on("b" -> blob)
    Definition Classes
    ToStatementPriority0
  10. implicit object booleanToStatement extends ToStatement[Boolean]

    Sets boolean value on statement.

  11. implicit object byteArrayToStatement extends ToStatement[Array[Byte]]

    Sets an array of byte as parameter on statement.

  12. implicit object byteToStatement extends ToStatement[Byte]

    Sets byte value on statement.

  13. implicit object charToStatement extends ToStatement[Char]

    Sets character as parameter value.

  14. implicit def characterStreamToStatement[R <: Reader]: ToStatement[R]

    Sets a character stream as parameter on statement.

    Sets a character stream as parameter on statement. For null value, setNull with VARCHAR is called on statement.

    SQL("INSERT INTO Table(chars) VALUES {c}").on("c" -> reader)
    Definition Classes
    ToStatementPriority0
  15. implicit object characterToStatement extends ToStatement[Character]

    Sets Java Character as parameter value.

  16. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. implicit object dateToStatement extends ToStatement[Date]

    Sets date as statement parameter.

  18. implicit object doubleToStatement extends ToStatement[Double]

    Sets double value on statement.

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. implicit object floatToStatement extends ToStatement[Float]

    Sets float value on statement.

  23. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  25. implicit def idToStatement[A](implicit c: ToStatement[A]): ToStatement[Id[A]] with NotNullGuard

    Sets Id parameter on statement.

    Sets Id parameter on statement.

    SQL("INSERT INTO tbl(id, name) VALUES ({i}, {v}").
    on("i" -> anorm.Id("id"), "v" -> "name")
    Definition Classes
    ToStatementPriority0
  26. implicit object intToStatement extends ToStatement[Int]

    Sets integer value on statement.

  27. implicit object integerToStatement extends ToStatement[Integer]

    Sets Java Integer object on statement.

  28. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  29. implicit object javaBigDecimalToStatement extends ToStatement[BigDecimal]

    Sets Java big decimal on statement.

  30. implicit object javaBigIntegerToStatement extends ToStatement[BigInteger]

    Sets Java big integer on statement.

  31. implicit object javaBooleanToStatement extends ToStatement[Boolean]

    Sets Java Boolean object on statement.

  32. implicit object javaByteToStatement extends ToStatement[Byte]

    Sets Java Byte object on statement.

  33. implicit object javaDoubleToStatement extends ToStatement[Double]

    Sets Java Double object on statement.

  34. implicit object javaFloatToStatement extends ToStatement[Float]

    Sets Java Float object on statement.

  35. implicit object javaLongToStatement extends ToStatement[Long]

    Sets Java Long object on statement.

  36. implicit object javaShortToStatement extends ToStatement[Short]

    Sets Java Short object on statement.

  37. implicit def listToStatement[A](implicit c: ToStatement[A]): ToStatement[List[A]]

    Sets multi-value parameter from list on statement.

    Sets multi-value parameter from list on statement.

    SQL("SELECT * FROM Test WHERE cat IN ({categories})").
    on('categories -> List(1, 3, 4)
    Definition Classes
    ToStatementPriority0
  38. implicit object longToStatement extends ToStatement[Long]

    Sets long value on statement.

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

    Definition Classes
    AnyRef
  40. implicit object notAssignedToStatement extends ToStatement[NotAssigned.type]

    Sets null for not assigned value.

  41. final def notify(): Unit

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

    Definition Classes
    AnyRef
  43. implicit object objectToStatement extends ToStatement[Object]

    Sets opaque value as statement parameter.

  44. implicit def optionToStatement[A](implicit c: ToStatement[A], meta: ParameterMetaData[A]): ToStatement[Option[A]] with NotNullGuard

    Sets optional A inferred as Option[A].

    Sets optional A inferred as Option[A].

    SQL("SELECT * FROM Test WHERE category = {c}").on('c -> Option("cat"))
    SQL"SELECT * FROM Test WHERE nullable_int = \${Option.empty[Int]}"
    Definition Classes
    ToStatementPriority0
  45. implicit object scalaBigDecimalToStatement extends ToStatement[BigDecimal]

    Sets big decimal on statement.

  46. implicit object scalaBigIntegerToStatement extends ToStatement[BigInt]

    Sets big integer on statement.

  47. implicit def seqParamToStatement[A](implicit c: ToStatement[Seq[A]]): ToStatement[SeqParameter[A]] with NotNullGuard

    Sets multi-value parameter on statement, with custom formatting (using anorm.SeqParameter).

    Sets multi-value parameter on statement, with custom formatting (using anorm.SeqParameter).

    import anorm.SeqParameter
    SQL("SELECT * FROM Test t WHERE {categories}").
      on('categories -> SeqParameter(
        values = Seq("a", "b", "c"), separator = " OR ",
        pre = "EXISTS (SELECT NULL FROM j WHERE t.id=j.id AND name=",
        post = ")"))
    Definition Classes
    ToStatementPriority0
  48. implicit def seqToStatement[A](implicit c: ToStatement[A]): ToStatement[Seq[A]]

    Sets multi-value parameter from sequence on statement.

    Sets multi-value parameter from sequence on statement.

    SQL("SELECT * FROM Test WHERE cat IN ({categories})").
    on('categories -> Seq("a", "b", "c")
    Definition Classes
    ToStatementPriority0
  49. implicit def setToStatement[A](implicit c: ToStatement[A]): ToStatement[Set[A]]

    Sets multi-value parameter from set on statement.

    Sets multi-value parameter from set on statement.

    SQL("SELECT * FROM Test WHERE cat IN ({categories})").
    on('categories -> Set(1, 3, 4)
    Definition Classes
    ToStatementPriority0
  50. implicit object shortToStatement extends ToStatement[Short]

    Sets short value on statement.

  51. implicit def someToStatement[A](implicit c: ToStatement[A]): ToStatement[Some[A]] with NotNullGuard

    Sets not empty optional A inferred as Some[A].

    Sets not empty optional A inferred as Some[A].

    SQL("SELECT * FROM Test WHERE category = {c}").on('c -> Some("cat"))
    Definition Classes
    ToStatementPriority0
  52. implicit def sortedSetToStatement[A](implicit c: ToStatement[A]): ToStatement[SortedSet[A]]

    Sets multi-value parameter from sorted set on statement.

    Sets multi-value parameter from sorted set on statement.

    SQL("SELECT * FROM Test WHERE cat IN ({categories})").
    on('categories -> SortedSet("a", "b", "c")
    Definition Classes
    ToStatementPriority0
  53. implicit def streamToStatement[A](implicit c: ToStatement[A]): ToStatement[Stream[A]]

    Sets multi-value parameter from stream on statement.

    Sets multi-value parameter from stream on statement.

    SQL("SELECT * FROM Test WHERE cat IN ({categories})").
    on('categories -> Stream(1, 3, 4)
    Definition Classes
    ToStatementPriority0
  54. implicit object stringToStatement extends ToStatement[String]

    Sets string as parameter value.

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

    Definition Classes
    AnyRef
  56. implicit object timestampToStatement extends ToStatement[Timestamp]

    Sets timestamp as statement parameter.

  57. implicit def timestampWrapper1ToStatement[T <: TimestampWrapper1]: ToStatement[T]

    Sets a wrapped timestamp as statement parameter.

    Sets a wrapped timestamp as statement parameter. For null value, setNull with TIMESTAMP is called on statement.

    val wrapper = new {
      // Any value with a `.getTimestamp`
      val getTimestamp = new java.sql.Timestamp(123L)
    }
    
    SQL("UPDATE tbl SET modified = {ts}").on('ts -> wrapper)
    Definition Classes
    ToStatementPriority0
  58. def toString(): String

    Definition Classes
    AnyRef → Any
  59. implicit object uuidToStatement extends ToStatement[UUID]

    Sets UUID as statement parameter.

  60. implicit def vectorToStatement[A](implicit c: ToStatement[A]): ToStatement[Vector[A]]

    Sets multi-value parameter from vector on statement.

    Sets multi-value parameter from vector on statement.

    SQL("SELECT * FROM Test WHERE cat IN ({categories})").
    on('categories -> Vector("a", "b", "c")
    Definition Classes
    ToStatementPriority0
  61. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. implicit object noneToStatement extends ToStatement[None.type]

    Sets null for None value.

Inherited from ToStatementPriority0

Inherited from AnyRef

Inherited from Any

Ungrouped